
Re: Cancel Autonoumous Button (Answered)
So a couple simple ways. If you know exactly how much time autonomous should take then you can use the built in RobotC timers.
This ends autonomous if the time runs out or if the button is pressed.
The other way is to have a variable finished. This variable is always false and at the end of autonomous you change it to be true. Changing it to true would end the while loop that is idly waiting.
EDIT Just thought I would add that the && symbol means that the while loop requires both operations to be true for it to repeat.