mirror of
https://github.com/Team4388/2019-Hit-or-Miss.git
synced 2026-06-09 00:28:05 -06:00
Change Absolute Turn to use Absolute Turn Commands
This commit is contained in:
@@ -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());
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user