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

#include <drive_commands.h>

Inherits AutoCommand.

Public Member Functions

 PurePursuitCommand (TankDrive &drive_sys, Feedback &feedback, PurePursuit::Path path, directionType dir, double max_speed=1, double end_speed=0)
 
bool run () override
 
void on_timeout () override
 

Detailed Description

Autocommand wrapper class for pure pursuit function in the TankDrive class

Constructor & Destructor Documentation

◆ PurePursuitCommand()

PurePursuitCommand::PurePursuitCommand ( TankDrive & drive_sys,
Feedback & feedback,
PurePursuit::Path path,
directionType dir,
double max_speed = 1,
double end_speed = 0 )

Construct a Pure Pursuit AutoCommand

Parameters
pathThe list of coordinates to follow, in order
dirRun the bot forwards or backwards
feedbackThe feedback controller determining speed
max_speedLimit the speed of the robot (for pid / pidff feedbacks)

Member Function Documentation

◆ on_timeout()

void PurePursuitCommand::on_timeout ( )
override

Reset the drive system when it times out

◆ run()

bool PurePursuitCommand::run ( )
override

Direct call to TankDrive::pure_pursuit


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