Code templates
C++ templates give a team working drive code, PID and autonomous tools to build on, instead of starting from a blank file. Each one links to its code on GitHub and to its documentation, which explains how to set it up and use it.
From our team
Boxlib
PROSOur PROS template for X-drives and other holonomic drivetrains. It tracks where the robot is with odometry, drives in any direction with field-centric control, steers around obstacles, switches PID tuning as it closes in on a target, and can turn a driver practice run into an autonomous routine.
Based on HoloLib by Cal High Robotics (Apache 2.0 license).
JAR Template code
VEXcodeOur competition code built on JAR-Template, to show how the template looks in a real robot program.
Coming soonDocs ↗
Community templates
EZ-Template
PROSThe standard starting template for teams that are new to C++. It handles tank drive, PID movements and an autonomous selector out of the box, so a team can get a working autonomous quickly.
JAR-Template
VEXcodeAnother C++ template mostly built around tank drives, like EZ-Template and LemLib. It is set up differently from EZ-Template and takes more effort to organize, but its code is straightforward to read.
LemLib
PROSAn odometry-based library: the robot keeps track of its exact position on the field and drives to points and along paths. It relies heavily on odometry, so it needs tracking wheels or careful sensor setup, and more C++ skill than EZ-Template.
Before you start
Each template needs the coding app it was built for: