Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): ensure the right mount is enabled for initial homing #14822

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1521,8 +1521,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
Loading