This year we're trying to use an ADXRS453
gyro on our robot. (With
this eval board.) Yesterday we wired it up and managed to communicate with using the WPILib SPI class. We simply read the sensor data every time TeleopPeriodic was called, and integrated the results to get a measure of our heading. This worked extremely well, as in, the heading would not change at all while the
gyro was sitting still, and changed as we would expect it to when we rotated it.
Then we go to work with it today, without changing the program, and it drifts like crazy. (Like, a degree every couple of seconds.) We wrote code to try and compensate for it, by sampling the rate for a couple seconds while it's still, and the values still oscillate and drift while the
gyro is sitting still.
In another thread, members of several teams said they had used this
gyro with success. Any idea what's going on? Any wisdom you can share about how to work with it?