A more efficient trajectory has a trapezoidal velocity profile.