|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
Miscellaneous helpers wired into the LightLib base init: brain-screen status print, motor-temperature controller buzz, a moveToPoint helper, and a small standalone PID struct used by characterization paths. More...
Go to the source code of this file.
Classes | |
| struct | LightPID |
| Lightweight PID controller used by characterization helpers. More... | |
Namespaces | |
| namespace | light |
| Public LightLib odometry / pose-estimation API. | |
Functions | |
| void | screen_print_tracker (light::tracking_wheel *tracker, std::string name, int line) |
| Render one tracking-wheel's live position to a brain-screen line. | |
| void | screen_task () |
| Background task that paints status text to the brain screen. | |
| void | lib_extras () |
| Boots all the LightLib helper tasks (screen, temp watch, etc.). | |
| void | checkMotorTemp (pros::Controller &controller, pros::Motor &Top, pros::Motor &Bottom) |
Buzz the controller when a key drive motor exceeds the configured heat threshold (HEAT_BUZZ_TEMP in main.cpp). | |
| void | default_positions () |
| Set initial piston / mechanism states. | |
| void | track_basket () |
| Tracks a basket / scoring target (project-specific). | |
| void | light::extras_init (light::Drive *chassis, pros::MotorGroup *leftMotors, pros::MotorGroup *rightMotors) |
| Register the user's drivetrain objects with LightLib. | |
| void | light::getDriveMotorGroups (pros::MotorGroup **leftOut, pros::MotorGroup **rightOut) |
| Look up the registered drivetrain motor groups. | |
| light::Drive * | light::getChassis () |
| void | moveToPoint (float x, float y, int timeout, float maxSpeed=127.0f, bool reversed=false) |
Move the chassis to a field-relative (x, y) point. | |
Miscellaneous helpers wired into the LightLib base init: brain-screen status print, motor-temperature controller buzz, a moveToPoint helper, and a small standalone PID struct used by characterization paths.
Definition in file extras.hpp.
| void checkMotorTemp | ( | pros::Controller & | controller, |
| pros::Motor & | Top, | ||
| pros::Motor & | Bottom | ||
| ) |
Buzz the controller when a key drive motor exceeds the configured heat threshold (HEAT_BUZZ_TEMP in main.cpp).
| controller | controller to buzz |
| Top | first motor to monitor |
| Bottom | second motor to monitor |
| void default_positions | ( | ) |
Set initial piston / mechanism states.
User-defined in autons.cpp.
| void lib_extras | ( | ) |
Boots all the LightLib helper tasks (screen, temp watch, etc.).
| void moveToPoint | ( | float | x, |
| float | y, | ||
| int | timeout, | ||
| float | maxSpeed = 127.0f, |
||
| bool | reversed = false |
||
| ) |
Move the chassis to a field-relative (x, y) point.
| x | target X in inches |
| y | target Y in inches |
| timeout | give up after this many milliseconds |
| maxSpeed | speed cap, 0..127 |
| reversed | drive to the point backwards |
| void screen_print_tracker | ( | light::tracking_wheel * | tracker, |
| std::string | name, | ||
| int | line | ||
| ) |
Render one tracking-wheel's live position to a brain-screen line.
| tracker | tracking_wheel to print |
| name | label printed before the value |
| line | brain-screen line index (0..7) |
| void screen_task | ( | ) |
Background task that paints status text to the brain screen.
| void track_basket | ( | ) |
Tracks a basket / scoring target (project-specific).