Hi, I started to try a new gyro sensor on my robot and initially it worked well: I could indicate the rotaion angles. And when I turned the robot, the gyro reading changed accordingly. But now the gyro sensor is behaving very strangely. After calibration, I print its rotation. Normally it is a small value close to 0. But now I get a strange number like 3614.12. I have tried to turn off the brain and turn it back on. Then after calibration, I get another strange value like -5416.xx Furthermore, if I rotate the robot, and check the gyro reading, it doesn’t change at all, always 3614 or -5416, namely the same as the value I get after calibration. How to resolve this? Or is my gyro simply broken?
Welcome to the forum!
I personally would change the gyro sensor you have and then see what results you have, it could provide a little more insight on the problem to see what has an issue.
For me, I’ve set them up to calibrate for 8 seconds then set a new 0 degrees.
Here’s the code I’m referencing.
Gyroschopic.calibrate(calExtended);
Gyroschopic.setRotation(0.0, degrees);
Keep in mind it could also just be faulty.
1 Like
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.