View Single Post
  #8   Spotlight this post!  
Unread 09-01-2004, 21:50
Koci Koci is offline
Registered User
#0624 (CRyptonite)
Team Role: College Student
 
Join Date: Feb 2003
Location: Katy, TX
Posts: 62
Koci is an unknown quantity at this point
Re: Multiple programs/autonomous routines

Yes, this is true. We did it last year, along with many teams. You can store a variable that is based on inputs from the OI, and that can be used during the autonomous running of the program. We had switches on our control board that were used to tell the robot which autonomous program to run. Many teams got much more complicated than we did, and had analog inputs (pots) to have many different autonomous programs.

[edit]I guess I should make references. Page 26 of the Programming Reference Guide explains the competition mode.

Quote:
When Disabled, all PWM and Relay outputs are disabled, but program execution continues.
It was explained very vividly last year in one of the updates. Just have an

if (competition_mode == 0)

and put your code there.[/edit]
__________________
2001 Highest Ranking Rookie at Lone Star Regional
2002 Imagery Award at Lone Star Regional
2003 Delphi's Driving Tomorrow's Technology Award at Arizona Regional
2003 Delphi's Driving Tomorrow's Technology Award at Lone Star Regional

Last edited by Koci : 09-01-2004 at 22:02.