Skip to content

Commit

Permalink
fix(api): ensure the right mount is enabled for initial homing (#14822)
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj authored and Carlos-fernandez committed May 20, 2024
1 parent edd7318 commit 96786a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api/src/opentrons/hardware_control/ot3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,8 +1522,14 @@ async def _home_axis(self, axis: Axis) -> None:
# G, Q should be handled in the backend through `self._home()`
assert axis not in [Axis.G, Axis.Q]

# TODO(CM): This is a temporary fix in response to the right mount causing
# errors while trying to home on startup or attachment. We should remove this
# when we fix this issue in the firmware.
enable_right_mount_on_startup = (
self._gantry_load == GantryLoad.HIGH_THROUGHPUT and axis == Axis.Z_R
)
encoder_ok = self._backend.check_encoder_status([axis])
if encoder_ok:
if encoder_ok or enable_right_mount_on_startup:
# enable motor (if needed) and update estimation
await self._enable_before_update_estimation(axis)

Expand Down

0 comments on commit 96786a3

Please sign in to comment.