
Re: How to program push button to start autonomous
I have one question; do you want to use this with the actual VEX competition template, or more for internal testing? Using it with the VEX competition templates won't work, as the Field Control System blocks communication between the VEXNet Joystick Controller and the Cortex during the autonomous period; however, you can make a custom template that runs one section of code for a specific amount of time then switches to another section of code.
In this particular case, there are a couple of programming tools that you will need to learn about first, specifically while loops, button commands, and timers. Fortunately, we cover all of these subject in our
VEX Cortex Video Trainer; specifically, you will need to take a look through the 'Movement -> Shaft Encoders -> Forward for Distance' section (While loops), the 'Remote Control -> Buttons' section (Button commands), and the 'Remote Control -> Timers' section (Timers).
This should help get you started on the right path to making the code you need. Take a look through the videos and the supplementary material, start to formulate a program, then show us what you come up with and we will be more than happy to help you further with this. Thanks in advance, and I can't wait to see what you come up with!
_________________Check out our
Blog! And our
Facebook page!
Need help? Take a look at our
updated help documentation and the
ROBOTC Forums.