Skip to content

Commit

Permalink
update simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Feb 12, 2024
1 parent 6059eac commit 63783b6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion api/src/opentrons/hardware_control/backends/ot3simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63783b6

Please sign in to comment.