60 this->
pRobotDrive->TankDrive(leftSpeed, rightSpeed);
66 double leftSpeed, rightSpeed = 0;
69 rightSpeed = magnitude;
72 radial += (radial > 1)? 1 : -1;
76 leftSpeed = rightSpeed * radial;
79 this->
pRobotDrive->TankDrive(leftSpeed, rightSpeed);
void RadialDrive(double magnitude, double radial)
rr::PIDController * pArcadeController
frc::DifferentialDrive * pRobotDrive
Pointer for a differential drivebase made up of 2 motor pairs.
#define DRIVETRAIN_LEFT_REAR_MOTOR
can::WPI_TalonSRX * pRightRearMotor
Pointer for right rear motor.
void RawDrive(double l, double r)
#define DRIVETRAIN_RIGHT_FRONT_MOTOR
void ArcadeDrive(double xSpeed, double zRotation)
can::WPI_TalonSRX * pLeftRearMotor
Pointer for left rear motor.
#define DRIVEWITHJOYSTICK_ROTATION_LIMITER
void TankDrive(double leftSpeed, double rightSpeed)
An interface command for driving the robot with an xbox controller.
#define DRIVETRAIN_RIGHT_REAR_MOTOR
can::WPI_TalonSRX * pRightFrontMotor
Pointer for right front motor.
can::WPI_TalonSRX * pLeftFrontMotor
Pointer for left front motor.
DriveTrain()
Class constructor.
void InitDefaultCommand() override
Initalizes the default command for this subsystem (DriveWithJoystick)
#define DRIVETRAIN_RADIAL_SENSITIVITY_CUTOFF
#define DRIVETRAIN_LEFT_FRONT_MOTOR