Skip to content

Commit

Permalink
additional attempt at fixing move rel
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura-Danielle committed Oct 23, 2024
1 parent 170cf76 commit 0058a2a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions api/src/opentrons/protocol_engine/execution/gantry_mover.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,22 +315,22 @@ async def move_axes(
)
log.info(f"The current position of the robot is: {current_position}.")

absolute_pos = target_axis_map_from_relative(
pos_hw = target_axis_map_from_relative(
pos_hw, current_position
)
log.info(
f"The absolute position is: {absolute_pos} and hw pos map is {pos_hw}."
)
else:
log.info(f"Absolute move {axis_map} and {mount}")
absolute_pos = target_axis_map_from_absolute(
mount,
pos_hw,
partial(self._critical_point_for, cp_override=critical_point),
Point(*self._hardware_api.config.left_mount_offset),
Point(*self._hardware_api.config.right_mount_offset),
Point(*self._hardware_api.config.gripper_mount_offset),
f"The absolute position is: {pos_hw} and hw pos map is {pos_hw}."
)
log.info(f"The calculated move {pos_hw} and {mount}")
absolute_pos = target_axis_map_from_absolute(
mount,
pos_hw,
partial(self._critical_point_for, cp_override=critical_point),
Point(*self._hardware_api.config.left_mount_offset),
Point(*self._hardware_api.config.right_mount_offset),
Point(*self._hardware_api.config.gripper_mount_offset),
)
log.info(f"The prepped abs {absolute_pos}")
await self._hardware_api.move_axes(
position=absolute_pos,
speed=speed,
Expand Down

0 comments on commit 0058a2a

Please sign in to comment.