Basic Steps in Programming VEX EDR
The Competition Template The competition template is what allows your robot to communicate with the field controller. Without a competition template the field control computers cannot tell the robot to begin it’s autonomous routine, begin driver control, or stop at the end of the match. A robot that does not have it’s code placed inside of a competition template will not pass inspection while at a competition!
The Competition Template To open a competition template go to ‘File’ click on ‘New’, and then choose Competition Template.
Motor and Sensor Setup Before we begin programming, we must assign the motors and sensors that we will be commanding within our code.
Motor and Sensor Setup
Back to The Competition Template Below is what you will see.
The Competition Template The Autonomous code below will make the robot move forward for 1 second.
The Competition Template The Remote Control code below sets up ‘Arcade’ control with buttons 5U and 5D controlling the motor on port 10.
The Remote The photo below illustrates the buttons and control channels referenced in the previous 2 slides.
Questions?