added addLinearMotionSegment to motorcontroller