Acceleration deceleration as function of maximum allowable speed