Servo motor and motion control using digital signal processors