Change TrpezoidalMotion to handle startSpeed, endSpeed, and the triangle case.