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

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

#include <legacy.h>

Inheritance diagram for LegacyScreen::StatsPage:
LegacyScreen::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()

LegacyScreen::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 LegacyScreen::StatsPage::draw ( vex::brain::lcd & scr,
bool first_draw,
unsigned int frame_number )
overridevirtual
See also
Page::draw

Reimplemented from LegacyScreen::Page.

◆ update()

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

Reimplemented from LegacyScreen::Page.


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