Skip to content

Commit

Permalink
Fix climber command cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
witherslayer67 committed Mar 15, 2024
1 parent 26e0824 commit e1644fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/commands/ClimberPositionCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e1644fc

Please sign in to comment.