Quote:
Originally Posted by jph399
I plan on being able to throw a jumper on the 1st,2nd or 3rd digital input on the driver station and thus choosing which of the 3 routines I want right before the match.
|
Your problem is that the Digital Inputs on the DS are floating. That means that there is no guarantee which value (true or false) will be read when there is nothing connected to the input. The best way is to use a pull-up resistor (2k is probably OK) between +5 and the signal and a switch between ground and the signal. When the switch is open, the signal is pulled to +5 (true). When the switch is closed, the signal is grounded (false).
You have to read the DIs during disabled mode - where depends on whether you are running the Basic or Advanced Framework. After reading the DIs, write them to a Global that you read during Autonomous mode.
I suggest that you download FMS Lite and run it to insure that you go through the autonomous mode that you are trying to select.