|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
Live PID tuner UI driven by LVGL. More...
#include <pid_tuner.hpp>
Public Member Functions | |
| void | set_drive (light::Drive *drive) |
| Bind the Drive whose PIDs this tuner will edit. | |
| void | start_task () |
| Spawn the background sampling task that feeds the chart. | |
| void | open () |
| Render and activate the tuner screen. | |
| void | close () |
| Close the tuner screen and restore the previous LVGL screen. | |
| bool | is_open () const |
| light::Drive * | get_drive () const |
Live PID tuner UI driven by LVGL.
Bind a Drive instance via set_drive(), then start the background sampling task with start_task(). open() renders the screen; close() returns to the previous one. While open, gain rows live-edit the bound chassis's PIDs and the chart plots wheel output / error.
Definition at line 45 of file pid_tuner.hpp.
| void light::PidTuner::close | ( | ) |
Close the tuner screen and restore the previous LVGL screen.
|
inline |
Definition at line 63 of file pid_tuner.hpp.
|
inline |
Definition at line 60 of file pid_tuner.hpp.
| void light::PidTuner::open | ( | ) |
Render and activate the tuner screen.
| void light::PidTuner::set_drive | ( | light::Drive * | drive | ) |
Bind the Drive whose PIDs this tuner will edit.
| void light::PidTuner::start_task | ( | ) |
Spawn the background sampling task that feeds the chart.
Idempotent.