Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basic Steps in Programming

Similar presentations


Presentation on theme: "Basic Steps in Programming"— Presentation transcript:

1 Basic Steps in Programming
VEX EDR

2 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!

3 The Competition Template
To open a competition template go to ‘File’ click on ‘New’, and then choose Competition Template.

4 Motor and Sensor Setup Before we begin programming, we must assign the motors and sensors that we will be commanding within our code.

5 Motor and Sensor Setup

6 Back to The Competition Template
Below is what you will see.

7 The Competition Template
The Autonomous code below will make the robot move forward for 1 second.

8 The Competition Template
The Remote Control code below sets up ‘Arcade’ control with buttons 5U and 5D controlling the motor on port 10.

9 The Remote The photo below illustrates the buttons and control channels referenced in the previous 2 slides.

10 Questions?


Download ppt "Basic Steps in Programming"

Similar presentations


Ads by Google