Hi, we’ve recently bought a yaw rate gyroscope and after doing some tests with it we have some questions:
In the VEX official page says that the gyroscope measures the degrees per second but in the robotC page it say it measures the degrees rotated by the robot, we thing it’s the degrees rotated but we’re not sure, could anyone confirm that?
We’ve tried to program the autonomous part of the competition with the gyroscope and we’ve found that when the robot moves forward or backward the gyroscope increases or decreases the value, but the robot is not turning, could anyone explain that?
Technically, a rate gyroscope, such as the one VEX sells, measures rotation over time. RobotC, though, takes care of converting that data into the current angle of the robot.
A limitation of rate gyros, especially cheap ones, is that they are rather susceptible to drift and sometimes oversensitive to motion. In other words, 90° at the end of the match may be around 10° off from 90° at the start of the match. Your code should account for this with something to the effect of a programmed margin of error.
Even if the robot is completely stationary, the gyroscope will gradually change its reading. Also, in most cases, the robot doesn’t move in a perfectly straight line, so the angle will have changed a a little.