allow change of motor state in both directions
init speed up, setMotorState automatically iterates through necessary steps