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

#include <drive_commands.h>

Inherits AutoCommand.

Public Member Functions

 OdomSetPosition (OdometryBase &odom, const pose_t &newpos=OdometryBase::zero_pos)
 
bool run () override
 

Detailed Description

AutoCommand wrapper class for the set_position function in the Odometry class

Constructor & Destructor Documentation

◆ OdomSetPosition()

OdomSetPosition::OdomSetPosition ( OdometryBase & odom,
const pose_t & newpos = OdometryBase::zero_pos )

constructs a new OdomSetPosition command

Parameters
odomthe odometry system we are setting
newposthe position we are telling the odometry to take. defaults to (0, 0), angle = 90

Construct an Odometry set pos

Parameters
odomthe odometry system we are setting
newposthe now position to set the odometry to

Member Function Documentation

◆ run()

bool OdomSetPosition::run ( )
override

Run set_position Overrides run from AutoCommand

Returns
true when execution is complete, false otherwise

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