Skip to content

Commit

Permalink
wait until axis is finished referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalzauberzeug committed Sep 25, 2024
1 parent 6124488 commit 229ff1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions field_friend/hardware/axis_D1.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ async def try_reference(self) -> bool:
# due to some timing issues, the homing command is sent twice
await self.robot_brain.send(f'{self.name}_motor.home()')
await self.robot_brain.send(f'{self.name}_motor.home()')
while not self.is_referenced:
await rosys.sleep(0.1)
return self.is_referenced

async def speed_Mode(self, speed: int):
Expand Down

0 comments on commit 229ff1c

Please sign in to comment.