|
Re: Using Switches in Autonomus
I like Alan's recommendation of using a global variable, but why not put the switches on the 'bot instead of the DS?
During the setup time between matches you place your 'bot and set your switches accordingly.
We never actually implemented the full code last year, but we had some switches on the 'bot that we could set based on which starting square we were starting in. This way, the Auto code can know its starting position as soon as it starts up. Regrettably, our autonomous code never got that mature and the switches were left unused ... go figure!
|