-
Notifications
You must be signed in to change notification settings - Fork 178
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): readjust hardware controller end state in engine cleanup #13431
Merged
SyntaxColoring
merged 3 commits into
chore_release-7.0.0
from
api-readjust-hardware-controller-cleanup-in-engine-cleanup
Sep 1, 2023
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -629,3 +629,30 @@ class LabwareMovementStrategy(str, Enum): | |||||
USING_GRIPPER = "usingGripper" | ||||||
MANUAL_MOVE_WITH_PAUSE = "manualMoveWithPause" | ||||||
MANUAL_MOVE_WITHOUT_PAUSE = "manualMoveWithoutPause" | ||||||
|
||||||
|
||||||
class PostRunHardwareState(Enum): | ||||||
"""State of robot gantry & motors after a stop is performed and the hardware API is reset. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
HOME_AND_STAY_ENGAGED: home the gantry and keep all motors engaged. This allows the | ||||||
robot to continue performing movement actions without re-homing | ||||||
HOME_THEN_DISENGAGE: home the gantry and then disengage motors. | ||||||
Reduces current consumption of the motors and prevents coil heating. | ||||||
Re-homing is required to re-engage the motors and resume robot movement. | ||||||
STAY_ENGAGED_IN_PLACE: do not home after the stop and keep the motors engaged. | ||||||
Keeps gantry in the same position as prior to `stop()` execution | ||||||
and allows the robot to execute movement commands without requiring to re-home first. | ||||||
DISENGAGE_IN_PLACE: disengage motors and do not home the robot | ||||||
Probable states for pipette: | ||||||
- for 1- or 8-channel: | ||||||
- HOME_AND_STAY_ENGAGED after protocol runs | ||||||
- STAY_ENGAGED_IN_PLACE after maintenance runs | ||||||
- for 96-channel: | ||||||
- HOME_THEN_DISENGAGE after protocol runs | ||||||
- DISENGAGE_IN_PLACE after maintenance runs | ||||||
Comment on lines
+650
to
+652
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Anticipated. Not finalized yet and not used anywhere either. |
||||||
""" | ||||||
|
||||||
HOME_AND_STAY_ENGAGED = "homeAndStayEngaged" | ||||||
HOME_THEN_DISENGAGE = "homeThenDisengage" | ||||||
STAY_ENGAGED_IN_PLACE = "stayEngagedInPlace" | ||||||
DISENGAGE_IN_PLACE = "disengageInPlace" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not fully sure about this change. I've made this change assuming that
backend.hard_halt()
is equivalent to disengage andbackend.halt()
is equivalent tostop_motors()
.