![]() |
Re: Gyro Problems
Quote:
We tried last year’s gyro, and it consistently gives angles of about 3260 in each direction and at both sampling rates. Also, when printing out the Get_Analog_Value() (using the default code), the values range from 0 to 1005. |
Re: Gyro Problems
Quote:
-Kevin |
Re: Gyroscope Code
Thanks for your help.
|
Re: Gyroscope Code
Hi,
We're new to gyros, and it seems like it should be okay. My one question is what the output will be like. If I turn the gyro clockwise from zero, will I get positive angles, and negitive if counter? I haven't been able to find it in the whitepapers. Thanks for any help :) |
Re: Gyroscope Code
Quote:
|
Re: Gyroscope Code
While porting code to Vex tonight I discovered a bug in the Process_Gyro_Data( ) function that could cause the bias to be calculated incorrectly. Instead of using the bias algorithm I used in the 2008 FRC code, I used this code and found the error:
Code:
if(Get_Gyro_Bias_Status() == GYRO_BIAS_NOT_DONE)The bug in on this line of Process_Gyro_Data( ): // is the circular queue now full? if(Gyro_Queue_Index == GYRO_QUEUE_SIZE-1) Remove the -1 to correct the bug: // is the circular queue now full? if(Gyro_Queue_Index == GYRO_QUEUE_SIZE) -Kevin |
| All times are GMT -5. The time now is 16:09. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi