Final Forward/Backward Functions.

They take into account the minimum initial as well as continuous PWM
values for the left and the right motors. Furthermore, it resolves any
conflict between two subsequent commands to switch the direction of
motion.