LemLib  0.4.7
An easy to use and feature-rich PROS template
Loading...
Searching...
No Matches
odom.hpp File Reference

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...
 

Detailed Description

This is the header file for the odom.cpp file. Its not meant to be used directly, only through the chassis class.

Author
LemLib Team
Version
0.4.5
Date
2023-01-23

Function Documentation

◆ getPose()

Pose lemlib::getPose ( bool  radians = false)

Get the pose of the robot.

Parameters
radianstrue for theta in radians, false for degrees. False by default
Returns
Pose

◆ init()

void lemlib::init ( )

Initialize the odometry system.

◆ setPose()

void lemlib::setPose ( Pose  pose,
bool  radians = false 
)

Set the Pose of the robot.

Parameters
posethe new pose
radianstrue if theta is in radians, false if in degrees. False by default

◆ setSensors()

void lemlib::setSensors ( lemlib::OdomSensors_t  sensors,
lemlib::Drivetrain_t  drivetrain 
)

Set the sensors to be used for odometry.

Parameters
sensorsthe sensors to be used
drivetraindrivetrain to be used

◆ update()

void lemlib::update ( )

Update the pose of the robot.