Skip to content

Add ability to stop "step" routine #7

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add ability to stop "step" routine #7

wants to merge 4 commits into from

Conversation

pweinzettel
Copy link

Something like "emergency stop"
i found it very useful to stop the motor but keep the coils magnetized to stop asap the motor, because if you only power off, it can continue spinning with inertia.

In one of my projects, I needed to stop the "steps" routine with an interruption.
I just put and bool flag to keep it looping.
Maybe someone else will find it interesting
In one of my projects, I needed to stop the "steps" routine with an interruption.
I just put and bool flag to keep it looping.
Maybe someone else will find it interesting
In one of my projects, I needed to stop the "steps" routine with an interruption.
I just put and bool flag to keep it looping.
Maybe someone else will find it interesting
@per1234
Copy link
Contributor

per1234 commented Jul 17, 2017

Just to link things together, here's the previous pull request that was requested to be moved to this repository: arduino/Arduino#6420

@Hello1024
Copy link
Contributor

I don't see how one is expected to use this... Is there some auuino out there with preemptive multithreading to call the stop() method from another thread?

Even if there was, you'd then need to mark this->set_stop as volatile in some way to prevent the whole thing being elided by an optimizing compiler...

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

4 participants