View Single Post
  #14   Spotlight this post!  
Unread 30-03-2004, 19:08
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Despite what IFI says, you can configure autonomous from OI...

as a global variable:

Code:
char my_setting = 0;
in the Default_Routine() (or wherever you process inputs):

Code:
if(competition_mode)
{
     my_setting = p3_sw_trig; //whatever input you want to read
}
thus, settings will only be read when the robot is disabled. you can then use my_setting as the setting for whatever during autonomous.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)