|
Re: Multiple Auto modes
Another way of doing this is to use the digital input of the driver station program. Goto the I/O on DS program and you can set channels 1-8 are true or false. Think of it as a software version of hardware switches. These switches can then be read from your program.
Look in the default framework program in the Autonomous Independent. There is already a vi in there that checks the status of the switches. Attached is a portion of code that will take these inputs and convert them to a number. Wire this to a case structure to run the auto program you want.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire
|