You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this awesome library. I recently switched from Arduino Nano to a Teensy 4.1. This required a move from the fast stepper library ( https://github.com/gin66/FastAccelStepper/blob/master/src/FastAccelStepper.cpp ), to this GIT project (its 4.1 fork to be precise). I've noticed that with the other library, async movements are handles by a queue automatically and if the target position is updated before the movement has completed, the trajectory is updated. In this library, however, the behaviour seems different. If the "moveAbsAsync()" function is called with every 30µs with varying target positions, the stepper does not move at all.
My question is: How to use this API in closed loop applications, where the stepper target position might change every some µs?
I don't want to wait until the move is completed to calculate a new target position. Instead, I want to start the movement, and update the target position when the stepper is still moving.
This snippet might explain my current implementation:
Thank you for this awesome library. I recently switched from Arduino Nano to a Teensy 4.1. This required a move from the fast stepper library ( https://github.com/gin66/FastAccelStepper/blob/master/src/FastAccelStepper.cpp ), to this GIT project (its 4.1 fork to be precise). I've noticed that with the other library, async movements are handles by a queue automatically and if the target position is updated before the movement has completed, the trajectory is updated. In this library, however, the behaviour seems different. If the "moveAbsAsync()" function is called with every 30µs with varying target positions, the stepper does not move at all.
My question is: How to use this API in closed loop applications, where the stepper target position might change every some µs?
I don't want to wait until the move is completed to calculate a new target position. Instead, I want to start the movement, and update the target position when the stepper is still moving.
This snippet might explain my current implementation:
#define stepPinStepper 1
#define dirPinStepper 4
Stepper s1( stepPinStepper, dirPinStepper ); // Step pin: -, Dir pin: -
long Position_Next = 0;
void loop()
{
Position_Next++;
s1.moveAbs(Position_Next);
}
BR
The text was updated successfully, but these errors were encountered: