Thread: Gyro Rate
View Single Post
  #6   Spotlight this post!  
Unread 22-03-2008, 14:11
Dad1279 Dad1279 is offline
Registered User
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: NJ
Posts: 511
Dad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud of
Re: Gyro Rate

Aerex,
You cannot get the angle by reading the analog input only. The gyro outputs an analog value, approx 2.5v when not moving. It will read above 2.5v when rotating clockwise, below counterclockwise.

see page 4 of this data sheet:http://www.analog.com/UploadedFiles/...s/ADXRS300.pdf

If you want the angle, you would need a routine to convert the rate output of the gyro (over time) to get the angle. This has already been done by EasyC/WPILib and Kevin: http://www.kevin.org/frc/