View Single Post
  #4   Spotlight this post!  
Unread 22-03-2007, 20:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Gyro Autonomous Problems

Code:
  if(Get_ADC_Result_Count())
  {
    Process_Gyro_Data();
 
    Reset_ADC_Result_Count();
  }
should be called all the time, in autonomous mode or not.

If you follow the default style then the code above would be in Process_Data_From_Local_IO() and you'd need to add a call to Process_Data_From_Local_IO() within the User_Autonomous_Code() autonomous_mode loop (but outside the 26.2ms slow loop).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle