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.
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.
Capitalization is important. Devices in VEXcode Pro V5 should always be capitalized. Some examples of devices would include: Controller, Motor, and Gyro.
Camel Casing is used in the names of commands to identify word parts. The
driveForcommand 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.