View Single Post
  #3   Spotlight this post!  
Unread 10-02-2006, 22:30
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Gyro not working in Autonomous?

Quote:
Originally Posted by Abwehr
Have you called BOTH Start_Gyro_Bias_Calc() and Stop_Gyro_Bias_Calc() before autonomous executes?
No, I don't, but that's because I know the bias already. I do call

Code:
Initialize_Gyro();
Initialize_ADC();
Set_Gyro_Bias(1092); //1092 for kit gyro, 1003 for ADXSR300
in my User_Initialization () function, which is called before autonomous mode triggers. And the gyro is working perfectly in user mode (indeed, if I flip back and forth from autonomous mode to user mode the gyro always works in user mode)