#include <drive_commands.h>
Inherits AutoCommand.
|
| DriveToPointCommand (TankDrive &drive_sys, Feedback &feedback, double x, double y, directionType dir, double max_speed=1, double end_speed=0) |
|
| DriveToPointCommand (TankDrive &drive_sys, Feedback &feedback, point_t point, directionType dir, double max_speed=1, double end_speed=0) |
|
bool | run () override |
|
AutoCommand wrapper class for the drive_to_point function in the TankDrive class
◆ DriveToPointCommand() [1/2]
DriveToPointCommand::DriveToPointCommand |
( |
TankDrive & | drive_sys, |
|
|
Feedback & | feedback, |
|
|
double | x, |
|
|
double | y, |
|
|
directionType | dir, |
|
|
double | max_speed = 1, |
|
|
double | end_speed = 0 ) |
Construct a DriveForward Command
- Parameters
-
drive_sys | the drive system we are commanding |
feedback | the feedback controller we are using to execute the drive |
x | where to drive in the x dimension |
y | where to drive in the y dimension |
dir | the direction to drive |
max_speed | 0 -> 1 percentage of the drive systems speed to drive at |
◆ DriveToPointCommand() [2/2]
DriveToPointCommand::DriveToPointCommand |
( |
TankDrive & | drive_sys, |
|
|
Feedback & | feedback, |
|
|
point_t | point, |
|
|
directionType | dir, |
|
|
double | max_speed = 1, |
|
|
double | end_speed = 0 ) |
Construct a DriveForward Command
- Parameters
-
drive_sys | the drive system we are commanding |
feedback | the feedback controller we are using to execute the drive |
point | the point to drive to |
dir | the direction to drive |
max_speed | 0 -> 1 percentage of the drive systems speed to drive at |
◆ run()
bool DriveToPointCommand::run |
( |
| ) |
|
|
override |
Run drive_to_point Overrides run from AutoCommand
- Returns
- true when execution is complete, false otherwise
The documentation for this class was generated from the following files: