MM-control-01 icon indicating copy to clipboard operation
MM-control-01 copied to clipboard

Change to Accelstepper library

Open awigen opened this issue 6 years ago • 2 comments

This is a proof of concept using AccelStepper for all moves.

There is also a new homing sequence using stallguard which works most of the time but could use some tweaking.

Using AccelStepper to handle acceleration / deceleration greatly simplifies a lot of the code.

awigen avatar Oct 21 '18 20:10 awigen

@awigen
Hi, I don't know this library, just had a short glance on it. Does it support interaction during a movement, or is it completely blocking?

I think for future improvements it must be able to adjust speed, or interrupt the planned motion.

I also implemented accelerated movements, but with my own state machine, as you can review here in my rework branch: https://github.com/KarlZeilhofer/MM-control-01/tree/rework Currently it's still blocking, but it should be adopted to be interruptible in future.

Greets, Karl

KarlZeilhofer avatar Oct 23 '18 10:10 KarlZeilhofer

Thank you for your work. We will test it now.

PavelSindler avatar Oct 26 '18 11:10 PavelSindler