Quote:
Originally Posted by tilky
we want to be able to get the angle of a sensor mounted onto the robot, and aren't sure which sensor to use. We tried the gyro but there are some flaws (such as it infinitly going up after we turn in circles). What should we use?
|
This sounds more like a software error than a sensor error. Have you verified you're getting the correct voltage from the gyro? How does the sensor output feed back into your control loop? Are you trying to measure absolute angle, or angular rate of change? The rotary magnetic encoder will measure absolute angle. The gyro is only good for rate of change. If you're trying to measure the angle of a mechanism on the robot, like arm tilt or turret pan, a multi-turn potentiometer might be good for this.