Skip to content

Commit

Permalink
check only last moved mount
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Feb 7, 2024
1 parent f1120b4 commit 104af1b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions api/src/opentrons/hardware_control/ot3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,10 @@ def is_idle_mount(self, mount: Union[top_types.Mount, OT3Mount]) -> bool:
if not self._last_moved_mount or realmount == self._last_moved_mount:
return False

return (realmount == OT3Mount.LEFT and self._gantry_load == GantryLoad.HIGH_THROUGHPUT) or (
realmount == OT3Mount.GRIPPER
)
return (
realmount == OT3Mount.LEFT
and self._gantry_load == GantryLoad.HIGH_THROUGHPUT
) or (realmount == OT3Mount.GRIPPER)

@property
def door_state(self) -> DoorState:
Expand Down Expand Up @@ -1307,7 +1308,10 @@ async def _cache_and_maybe_retract_mount(self, mount: OT3Mount) -> None:

# disengage Axis.Z_L motor and engage the brake to lower power
# consumption and reduce the chance of the 96-channel pipette dropping
if self.is_idle_mount(OT3Mount.LEFT):
if (
self.gantry_load == GantryLoad.HIGH_THROUGHPUT
and self._last_moved_mount == OT3Mount.LEFT
):
await self.disengage_axes([Axis.Z_L])

# disegnage Axis.Z_G when we can to reduce the chance of
Expand Down

0 comments on commit 104af1b

Please sign in to comment.