int directionMultiplier
Can be 1 or -1. Determines the direction the the robot moves in.
frc::XboxController * pJoyDrive
A mnemonic for the driver's controller because we are lazy.
void Initialize() override
Runs once on initalization.
DriveWithJoystick()
Class constructor.
bool getTriggers()
Called only if the drivemode is set to 1.
void End() override
Runs once when IsFinished() returns true.
double radial
radial value that will be passed into DriveTrain::RadialDrive
void ArcadeDrive(double xSpeed, double zRotation)
void Interrupted() override
Runs once if the command is forced to stop.
int driveMode
Used to keep track of the drive mode.
double magnitude
magnitude value that will be passed into DriveTrain::RadialDrive
frc::XboxController * GetJoystickDrive(void)
static OI * m_oi
Pointer for the Operator Interface (OI)
static DriveTrain * m_DriveTrain
Pointer for the DriveTrain.
double magnitudeMultiplier
The magnitude of the robot is multiplied by this number. Used for slowmode.
bool IsFinished() override
void Execute() override
Called in a loop during Teleop.