Gyro Drifting

So I just set up my gyro and started coding but for some reason when I turn it drifts about 6 inches. Does anyone know how I can fix this?

That’s a huge drift. The type of gyro drift we’ve seen could be several degrees over 30 seconds to a minute… but that wouldn’t cause a turn to be off by 6 inches. Could it be due to something else? Can you post your code?

By default, the gyro is only calibrated for 2 seconds. If you calibrate for the maximum time (8 seconds I think), it will drift substantially less.

1 Like