Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): add stopped state so a stop request doesn't mean the gripper needs to re-home #16853

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/src/opentrons/hardware_control/backends/ot3utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ def update(
FirmwareGripperjawState.force_controlling_home: GripperJawState.HOMED_READY,
FirmwareGripperjawState.force_controlling: GripperJawState.GRIPPING,
FirmwareGripperjawState.position_controlling: GripperJawState.HOLDING,
FirmwareGripperjawState.stopped: GripperJawState.STOPPED,
}


Expand Down
2 changes: 2 additions & 0 deletions api/src/opentrons/hardware_control/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ class GripperJawState(enum.Enum):
#: the gripper is actively force-control gripping something
HOLDING = enum.auto()
#: the gripper is in position-control mode
STOPPED = enum.auto()
#: the gripper has been homed before but is stopped now


class InstrumentProbeType(enum.Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,3 +461,4 @@ class GripperJawState(int, Enum):
force_controlling_home = 0x1
force_controlling = 0x2
position_controlling = 0x3
stopped = 0x4
Loading