Skip to content

Commit

Permalink
Turn off heading hold when climbing
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward committed Feb 25, 2025
1 parent c87e784 commit 3a3f76d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/climber.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def deploying(self, initial_call) -> None:
closest_cage_dist = dist
closest_cage_position = cage_position

if closest_cage_dist > 1.0:
if closest_cage_dist > 0.5:
self.heading_to_cage = math.atan2(
closest_cage_position.y - robot_position.y,
closest_cage_position.x - robot_position.x,
Expand All @@ -45,7 +45,10 @@ def deploying(self, initial_call) -> None:

@state(must_finish=True)
def retracting(self) -> None:
self.chassis.stop_snapping()
self.climber.go_to_retract()
if self.climber.is_retracted():
self.done()

def done(self) -> None:
super().done()

0 comments on commit 3a3f76d

Please sign in to comment.