Closed arduous09 closed 3 months ago
moveTo()
only sets the ramp to be started, while update of the parameters take place in the cyclic stepper interrupt. This is due to the internal structure of FastAccelStepper.
Instead of:
while (stepper->getCurrentPosition() != stepper->targetPos())
use:
while (stepper->isRunning())
stale
This did the trick :) Thanks for your help!
Hello,
I am attempting this code, but am running into issues with getCurrentPosition() returning 0 instead of the current position. Because of this, my code will not work. This is running on an ESP32s WROOM 32
Here is an example output:
Run Motor Function Current Position: 0 Moving to Position: 28000 Moving Motor Function Complete Current Position: 0 Motor Complete