|
Re: Programming toggle switches to DS for different autonomous routines?
A couple of problems...
First, the Driver Station switches cannot be read during Autonomous. For your purpose they must be read BEFORE autonomous begins and remembered for use here. How you do that depends on the Framework you started with (Basic or Advanced). There are CD threads on this topic you can checkout along with sample code.
Second, as written, all your drive commands will actually occur all at once. To sequence them you must tie the error output of each Delay & Feed to the next Tank Drive command you want to have happen.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|