We have used a gyro before and in fact, we are using the same one this year that we used last year. I’m not sure what setSensitivity does, but I have it set to default (0.007).
If I reset the gyro, and read the angle, it stays around 0. And if I move 30 degrees, gyro.getAngle() does change from 0 to 30, but after that it keeps on moving up slowly even if the robot stops moving. It’s really slow but it changes from 30 to 33 in 15 seconds.
I am pretty sure this did not happen last year. We will try a different gyro tomorrow.
If there’s anything else we could check or if there’s something we’re doing wrong, any suggestions are appreciated!
We used a filter formula with an accelerometer to correct the drift of our gyro, Ill post the formula and details tomorrow, as I am posting from my phone
The kalman filter (https://en.wikipedia.org/wiki/Kalman_filter) is something that you should learn to use. It is used for filtering stuff like that (accelerometer and Gyro). When done right, It is called an IMU (inertial measurement unit). Gyro drift is standard. It is kinda weird that it somehow got worse.