|
Re: Gyro Returning Values Not According to Actual Robot Movement
Check that the gyro is connected to Analog port 1 or 2 on the first digital module. Those are the only ports that have the hardware integrators for computing the heading from the gyros rate output.
Also, you can verify the operation of the gyro by just creating an AnalogChannel object on the channel that the gyro is plugged into. Watch the analog output with either a dashboard or print statements and verify that the output is near 2.5V when the robot is stationary. Now rotate the robot in one direction and the values should go either up or down momentarily, then rotate in the other direction and the values should go the other way. But remember, it will only do this while the robot is moving since the gyro is measuring rate of rotation.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|