Skip to content

Commit

Permalink
fix(api): use encoder position instead of homing gantry when holding …
Browse files Browse the repository at this point in the history
…plate reader lid.
  • Loading branch information
vegano1 committed Nov 12, 2024
1 parent 60dca54 commit 8ccf56f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ async def execute(
module.id
)

# NOTE: When the estop is pressed, the gantry loses position,
# so the robot needs to home x, y to sync.
await ot3api.home(axes=[Axis.Z_L, Axis.Z_R, Axis.Z_G, Axis.X, Axis.Y])
# NOTE: When the estop is pressed, the gantry loses position, lets use
# the encoders to sync position.
await ot3api.home(axes=[Axis.Z_L, Axis.Z_R, Axis.Z_G])
await ot3api.engage_axes([Axis.X, Axis.Y])
await ot3api.update_axis_position_estimations([Axis.X, Axis.Y])

# Place the labware down
await self._start_movement(ot3api, definition, location, drop_offset)
Expand Down

0 comments on commit 8ccf56f

Please sign in to comment.