ARMS is a PROS library that makes writing autonomous code for VEX robots a piece of cake.
-
Download the most recent template
-
Run this command from terminal
pros c fetch ARMS@3.1.0.zip
-
cd
into your pros project directory in your terminal -
Apply the library to the project
pros c apply ARMS
-
Put
#include "ARMS/api.h"
in your main.h -
Put
#include "ARMS/config.h"
in your main.cpp -
Call
arms::init()
in your initialize()
The file ARMS/config.h
contains all the macros necessary to configure ARMS. There are many different macros to fine tune ARMS for your robot. Here are some examples:
LEFT_MOTORS
- A list of motors used for the left wheels of the chassis.RIGHT_MOTORS
- A list of motors used for the right wheels of the chassis.GEAR_SET
- The gear-set that the motors of the chassis uses.DISTANCE_CONSTANT
- Used to tune how far the robot travels for a given unit of distance. We tune this so that the robot travels 12 inches accurately.DEGREE_CONSTANT
- Used to tune how far the robot turns for a given unit of distance. We tune this so that the robot turns 90° accurately.*_KP
,*_KI
,*_KD
- Tunes the