VEX Robotics Programming
VEXcode C++ guides, from your first project to autonomous navigation.
Basics
Project setup, C++, and robot hardware.
Getting started
Install VS Code and the VEX extension, configure motors, and run a first program.
C++ basics
Variables, functions, conditions, loops, and common compiler errors.
Reading sensors
Read distance, rotation, and color data and reject invalid samples.
Intakes and arms
Control mechanisms, set encoder targets, and handle timeouts.
Color sorting
Filter optical readings and reverse an intake to reject the unwanted ring color.
Autonomous
Movement functions, feedback, and testing.
Position tracking
Odometry, coordinate targets, and field measurements.
Code examples use VEXcode C++. Sources include VEX, PROS, Purdue SIGBots, and LemLib. Check ports, dimensions, and gains against your robot.