Acceleration, deceleration is polynomial, derivative is zero on stop position