Change Absolute Turn to use Absolute Turn Commands

This commit is contained in:
Keenan D. Buckley
2019-03-08 17:17:45 -07:00
parent ae249adf10
commit 72c9b27e02
2 changed files with 2 additions and 2 deletions
@@ -96,7 +96,7 @@ public class OI
TurnDriveTrain90.whenPressed(new DriveRelativeTurnPID(90, MPSoftwareTurnType.TANK));
JoystickButton TurnTo0NavX = new JoystickButton(m_driverXbox.getJoyStick(), XboxController.LEFT_JOYSTICK_BUTTON);
TurnTo0NavX.whenPressed(new DriveRelativeTurnPID(0, MPSoftwareTurnType.TANK));
TurnTo0NavX.whenPressed(new DriveAbsoluteTurnPID(0, MPSoftwareTurnType.TANK));
SmartDashboard.putData("switch to manuel", new SetManual());
SmartDashboard.putData("run arm test", new ArmTest());
@@ -31,7 +31,7 @@ public class DriveAbsoluteTurnPID extends Command {
// Called just before this Command runs the first time
@Override
protected void initialize() {
Robot.drive.setRelativeTurnPID(absoluteTurnAngleDeg, 0.3, 0.1, turnType);
Robot.drive.setAbsoluteTurnPID(absoluteTurnAngleDeg, 0.3, 0.1, turnType);
}
// Called repeatedly when this Command is scheduled to run