coding made ez
A C++ library for VEX V5 robots that gets your robot moving in minutes, built on PROS.
Used by thousands of VEX teams.
Get Started · Documentation · Join the Discord · Download example project
| You want to... | Read |
|---|---|
| Use EZ-Template | Getting started |
| Ask a question | The Discord |
| Report a bug, fix something, or add a feature | CONTRIBUTING.md |
| Send your first PR, step by step | FIRST-PR.md |
| See how we decide what gets fixed | WHAT-IS-A-BUG.md |
| Maintain EZ-Template | MAINTAINING.md |
| Run an AI agent on this repo | AGENTS.md |
AI agents MUST read AGENTS.md in full before doing anything in this repo.
// Chassis constructor
ez::Drive chassis(
{1, 2, 3}, // Left Chassis Ports
{-4, -5, -6}, // Right Chassis Ports
7, // IMU Port
4.125, // Wheel Diameter
343.0); // Wheel RPMSet your motor ports, wheel size, and IMU port once. Driving, turning, and autonomous positioning come ready to use.
Team 343X's autonomous run at VEX Worlds, built with EZ-Template. See how a run like this comes together in Using EZ-Template, or browse more runs from the community.
- Accurate driving and turning out of the box. Drive a distance, turn to an angle, or swing turn, tuned to run consistently match after match, with live adjustment from the controller.
- Odometry with pure pursuit and boomerang. Know exactly where your robot is on the field, and drive smooth curved paths to a point instead of straight-line segments. You still choose the points it drives to.
- Autonomous selector. Pick a routine from a selector screen before a match instead of re-uploading code, saved to the SD card so it's remembered after a restart. The routines themselves are still yours to write.
- Tank, single stick, or dual stick arcade control. Pick whichever your drivers are used to, with joystick curves you can tune live, no recompiling.
- Keep building on it. The same PID and slew tools that drive your robot are there for your own subsystems, so the code you start with isn't code you'll replace later.
- Built around repeatability. Matches are won by robots that drive the same way every time. That's what the tuning tools are for.
- From first auton to world champion. New teams can get an autonomous running in an afternoon. Teams that win Worlds are running the same code.
You're still the one writing the autonomous and tuning the robot. EZ-Template just gets you there faster.
EZ-Template is a tool. Like any tool, it requires understanding to use effectively. A wrench doesn't fix your robot if you don't know what's loose.
VEX competitions are now governed by the Global Robotics & Science Foundation's Student-Centered Policy, which addresses libraries and templates like EZ-Template directly:
"Libraries work differently. A library is meant to be used as built, called rather than changed, so using one is not copying and leaving it unchanged is not a failure. The team's work is choosing the library, understanding what it does, writing the code that uses it, and being able to explain why it is there. The team credits the library the same as any other outside source."
The same policy addresses code from AI tools:
"Generative AI tools do not write the team's code. What a generative AI tool produces is outside code: a starting point the team builds on and runs through the Ownership Check, never a finished program the team runs as its own."
- Understand it. Know what EZ-Template's functions actually do, not just that they work.
- Write your own code. EZ-Template gets your robot moving. Your autonomous and drive code are still yours to write.
- Own it. Test it on your own robot and adjust it until it fits what your team is building.
- Explain it. Be ready to answer if an inspector, judge, or event partner asks how your code works.
- Credit it. Cite EZ-Template in your notebook, the same as any other outside source — for example, "EZ-Template (version X.X.X), https://github.com/EZ-Robotics/EZ-Template".
Join our Discord for the fastest way to get help, or start with installation.
This project is licensed under the Mozilla Public License, version 2.0. See the LICENSE file for the full license.
