1 #ifndef _DRIVETRAIN_HG_ 3 #define _DRIVETRAIN_HG_ 5 #include <frc/commands/Subsystem.h> 6 #include <frc/WPILib.h> 7 #include <ctre/Phoenix.h> 8 #include <frc/drive/DifferentialDrive.h> 32 void TankDrive(
double leftSpeed,
double rightSpeed);
57 #endif // _DRIVETRAIN_HG_
void RadialDrive(double magnitude, double radial)
rr::PIDController * pArcadeController
frc::DifferentialDrive * pRobotDrive
Pointer for a differential drivebase made up of 2 motor pairs.
can::WPI_TalonSRX * pRightRearMotor
Pointer for right rear motor.
void RawDrive(double l, double r)
A subsystem that interfaces with the drivebase on the robot.
void ArcadeDrive(double xSpeed, double zRotation)
can::WPI_TalonSRX * pLeftRearMotor
Pointer for left rear motor.
void TankDrive(double leftSpeed, double rightSpeed)
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)