Draws motor stats and battery stats to the screen.
More...
#include <screen.h>
|
| StatsPage (std::map< std::string, vex::motor & > motors) |
| Creates a stats page.
|
|
void | update (bool was_pressed, int x, int y) override |
|
void | draw (vex::brain::lcd &, bool first_draw, unsigned int frame_number) override |
|
Draws motor stats and battery stats to the screen.
◆ StatsPage()
screen::StatsPage::StatsPage |
( |
std::map< std::string, vex::motor & > | motors | ) |
|
Creates a stats page.
- Parameters
-
motors | a map of string to motor that we want to draw on this page |
◆ draw()
void screen::StatsPage::draw |
( |
vex::brain::lcd & | scr, |
|
|
bool | first_draw, |
|
|
unsigned int | frame_number ) |
|
overridevirtual |
◆ update()
void screen::StatsPage::update |
( |
bool | was_pressed, |
|
|
int | x, |
|
|
int | y ) |
|
overridevirtual |
The documentation for this class was generated from the following files: