I know that direction can be changed with
.setSpeed(speed);
... //check input
.setSpeed(-speed);
I need to slowly decelerate and accelerate backwards, so I have to use
.setAcceleration(200);
...
.setMaxSpeed(speed);
... //check input
.setMaxSpeed(-speed);
but documentation told that .setMaxSpeed argument Must be > 0.
So how to properly change direction with deceleration? Probably I have to use .moveTo with some very big values
steps per second
. It doesn't care about the direction the steps are in. Just like you can't get out of a speeding tickets by always driving in reverse ;-).