PIDPage provides a way to tune a pid controller on the screen.
More...
#include <screen.h>
|
| PIDPage (PID &pid, std::string name, std::function< void(void)> onchange=[]() {}) |
| Create a PIDPage.
|
|
void | update (bool was_pressed, int x, int y) override |
|
void | draw (vex::brain::lcd &, bool first_draw, unsigned int frame_number) override |
|
PIDPage provides a way to tune a pid controller on the screen.
◆ PIDPage()
screen::PIDPage::PIDPage |
( |
PID & | pid, |
|
|
std::string | name, |
|
|
std::function< void(void)> | onchange = []() {} ) |
Create a PIDPage.
- Parameters
-
pid | the pid controller we're changing |
name | a name to recognize this pid controller if we've got multiple pid screens |
onchange | a function that is called when a tuning parameter is changed. If you need to update stuff on that change register a handler here |
◆ draw()
void screen::PIDPage::draw |
( |
vex::brain::lcd & | scr, |
|
|
bool | first_draw, |
|
|
unsigned int | frame_number ) |
|
overridevirtual |
◆ update()
void screen::PIDPage::update |
( |
bool | was_pressed, |
|
|
int | x, |
|
|
int | y ) |
|
overridevirtual |
The documentation for this class was generated from the following files: