Introduction to Text-based Programming
What is Text-Based Programming?
In order to control your robot, you will be creating projects in a text-based programming language called VEXcode V5. This is a language based on C++ and it uses text and special syntax to write the instructions which ultimately tell the robot what to do. If you worked with block-based programming before, such as VEXcode V5 Blocks, these text instructions are replacing the blocks.
An instruction is an entire line within the project. The instruction can contain portions of information for the device, the command, the parameters. The image below shows an instruction with each of these portions outlined.
It’s important to remember specific rules for writing instructions in VEXcode V5 Text. For example, capitalization has specific rules within instructions. Devices are capitalized, but the commands must be in camel case.
For more information on how to format the grammar and syntax, click here. It’s also helpful to remember that there is help available within VEXcode V5 Text. Review how to access this help in C++ or Python.