waspinator / AccelStepper

Fork of AccelStepper
http://www.airspayce.com/mikem/arduino/AccelStepper/
Other
146 stars 86 forks source link

Change target position while moving and min speed. #22

Closed JimKnopf1503 closed 1 year ago

JimKnopf1503 commented 1 year ago

Hi!

Thanks for this great lib, I like it verry much! I will use it for gauges of my flight sim. I could not find out, if it is already possible to change the target position while the stepper is moving without interupting the travel. The non blocking way is needed. I tried moveTo() but it stops the stepper and start a new movement . It would be nice, if it is possible to simply update the target position.

The second question: every travel begin with the speed of 0. It would be nice, if the travel can begin with minSpeed for faster arrival at the target position.

Is this possible? Burkhard Venus

JimKnopf1503 commented 1 year ago

Hi!

It was my fault!. In loop() I use serial.readString and the timeout was by default set to 1000ms. That causes the stepper to slow dwon.

Burkhard