I've thought about this before (and the good old coriolis effect), but I'm think I don't agree with you in detail.mattallen37 wrote:You should also note, that some "drift" is actually very correct. The earth rotates 360*/24 hours (once a day). That means that you should see a "drift" of 1 degree every 4 minutes. However, if the axis of the gyro is perfectly parallel to the axis of the earth, you should see no "drift".
If you measure angular position by integrating angular velocity, then yes: In the end, you should be off by 1 degree for every 4 minutes you integrated the velocity (as you "accidentally" included the earth's rotation into your final result).
On the other hand, if you go ahead and measure the offset of the gyro by taking some samples and averaging over them (statistical noise), than this offset shouldn't change. The earth's rotation will be caught all the time, and since it's a constant, it should cancel out.
If you place the gyro differently the 2nd time, you might get the "reverse direction".
Still, the offset is measured in degrees/second, and 1 deg/4min = 1deg/240sec = 0.0041... (times two for the worst case)...
We've had a bachelor thesis about integrating the gyro once (for position), and the same problems came up IIRC. I can only repeat: It's not good to take too many samples of the gyro in a tight loop for offset calculation, it somehow needs to "relax a bit".