@jthorstad, thank you for reporting back on this. The information will help other people.
Although, I’m glad that you were able to reset the internal compass, it is unusual that you had to use large, rapid flailing motions. Hopefully, this overwrote an existing setting that was causing the problem. Most people can reset the compass with slower movements.
I suggest you keep monitoring the situation.
Unfortunately there’s no easy way to make the camera compass lose orientation.
The Z1 is an Android device. We may be able to look at Android information to help with this type of problem.
In the examples below, imagine that the Z1 is the phone. Inside the Z1, it runs Android on a Qualcomm smartphone hardware platform.