|
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.
|