View Single Post
  #4   Spotlight this post!  
Unread 19-02-2004, 17:31
Phil_Lutz's Avatar
Phil_Lutz Phil_Lutz is offline
Phil Lutz
#0851 (Froggers)
Team Role: Mentor
 
Join Date: Jan 2004
Location: El Segundo, CA
Posts: 67
Phil_Lutz is on a distinguished road
Send a message via Yahoo to Phil_Lutz
Re: programs and timeing.

Why do you need to pause the program?
For testing purposes?

If so, you can code a switch, when closed allows the code to execute, when released if stops.

Code:
if ((autonomous_mode = 0) || (AUTON_SWITCH = 1))
{
  execute auton code 
}
Or something like that. (I don't have my code in front of me.
AUTO_SWITCH - is an alias to one of the O/I joystick triggers for testing only. Make sure to remove it before comp.


Phil