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

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

#include <screen_pages.h>

Inheritance diagram for StatsPage:
ScreenPage

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()

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

Reimplemented from ScreenPage.

◆ update()

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

Reimplemented from ScreenPage.


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