a page that shows odometry position and rotation and a map (if an sd card with the file is on)
More...
#include <screen.h>
|
| 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 |
|
a page that shows odometry position and rotation and a map (if an sd card with the file is on)
◆ 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
-
odom | the odometry system to monitor |
robot_width | the width (side to side) of the robot in inches. Used for visualization |
robot_height | the robot_height (front to back) of the robot in inches. Used for visualization |
do_trail | whether or not to calculate and draw the trail. Drawing and storing takes a very slight extra amount of processing power |
◆ draw()
void screen::OdometryPage::draw |
( |
vex::brain::lcd & | scr, |
|
|
bool | first_draw, |
|
|
unsigned int | frame_number ) |
|
overridevirtual |
◆ update()
void screen::OdometryPage::update |
( |
bool | was_pressed, |
|
|
int | x, |
|
|
int | y ) |
|
overridevirtual |
The documentation for this class was generated from the following files: