Configuration - Robot Config - VEXcode Text

What does Configuration Mean?

Before starting a VEXcode V5 Text program, the user must first configure the program to match the V5 Robot's physical structure. The user needs to state how the motors are attached to the build (which ports the motors are plugged into on the V5 Brain.) This allows the program to direct those motors properly to complete the desired actions. 

For more information on configuring your V5 Robot, please refer to the following articles:

How to Open Example Projects- VEXcode V5 Text

How to Configure a Drivetrain-VEXcode V5 Text

VEXcode V5 Text Syntax and Robot Configuration

To help understand VEXcode V5 Text syntax in regards to Robot Configuration, let’s look at a simple project that drives the robot forward.


Configured Devices- The list of devices is written as a comment above the code. A comment is an annotation that can be added to the code by the user to document information that the user will want to reference later. Comments begin with // so that the V5 Robot will recognize and ignore them when it is running a program. Whenever a device is added in the Robot Configuration, it will appear in this list. The list names the device, what type of device it is, and which ports the device is connected to on the Brain. 

For more information about adding a device to the Robot Configuration, please refer to these articles:

How to Configure VEX V5 Smart Motors - VEXcode V5 Text

How to Configure a VEX V5 Controller - VEXcode V5 Text

How to Configure a Drivetrain - VEXcode V5 Text

How to Configure VEX 3-Wire Devices - VEXcode V5 Text

How to Configure a Drivetrain (No Gyro Sensor) - VEXcode V5 Text

Robot Config: Vision Sensor - VEXcode V5 Text