View Single Post
  #2   Spotlight this post!  
Unread 19-01-2014, 08:29
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
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
Reply With Quote