View Single Post
  #2   Spotlight this post!  
Unread 26-04-2004, 15:33
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
Re: Multiple Auton's

Make sure you realize that = is the assignment operator in C and == is the equality test. Therefore, you'd have to say:

Code:
if (auto_selector_switch == 0)
  Do_Auto_0 ();
...
Sure, this would work. The only thing you need for multiple auton's to work is some method to select which auto program you want to run. You can have a switch on the RC or the OI. Just chose the program based on its value.