Skip to content

Commit 1b544f7

Browse files
committed
add comments and constants + fix tiprack lid pickup height.
1 parent a44a108 commit 1b544f7

File tree

4 files changed

+4712
-6
lines changed
  • api/src/opentrons
  • shared-data/labware/definitions/3
    • greiner_384_wellplate_240ul
    • opentrons_flex_tiprack_lid

4 files changed

+4712
-6
lines changed

api/src/opentrons/drivers/flex_stacker/driver.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
StackerAxis.X: {
3434
"home": MoveParams(
3535
StackerAxis.X,
36-
max_speed=10.0,
37-
acceleration=100.0,
38-
max_speed_discont=40,
39-
current=1.5,
36+
max_speed=10.0, # mm/s
37+
acceleration=100.0, # mm/s^2
38+
max_speed_discont=40, # mm/s
39+
current=1.5, # mAmps
4040
),
4141
"move": MoveParams(
4242
StackerAxis.X,

api/src/opentrons/hardware_control/modules/flex_stacker.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
OFFSET_MD = 10.0
5656
OFFSET_LG = 20.0
5757

58+
# height limit in mm of labware to use OFFSET_MD used when storing labware.
59+
MEDIUM_LABWARE_Z_LIMIT = 20.0
60+
5861

5962
class FlexStacker(mod_abc.AbstractModule):
6063
"""Hardware control interface for an attached Flex-Stacker module."""
@@ -344,7 +347,7 @@ async def store_labware(self, labware_height: float) -> bool:
344347
await self._prepare_for_action()
345348

346349
# Move X then Z axis
347-
offset = OFFSET_MD if labware_height < 20 else OFFSET_LG * 2
350+
offset = OFFSET_MD if labware_height < MEDIUM_LABWARE_Z_LIMIT else OFFSET_LG * 2
348351
distance = MAX_TRAVEL[StackerAxis.Z] - (labware_height / 2) - offset
349352
await self._move_and_home_axis(StackerAxis.X, Direction.RETRACT, OFFSET_SM)
350353
await self.move_axis(StackerAxis.Z, Direction.EXTENT, distance)

0 commit comments

Comments
 (0)