Introduce motordir parameter that controls polarity of motor direction.