Skip to content

Commit

Permalink
Ignore W axis in move command
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 committed Apr 12, 2024
1 parent 5d466a6 commit f31a6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ephys_link/platforms/new_scale_manipulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def goto_pos(self, request: GotoPositionRequest) -> PositionalResponse:

# Return error if movement did not reach target.
if not all(
abs(axis) < self._movement_tolerance for axis in vector4_to_array(final_position - request.position)
abs(axis) < self._movement_tolerance for axis in vector4_to_array(final_position - request.position)[:3]
):
com.dprint(f"[ERROR]\t\t Manipulator {self._id} did not reach target position.")
com.dprint(f"\t\t\t Expected: {request.position}, Got: {final_position}")
Expand Down

0 comments on commit f31a6ff

Please sign in to comment.