KentridgeRobotics / 2021Robot

Other
0 stars 7 forks source link

Determine State of Gyroscope #3

Closed skallaher closed 3 years ago

skallaher commented 3 years ago

There seems to be some code indicating that there is a gyroscope on the robot.

This issue is to investigate the current state of that gyroscope as far as the code and hardware are concerned.

nhl01 commented 3 years ago

The gyro returns -1 for most of the time, meaning that the data expires often. However, when it returns values, it is in degrees with clockwise being positive. When the robot turns in a full circle, the values roll back to 0. The -1 shows up the most when the robot is not in motion. Sometimes the values don't expire when the robot is stationary. Overall, the gyro is inconsistent.