![]() |
LemLib
0.4.7
An easy to use and feature-rich PROS template
|
This is the header file for the odom.cpp file. Its not meant to be used directly, only through the chassis class. More...
Go to the source code of this file.
Functions | |
void | lemlib::setSensors (lemlib::OdomSensors_t sensors, lemlib::Drivetrain_t drivetrain) |
Set the sensors to be used for odometry. More... | |
Pose | lemlib::getPose (bool radians=false) |
Get the pose of the robot. More... | |
void | lemlib::setPose (Pose pose, bool radians=false) |
Set the Pose of the robot. More... | |
void | lemlib::update () |
Update the pose of the robot. More... | |
void | lemlib::init () |
Initialize the odometry system. More... | |
This is the header file for the odom.cpp file. Its not meant to be used directly, only through the chassis class.
Pose lemlib::getPose | ( | bool | radians = false | ) |
Get the pose of the robot.
radians | true for theta in radians, false for degrees. False by default |
void lemlib::init | ( | ) |
Initialize the odometry system.
void lemlib::setPose | ( | Pose | pose, |
bool | radians = false |
||
) |
Set the Pose of the robot.
pose | the new pose |
radians | true if theta is in radians, false if in degrees. False by default |
void lemlib::setSensors | ( | lemlib::OdomSensors_t | sensors, |
lemlib::Drivetrain_t | drivetrain | ||
) |
Set the sensors to be used for odometry.
sensors | the sensors to be used |
drivetrain | drivetrain to be used |
void lemlib::update | ( | ) |
Update the pose of the robot.