From 563973a6685ade871160df85737c2acd573eff2e Mon Sep 17 00:00:00 2001 From: Amogh J Date: Sat, 29 Feb 2020 16:53:57 +1100 Subject: [PATCH] commented some code out --- src/main/java/frc/robot/OI.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/OI.java b/src/main/java/frc/robot/OI.java index a3c0aac..de807bf 100644 --- a/src/main/java/frc/robot/OI.java +++ b/src/main/java/frc/robot/OI.java @@ -225,18 +225,20 @@ public void configureDiagBox(InputDevice box) { onTriggered(box.getButton(OperatorBoxButtons.LOADER_PADDLE_NOTBLOCKING), () -> loaderIF.setPaddleNotBlocking(true)); - + //might be outdated already + /* ClimberInterface climberIF = subsystems.climberOverride.getOverrideInterface(); // Setup the switch for manual/auto/off modes. mapOverrideSwitch(box, OperatorBoxButtons.CLIMBER_DISABLE, OperatorBoxButtons.CLIMBER_MANUAL, subsystems.climberOverride); onTriggered(box.getButton(OperatorBoxButtons.CLIMBER_EXTEND), () -> climberIF.setDesiredAction(new ClimberAction(Type.SET_BOTH_HEIGHT, 0.2*box.getAxis(OperatorBoxButtons.CLIMBER_POT).read()))); - + */ } + private void mapOverrideSwitch(InputDevice box, int disableButton, int manualButton, OverridableSubsystem overrideableSubsystem) { onTriggered(box.getButton(disableButton), () -> overrideableSubsystem.turnOff()); onTriggered(box.getButton(manualButton), () -> overrideableSubsystem.setManualMode());