|
Re: BCD switch programming
I'm enclosing two examples of how we have done what you are asking for.
DIORead.png:
This is how we read the BCD number wheel on our 2012 robot. This number was used to select which autonomous to execute. We used the Analog Inputs on the Driver Station to set our start up delay before the Autonomous started.
AutonRead.png:
We changed to a text based command structure for autonomous in 2013. The Selection was chosen on the Dashboard and read at the start of Autonomous Independent.vi and passed to this VI. This VI read T3-Auton.ini (we used ftp to copy it to the cRIO) and selected the Section to read and execute. Below the code is a small subset of the T3-Auton.ini file. It also posted the command it is currently executing to the Driver Station User Message Window
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
|