EZ-Template is a simple plug-and-play PROS template that handles drive base functions for VEX robots.
EZ-Template Version: 2.1.0
Autonomous routines that used EZ-Template
- Download the latest example project here. Extract the zip, and open it in PROS.
- In
src/main.cpp
, configure drive and IMU ports to what they are on your robot. Be sure to read the comments! - Configure your wheel size and cartrige. Remember that 4" omni wheels are actually 4.125!
- In
src/main.cpp
, at the bottom invoid opcontrol()
, decide how you'd like to control your robot! Any flavor of arcade or tank! - Turn the robot on and use it in driver control. Make sure the ports are correct and reversed correctly!
- To test the test autonomous modes, plug into a competition switch and select the autonomous mode on the brain screen by pressing the left and right buttons! The current page will be the autonomous that runs. For making new autonomous routines, check
src/autons.cpp
for examples on how to use the drive functions.
Note: this only works for 2.0.0 and beyond. You cannot upgrade from 1.X.X to 2.X.X.
- Download the most recent EZ-Template here.
- In your terminal,
cd
into the directory you downloaded the file. - Run this command from terminal
prosv5 c fetch EZ-Template@2.1.0.zip
. cd
into your pros project directory in your terminal.- Apply the library to the project
prosv5 c apply EZ-Template
. - Put
#include "EZ-Template/api.hpp"
in yourinclude/main.h
.
Check out the tutorial on adding new autonomous routines here!
This project is licensed under the Mozilla Public License, version 2.0 - see the LICENSE file for the full license.