Skip to content

Commit e1644fc

Browse files
Fix climber command cancellation
1 parent 26e0824 commit e1644fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/frc/robot/commands/ClimberPositionCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ public void initialize() {
3636
} else if (!SmartDashboard.getBoolean("climber/Climbers enabled", false)) {
3737
System.out.println("ERROR: Attempt to use climbers, but they are disabled");
3838
cancelled = true;
39+
} else {
40+
cancelled = false;
3941
}
4042
if (cancelled) {
4143
cancel();
4244
LEDSubsystem.setTempState(TempState.ERROR);
4345
return;
4446
}
45-
cancelled = false;
4647
LEDSubsystem.setTempState(ledState);
4748
s_Climber.setPosition(position);
4849
}

0 commit comments

Comments
 (0)