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(motion-control): Don't clear stepper-ok in stop request #813

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

ryanthecoder
Copy link
Contributor

@ryanthecoder ryanthecoder commented Nov 4, 2024

We added the disable motor in the stop request because that was the cause of some falling pipettes and we needed to turn the brake on. however disable clears the stepper ok flag and this isn't needed in this case.

So the new behavior is that it calls hardware disable_motor to turn the brake on, then it calls activate motor after to turn it back off and leaves the motor controller's 'enabled' flag true so the motion controller task has the option to call motor position update request.

…r enable false we just want to turn the brake on for a bit then turn it back off to leave the motor enabled.
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that looks good to me!

@ryanthecoder ryanthecoder marked this pull request as ready for review November 4, 2024 20:24
@ryanthecoder
Copy link
Contributor Author

Tested, still catches the 96 and does not block update motor position estimation

@ryanthecoder ryanthecoder merged commit 5a5ca72 into main Nov 4, 2024
30 of 31 checks passed
mjhuff added a commit to Opentrons/opentrons that referenced this pull request Nov 5, 2024
#16691)

Closes RQA-3489 and RQA-3487

Although Opentrons/ot3-firmware#813 fixes the current behavior and unblocks gripper recovery, updating the position estimators isn't sufficiently accurate for post-recovery, protocol run commands. Instead, we should home everything minus the pipette plungers.

There is some minor copy update on one view only per discussion w/ design.
sfoster1 added a commit that referenced this pull request Nov 7, 2024
)

* We don't need to clear the stepper ok field when we get a stop message.

* Ok i was wrong about how this worked. We don't want to leave the motor enable false we just want to turn the brake on for a bit then turn it back off to leave the motor enabled.

Co-authored-by: Ryan Howard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants