I'm using the FlexyStepper library.Unfortunately there's no way to write an issue to the author so I'm going to ask my question here.
The documentation says about the
set current position of the motor in millimeter, this does not move the motor
But I see a different behavior. Looking at the code, it seems it just update the current position, leaving unchanged the target position. This leads to an expected movement of the motor. Example:
- set the target position to, say: 1000
- the motor reach that position
- set the current position to, say: 1500
- now the motor come back to 1000
Instead, I want the current position from now is 1500, but because it has already reached the target, it shouldn't move further.
Of course a workaround is to set both current position and target to the same value.
I wonder if I'm wrong about the documentation or this might be considered a bug.