View Single Post
  #2   Spotlight this post!  
Unread 06-02-2011, 11:28
mjbrauck mjbrauck is offline
Registered User
FRC #0768 (Techno Warriors )
 
Join Date: Jan 2006
Rookie Year: 2005
Location: maryland
Posts: 23
mjbrauck has a spectacular aura aboutmjbrauck has a spectacular aura about
Re: Switches to control mulitiple programs

My team has used a similar setup to select autonomous modes... you wire the switch in to the robot as you would a limit-switch or any other digital sensor. The code can be as simple as in if statement around the code you want to turn on/off that checks the appropriate digital I/O ports.

In the past we have used three switches treated as 3 binary bits to get 8 possible autonomous modes.