Understanding Syntax Rules and Guidelines in VEXcode Pro V5

Learning to use VEXcode Pro V5 C++ is similar to learning any other type of language. There are rules and guidelines for VEXcode Pro V5 syntax, just like there are unique grammar rules for different languages. Two important rules are capitalization and camel casing. These rules make programs easier to read. Below is an example of a VEXcode Pro V5 program.

Diagram illustrating the V5 category features and components, showcasing various elements relevant to the tutorials section.

The program consists of an instruction to the robot. In this example, the instruction is directing the Drivetrain (Device) to drive (command) forward 200 mm (parameters). When writing an instruction, the following rules apply.

Screenshot of a VEX Robotics V5 category tutorial, showcasing various components and features related to V5 robotics systems, including visual aids and instructional content for users.

Capitalization is important. Devices in VEXcode Pro V5 should always be capitalized. Some examples of devices would include: Controller, Motor, and Gyro.

Vex V5 robotics system components displayed on a table, including sensors, motors, and structural parts, illustrating the various elements used in V5 tutorials.

Camel Casing is used in the names of commands to identify word parts. The driveFor command would be one example of this naming convention in VEXcode Pro V5. In camel casing, the command must be written as one word and cannot begin with a capital letter.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: