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

a page that shows odometry position and rotation and a map (if an sd card with the file is on) More...

#include <screen.h>

Inheritance diagram for screen::OdometryPage:
screen::Page

Public Member Functions

 OdometryPage (OdometryBase &odom, double robot_width, double robot_height, bool do_trail)
 Create an odometry trail. Make sure odometry is initilized before now.
 
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

a page that shows odometry position and rotation and a map (if an sd card with the file is on)

Constructor & Destructor Documentation

◆ OdometryPage()

screen::OdometryPage::OdometryPage ( OdometryBase & odom,
double robot_width,
double robot_height,
bool do_trail )

Create an odometry trail. Make sure odometry is initilized before now.

Parameters
odomthe odometry system to monitor
robot_widththe width (side to side) of the robot in inches. Used for visualization
robot_heightthe robot_height (front to back) of the robot in inches. Used for visualization
do_trailwhether or not to calculate and draw the trail. Drawing and storing takes a very slight extra amount of processing power

Member Function Documentation

◆ draw()

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

Reimplemented from screen::Page.

◆ update()

void screen::OdometryPage::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: