Course design of motion control system