RIT VEXU Core API
Loading...
Searching...
No Matches
screen::StatsPage Class Reference

Draws motor stats and battery stats to the screen. More...

#include <screen.h>

Inheritance diagram for screen::StatsPage:
screen::Page

Public Member Functions

 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
 

Detailed Description

Draws motor stats and battery stats to the screen.

Constructor & Destructor Documentation

◆ StatsPage()

screen::StatsPage::StatsPage ( std::map< std::string, vex::motor & > motors)

Creates a stats page.

Parameters
motorsa map of string to motor that we want to draw on this page

Member Function Documentation

◆ draw()

void screen::StatsPage::draw ( vex::brain::lcd & scr,
bool first_draw,
unsigned int frame_number )
overridevirtual
See also
Page::draw

Reimplemented from screen::Page.

◆ update()

void screen::StatsPage::update ( bool was_pressed,
int x,
int y )
overridevirtual
See also
Page::update

Reimplemented from screen::Page.


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