A new control algorithm for S-shape acceleration and deceleration is proposed. An accurate
solution is calculated before interpolation process. The speed curve was constructed by five segments, and
position, velocity, acceleration and jerk requirement can be satisfied.