|
Re: Gyro problem, please help!
Code wise if you are using the gyro from the Kit of Parts then you should keep its sensitivity at 0.007 so the getAngle() reports in degrees.
How much is it drifting? It is normal for the gyro to drift a fraction of a degree because of the nature of a gyro being a rate of change sensor. To get the current angle the gyro is facing it sums up all the changes in angle. The calculated rate of change is not 100% accurate and thus has error. Due to this error it builds up as more and more of these are added up as drift. You would have to reset the gyro when you know its heading to reset the error in getAngle() to 0.
|