Skip to content

Commit

Permalink
changed origin robot pose to a none local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinOdropbear committed Jan 27, 2025
1 parent 69a2b57 commit 93e6104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/reef_intake.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def intaking(self, initial_call: bool):
@state(must_finish=True)
def safing(self, initial_call: bool):
if initial_call:
origin_robot_pose = self.chassis.get_pose()
self.origin_robot_pose = self.chassis.get_pose()
robot_pose = self.chassis.get_pose()

distance = origin_robot_pose.translation() - robot_pose.translation()
distance = self.origin_robot_pose.translation() - robot_pose.translation()

if distance.norm() >= self.UNSAFE_DISTANCE:
self.done()
Expand Down

0 comments on commit 93e6104

Please sign in to comment.