Skip to content

Commit

Permalink
D1_axis_quick_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBaecker committed Sep 9, 2024
1 parent 146be55 commit e18cdf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions field_friend/hardware/axis_D1.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ async def stop(self):

async def move_to(self, position: float, speed: int | None = None) -> None:
await super().move_to(position)
await self.robot_brain.send(f'{self.name}_motor.profile_position({self.compute_steps(position)});')
while (abs(self.position - position)) > 0.005:

while (abs(self.position - position)) > 0.01:
# sometimes the moving command is not executed, so it is send in each loop (for demo purposes)
await self.robot_brain.send(f'{self.name}_motor.profile_position({self.compute_steps(position)});')
await rosys.sleep(0.1)

async def enable_motor(self):
Expand Down

0 comments on commit e18cdf3

Please sign in to comment.