Using C++ Example Projects and Templates - C++ Tutorials - VEXcode IQ

Example projects and Templates are a great resource if you are just getting started with VEXcode IQ and want to explore different robot behaviors. Example projects and Templates also allow you to observe how different commands in VEXcode IQ 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 open an Example Project, select the File menu and choose ‘Open Examples.’

File menu open examples

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

Examples

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

Filter Bar

To open any example, select one from the menu.

Changin Velocities

Commands for the example base 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.

Project open

Save (Windows, macOS, Chromebook) and download the example to try it on your robot.

Download

Using Templates

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

Templates

Templates have a special icon and are used to create a blank project with a preset device configuration.

Config

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

New Project

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.

Description

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

Example description

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

Template description