package org.usfirst.frc.team3501.robot.subsystems;
import org.usfirst.frc.team3501.robot.Constants;
+import org.usfirst.frc.team3501.robot.commands.driving.JoystickDrive;
import com.ctre.CANTalon;
// DRIVE METHODS
public void setMotorValues(final double left, final double right) {
- robotDrive.tankDrive(left, right);
+ frontLeft.set(left);
+ rearLeft.set(left);
+
+ frontRight.set(right);
+ rearRight.set(right);
}
- public void joystickDrive(final double left, final double right) {
- robotDrive.tankDrive(left, right);
+ public void joystickDrive(final double thrust, final double twist) {
+ robotDrive.arcadeDrive(thrust, twist);
}
public void stop() {
@Override
protected void initDefaultCommand() {
+ setDefaultCommand(new JoystickDrive());
}
}