From 63783b6cdb91a53ef6be2c44a24c94ca52b3ab2f Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:47:10 -0500 Subject: [PATCH] update simulator --- .../hardware_control/backends/ot3simulator.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/api/src/opentrons/hardware_control/backends/ot3simulator.py b/api/src/opentrons/hardware_control/backends/ot3simulator.py index 07eaaadda002..fde9713ec8ea 100644 --- a/api/src/opentrons/hardware_control/backends/ot3simulator.py +++ b/api/src/opentrons/hardware_control/backends/ot3simulator.py @@ -641,16 +641,27 @@ async def update_firmware( def engaged_axes(self) -> OT3AxisMap[bool]: """Get engaged axes.""" - return {} + return self._engaged_axes + + async def update_engaged_axes(self) -> None: + """Update engaged axes.""" + return None + + async def is_motor_engaged(self, axis: Axis) -> bool: + return self._engaged_axes[axis] @ensure_yield async def disengage_axes(self, axes: List[Axis]) -> None: """Disengage axes.""" + for ax in axes: + self._engaged_axes.update({ax: False}) return None @ensure_yield async def engage_axes(self, axes: List[Axis]) -> None: """Engage axes.""" + for ax in axes: + self._engaged_axes.update({ax: True}) return None @ensure_yield