View Single Post
  #12   Spotlight this post!  
Unread 23-03-2008, 15:32
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: how to run auto?

I always just modify the main loop so that it reads

Code:
if(autonomous || p4_sw_trig)
{
  ... calls into autonomous...
}
Plug in the port 4 joystick, hold trigger, and then your robot starts doing its autonomous routine. Let go, and it returns to teleop mode.

Then I mark off the port 4 joystick port on the OI so that no-one tries to use it in the competition. This way, you can immediately stop execution of autonomous by releasing the button if it starts doing something dangerous to humans or itself, you don't have to remember to copy code around, you don't risk frying your OI, and you don't need a special piece of hardware.