RIT VEXU Core API
|
#include <drive_commands.h>
Inherits AutoCommand.
Public Member Functions | |
DriveForwardCommand (TankDrive &drive_sys, Feedback &feedback, double inches, directionType dir, double max_speed=1, double end_speed=0) | |
bool | run () override |
void | on_timeout () override |
AutoCommand wrapper class for the drive_forward function in the TankDrive class
DriveForwardCommand::DriveForwardCommand | ( | TankDrive & | drive_sys, |
Feedback & | feedback, | ||
double | inches, | ||
directionType | dir, | ||
double | max_speed = 1, | ||
double | end_speed = 0 ) |
File: drive_commands.h Desc: Holds all the AutoCommand subclasses that wrap (currently) TankDrive functions
Currently includes:
Also holds AutoCommand subclasses that wrap OdometryBase functions
Currently includes:
drive_sys | the drive system we are commanding |
feedback | the feedback controller we are using to execute the drive |
inches | how far forward to drive |
dir | the direction to drive |
max_speed | 0 -> 1 percentage of the drive systems speed to drive at |
|
override |
Cleans up drive system if we time out before finishing
reset the drive system if we timeout
|
override |
Run drive_forward Overrides run from AutoCommand