We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ca455 commit f75a906Copy full SHA for f75a906
controllers/climber.py
@@ -34,7 +34,7 @@ def deploy_without_localization(self) -> None:
34
self.deploy(localize=False)
35
36
def retract(self) -> None:
37
- if self.has_deployed:
+ if self.has_deployed and self.is_ready_to_climb():
38
self.engage("retracting", force=True)
39
40
@state(first=True, must_finish=True)
robot.py
@@ -245,7 +245,7 @@ def teleopPeriodic(self) -> None:
245
246
if self.gamepad.getYButton():
247
self.climber_state_machine.deploy()
248
- if self.gamepad.getAButton() and self.climber_state_machine.is_ready_to_climb():
+ if self.gamepad.getAButton():
249
self.climber_state_machine.retract()
250
251
if self.gamepad.getBButton():
0 commit comments