A custom template based on the PROS (Purdue Robotics Operating System) meant to handle basic robot functions
-
Download the latest library of the template here.
-
Open / Move the downloaded .zip file to the main directory of your active PROS project.
-
In the PROS CLI apply the template using the following commands:
prosv5 c fetch [email protected] prosv5 c apply Apollo-Template
(
x.x.x
is the version of the downloaded library that is being installed)Example:
prosv5 c fetch [email protected] prosv5 c apply Apollo-Template
-
Once the commands have been executed and the program installed, add
#include "apollo/api.hpp"
anywhere inmain.h
-
Once done, intialize the drivetrain in any
.cpp
or.c
file, such asmain.cpp
.To initialize, define a chassis using the
Chassis
class, give it a name, and add your motor ports and drive parameters like such:Chassis drivetrain( {1, 2}, {3, 4}, 5, 4, 1, 200);
Read the documentation here to finish initializing or look at the example definition here!
-
Finally, reference the class in any
.hpp
or.h
file, such asmain.h
, like such:extern Chassis drivetrain();
And.... Your done!
It's not rocket science, it's Robotics!
- Download the latest template here.
Apollo Template is meant to be used as an all-in-one template for easily setting up your drivetrain. Simply input all your drivetrain parameters, choose your flavor of joystick control, and you're off to the races.
Currently, Apollo Template supports only tank drive configurations with a basic arcade and tank control methods. We plan to add X Drive as well as Meccanum drive support at later versions
Apollo Template is only supported on PROS Kernel version 3.8.0. A PROS 4 version will be availible once PROS 4 is out of beta.