RIT VEXU Core API
|
#include <drive_commands.h>
Inherits AutoCommand.
Public Member Functions | |
TurnToHeadingCommand (TankDrive &drive_sys, Feedback &feedback, double heading_deg, double speed=1, double end_speed=0) | |
bool | run () override |
void | on_timeout () override |
AutoCommand wrapper class for the turn_to_heading() function in the TankDrive class
TurnToHeadingCommand::TurnToHeadingCommand | ( | TankDrive & | drive_sys, |
Feedback & | feedback, | ||
double | heading_deg, | ||
double | max_speed = 1, | ||
double | end_speed = 0 ) |
Construct a TurnToHeadingCommand Command
drive_sys | the drive system we are commanding |
feedback | the feedback controller we are using to execute the drive |
heading_deg | the heading to turn to in degrees |
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 don't hit our target
|
override |
Run turn_to_heading Overrides run from AutoCommand