33 this->
speed = (this->
pJoyDrive->GetTriggerAxis(Hand::kRightHand) - this->
pJoyDrive->GetTriggerAxis(Hand::kLeftHand));
41 if (this->
pJoyDrive->GetBumperPressed(Hand::kLeftHand)){
44 }
else if (this->
pJoyDrive->GetBumperReleased(Hand::kLeftHand)){
56 this->speedOutput += change;
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.
double speed
Speed value that will be passed into DriveTrain::ArcadeDrive.
void Log(std::string message)
Main robot class that is called by wpilib.
void Initialize() override
Runs once on initalization.
double rotation
Rotation value that will be passed into DriveTrain::ArcadeDrive.
void ArcadeDrive(double xSpeed, double zRotation)
#define DRIVEWITHJOYSTICK_ROTATION_LIMITER
frc::XboxController * GetJoystickDrive(void)
static OI * m_oi
Pointer for the Operator Interface (OI)
bool IsFinished() override
static DriveTrain * m_DriveTrain
Pointer for the DriveTrain.
static ClimbState CurrentClimbState
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.