LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
light::PidTuner Class Reference

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::Driveget_drive () const
 

Detailed Description

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.

Member Function Documentation

◆ close()

void light::PidTuner::close ( )

Close the tuner screen and restore the previous LVGL screen.

◆ get_drive()

light::Drive * light::PidTuner::get_drive ( ) const
inline
Returns
The bound Drive instance, or nullptr if none.

Definition at line 63 of file pid_tuner.hpp.

◆ is_open()

bool light::PidTuner::is_open ( ) const
inline
Returns
true if the tuner screen is the currently active LVGL screen.

Definition at line 60 of file pid_tuner.hpp.

◆ open()

void light::PidTuner::open ( )

Render and activate the tuner screen.

◆ set_drive()

void light::PidTuner::set_drive ( light::Drive drive)

Bind the Drive whose PIDs this tuner will edit.

◆ start_task()

void light::PidTuner::start_task ( )

Spawn the background sampling task that feeds the chart.

Idempotent.


The documentation for this class was generated from the following file: