Skip to content

Commit

Permalink
commented some code out
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticAmmo committed Feb 29, 2020
1 parent bb9bb41 commit 563973a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/OI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 563973a

Please sign in to comment.