1 #ifndef _TRIGGERDRIVE_HG_ 3 #define _TRIGGERDRIVE_HG_ 5 #include <frc/commands/Command.h> 8 #include <frc/GenericHID.h> 41 #endif // _TRIGGERDRIVE_HG_
int directionMultiplier
Can be 1 or -1. Determines the direction the the robot moves in.
void End() override
Runs once when IsFinished() returns true.
void Interrupted() override
Runs once if the command is forced to stop.
TriggerDrive()
Class constructor.
void Execute() override
Called in a loop during Teleop.
An interface command for driving the robot with an xbox controller.
double speed
Speed value that will be passed into DriveTrain::ArcadeDrive.
void Initialize() override
Runs once on initalization.
double rotation
Rotation value that will be passed into DriveTrain::ArcadeDrive.
bool IsFinished() override
frc::XboxController * pJoyDrive
A mnemonic for the driver's controller because we are lazy.
double speedMultiplier
The speed of the robot is multiplied by this number. Used for slowmode.