View Single Post
  #8   Spotlight this post!  
Unread 15-01-2006, 14:03
Oumonkey's Avatar
Oumonkey Oumonkey is offline
Master of the If statement
AKA: Josh Tyus
FRC #1555 (Pulse)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Monon, IN
Posts: 50
Oumonkey has a spectacular aura aboutOumonkey has a spectacular aura about
Re: How to Start Autonomous mode?

Quote:
Originally Posted by Tom Bottiglieri
You can also have a button on one of your joysticks to toggle the Auto mode function.

Code:
int automode=0;

if(p1_trig==1)autmode=1;

while(automode==1)
{
     if(p1_trig==1)autmode=0;
     User_Autonomous_Code();
}
Where would I put that piece of code?
I don't know much about C, so I wanted to ask before I mess something up. don't hurt me...
__________________