View Single Post
  #4   Spotlight this post!  
Unread 07-01-2007, 20:14
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: EasyC: Execute code before autonomous

Quote:
Originally Posted by Kingofl337 View Post
Yes, just write the function you want to use and put it in intialize. It will execute any code in this function before the match starts. Check this thread out.

http://www.chiefdelphi.com/forums/sh...t=44749&page=2
So my understanding is, I need to create a while loop in Initialize that loops as long as IsAutonomous == 0 and IsEnabled == 0? That sounds like a slightly hackish solution, since WPIlib must be checking these variables to call Autonomous and OperatorControl anyway.