View Single Post
  #3   Spotlight this post!  
Unread 06-02-2011, 11:39
lscime lscime is offline
Registered User
AKA: Luke Scime
FRC #2614 (Mountaineer Area RoboticS (MARS))
Team Role: Alumni
 
Join Date: Jun 2008
Rookie Year: 2008
Location: Morgantown, WV
Posts: 73
lscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to beholdlscime is a splendid one to behold
Re: Switches to control mulitiple programs

In the past our team has used dipswitches (they look like the bank of small switches found on the front of the cRIO) to set our autonomous modes, in '09 we had a full 32 modes programmed , but just a regular collection of switches would work too (it would just be bulkier). Basically you wire these switches into the digital ins on the side car. Then in the code I would suggest converting the collection on/off switch values into a binary number (LabVIEW even has a function for this already). Then assign each of your different autonomous modes a number (in the range that you switches can supply) and have your autonomous code read the dipswitch values before it starts. If you end up with a lot of auto modes make sure to give your drivers a "playbook ."

-Luke