Using C++ Example Projects and Templates in VEXcode V5

Example projects and Templates are a great resource if you are just getting started with VEXcode V5 and want to explore different robot behaviors. Example projects and Templates also allow you to observe how different commands in VEXcode V5 are used.

The following article will cover:

  • Using C++ Example Projects
  • Using Templates
  • Descriptions in C++ Example Projects and Templates

Using C++ Example Projects

To use a C++ Example project start by opening a New Text Project from the File menu.

2020-11-04_18-14-50.jpg

Select C++.

2020-11-04_18-17-44.jpg

To open an Example Project, select the File menu and choose Open Examples.

2020-11-04_17-19-38b.jpg

Icons for many different Example Projects will be shown. Each icon represents a different project and is colored according to the command categories.

2020-11-05_7-51-43.jpg

The Filter bar can be used to quickly find a specific type of example.

2020-11-04_17-41-50a.jpg

To open any example, select one from the menu.

2020-11-04_17-46-57a.jpg

Commands for the example project will populate in the workspace. These commands and their parameters can be changed or removed. Additional commands can be added to modify the example project.

ChangeVelocities.png

Save and download the example to try it on your robot.

2020-11-04_18-22-25.jpg


Using Templates

There is also a special type of example called a Template.

2020-11-05_7-51-43a.jpg

Select the template for your robot. For example, the Clawbot (Drivetrain 2-motor, No Gyro) template.

2020-11-05_7-51-43m.jpg

The Template is used to create a blank project with the preset device configuration for your robot.

2020-11-05_8-02-52.jpg

If using a standard robot build, like the Clawbot, a Template can be used to quickly get started with a new project.

useful.png


Descriptions in C++ Example Projects and Templates

Each C++ Example Project and Template contains a description in the workspace. Descriptions can be used to document certain information in a project.

eachcpp.png

In a C++ Example Project, the description provides a short summary for what the project does and also lists the device configuration.

exampless.png

In a Template, the description notes which devices are listed in the configuration.

templatess.png