From e1644fc77ca260950c88522778e70b297b9eb84d Mon Sep 17 00:00:00 2001 From: Jimmy McCosker Date: Thu, 14 Mar 2024 21:37:44 -0400 Subject: [PATCH] Fix climber command cancellation --- src/main/java/frc/robot/commands/ClimberPositionCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/commands/ClimberPositionCommand.java b/src/main/java/frc/robot/commands/ClimberPositionCommand.java index e8bc108..306b757 100644 --- a/src/main/java/frc/robot/commands/ClimberPositionCommand.java +++ b/src/main/java/frc/robot/commands/ClimberPositionCommand.java @@ -36,13 +36,14 @@ public void initialize() { } else if (!SmartDashboard.getBoolean("climber/Climbers enabled", false)) { System.out.println("ERROR: Attempt to use climbers, but they are disabled"); cancelled = true; + } else { + cancelled = false; } if (cancelled) { cancel(); LEDSubsystem.setTempState(TempState.ERROR); return; } - cancelled = false; LEDSubsystem.setTempState(ledState); s_Climber.setPosition(position); }