View Single Post
  #5   Spotlight this post!  
Unread 10-02-2006, 23:00
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Gyro not working in Autonomous?

It's a simple problem to fix:
The call to update the gyro is preformed in Process_Data_From_Local_IO, which is not called during autonomous mode. If you copy the code for it to the User_Autonomous_Code loop, everything will work.

To be specific, this code needs to be in your autonomous loop:
Code:
if(Get_ADC_Result_Count())
  {
    	Process_Gyro_Data();
	
    	Reset_ADC_Result_Count();
  }
Took me a little while to figure that out