Thread: Gyro Rate
View Single Post
  #9   Spotlight this post!  
Unread 22-03-2008, 15:46
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

I think we were confusing the topic by talking about the original post question about reading the analog input and gyro rate. Forget about that for now.

Assuming you want an angle, so you can turn x degrees, use the built in Easy C routines. Examples can be found in the help file, and in gyrotest.ecp, which is in the \frc\projects\test code directory. After InitGyro(A) and StartGyro(A) (where A = analog input gyro is plugged into) GetGyroAngle(A) will return an integer which represents tenths of degrees (900=90 degrees clockwise, -900=90 degrees counterclockwise)

Last edited by Dad1279 : 22-03-2008 at 15:49.