Skip to content

Releases: Apollo-Robotics/Apollo-Template

Version 0.0.1 - Tank Drive with Tank and Arcade Control

25 Jan 04:46

Choose a tag to compare

Notes

The template only currently supports Tank Drives. X, Meccanum, H, and Asterisk drives are to be added in the next beta release.

Drive Control currently uses direct motor voltage, no PID or filtering is applied. As a result, it is not recommended to use the template for Competition use just yet.

Usage

Self-Installation and Upgrading

  1. Download the latest library of the template here.
  2. Open / Move the downloaded .zip file to the main directory of your active PROS project.
  3. In the PROS CLI apply the template using the following commands:
prosv5 c fetch Apollo-Template@x.x.x.zip
prosv5 c apply Apollo-Template

  (x.x.x is the version of the downloaded library that is being installed)

  Example:

prosv5 c fetch Apollo-Template@0.0.1.zip
prosv5 c apply Apollo-Template
  1. Once the commands have been executed and the program installed, add #include "apollo/api.hpp" anywhere in main.h
  2. Once done, intialize the drivetrain in any .cpp or .c file, such as main.cpp

  To initialize, define a chassis using the Drivetrain class, give it a name, and add your motor ports and drive parameters like such:

Drivetrain drivetrain(util::TANK_DRIVE, {1, 2}, {3, 4}, 5, 4, 1, 200);

  Read the documentation here to finish initializing or look at the example definition here!

  1. Finally, reference the class in any .hpp or .h file, such as main.h, like such:
extern Drivetrain drivetrain();

And.... Your done!

It's not rocket science, it's Robotics!

Pre-Built Project

  1. Download the latest pre-built-project here.