|
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.
|