|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
Autonomous routine declarations. More...
Go to the source code of this file.
Functions | |
Setup functions | |
Called once by Do not rename these. | |
| void | default_constants () |
| Tune PID gains, exit conditions, and slew rates. | |
| void | default_positions () |
| Set starting piston / mechanism states. | |
Autonomous routines | |
Competition autonomous entry points. | |
| void | run_jerryio_path_1 () |
| Run the path generated by the JerryIO path planner (path 1). | |
Test / tuning routines | |
Useful during practice for dialing in PID. Register these in auton_config.cpp during tuning sessions; remove them before competition. | |
| void | con_test () |
| Basic connectivity / control check. | |
| void | drive_test (int inches) |
| Drive straight N inches — tune drive PID. | |
| void | turn_test (int degrees) |
| Turn to N degrees — tune turn PID. | |
| void | swing_test (int degrees) |
| Swing to N degrees — tune swing PID. | |
| void | heading_test (int degrees) |
| Drive while fighting a heading offset. | |
| void | odom_test (int degrees) |
| Zero odom then drive 24 in — test odometry. | |
Autonomous routine declarations.
Three files work together to set up autonomous:
Workflow for adding a new routine:
void my_auton();light::auton_selector.add("Label", "na", my_auton); Definition in file autons.hpp.
| void con_test | ( | ) |
Basic connectivity / control check.
| void default_constants | ( | ) |
Tune PID gains, exit conditions, and slew rates.
| void default_positions | ( | ) |
Set starting piston / mechanism states.
| void drive_test | ( | int | inches | ) |
Drive straight N inches — tune drive PID.
| void heading_test | ( | int | degrees | ) |
Drive while fighting a heading offset.
| void odom_test | ( | int | degrees | ) |
Zero odom then drive 24 in — test odometry.
| void run_jerryio_path_1 | ( | ) |
Run the path generated by the JerryIO path planner (path 1).
| void swing_test | ( | int | degrees | ) |
Swing to N degrees — tune swing PID.
| void turn_test | ( | int | degrees | ) |
Turn to N degrees — tune turn PID.