|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
On-brain auton picker UI. More...
#include <auton_selector.hpp>
Public Member Functions | |
| ~AutonSelector () | |
| void | add (const std::string &name, const std::string &desc, std::function< void()> fn) |
| Register an autonomous routine. | |
| void | add (const std::string &name, const std::string &desc, std::function< void()> fn, const lv_img_dsc_t *banner) |
| add() variant with a scrolling banner image shown inside the button. | |
| void | init () |
| Build the LVGL UI. | |
| void | run () |
Invoke the currently selected routine (call from autonomous()). | |
| void | show () |
| Activate the picker screen. | |
| int | selected () const |
On-brain auton picker UI.
Singleton-style — use the global auton_selector instance. Holds the list of registered autons, manages the LVGL screen lifecycle, and exposes a compact PID-tuner side panel and live odom display.
Definition at line 35 of file auton_selector.hpp.
|
inline |
Definition at line 37 of file auton_selector.hpp.
| void light::AutonSelector::add | ( | const std::string & | name, |
| const std::string & | desc, | ||
| std::function< void()> | fn | ||
| ) |
Register an autonomous routine.
| name | display name on the picker button |
| desc | description shown in the side panel |
| fn | function invoked when the routine is selected |
| void light::AutonSelector::add | ( | const std::string & | name, |
| const std::string & | desc, | ||
| std::function< void()> | fn, | ||
| const lv_img_dsc_t * | banner | ||
| ) |
add() variant with a scrolling banner image shown inside the button.
| void light::AutonSelector::init | ( | ) |
Build the LVGL UI.
Call once in initialize().
| void light::AutonSelector::run | ( | ) |
Invoke the currently selected routine (call from autonomous()).
|
inline |
Definition at line 65 of file auton_selector.hpp.
| void light::AutonSelector::show | ( | ) |
Activate the picker screen.