Quote:
Originally Posted by virtuald
I would use SmartDashboard/SendableChooser, it'll be easier.
|
Quote:
Originally Posted by rich2202
On the RoboRio, you can use the Digital IO and/or the Analog IO ports.
You set up a switch (single pole, double throw), with the outside posts going to +5 and ground (red and black wires), and the middle post connected to signal (white). You then see whether the switch is on/off for DIO, or above or below 2.5 volts for AIO.
The easier way is to use smart dashboard. I prefer writing a variable to the smart dashboard, and reading it back. The variable can be changed at any time, up to the time when autonomous starts. You then read the value during Autonomous Init to determine which autonomous program to run.
|
I didn't think of that until now. But making the autonomous switcher seems like a cool project to work on now that my season is over.