Skip to content

calc_PCS_PID_response.m

Basic Information

  SYNTAX:  PIDsys = calc_PCS_PID_response(dt,Gp,Gd,Gi,taup,taud,taui)

  PURPOSE:  Compute (digital) frequency response of PCS PID implementation.
    (Response is nearly, but not quite, independent of dt - for dt
     small enough.  Put in a reasonable approximate value.)

  INPUT:
    dt   = sample time
    Gp   = proportional gain
    Gd   = derivative gain
    Gi   = integral gain
    taup = proportional time constant (sec)
    taud = derivative time constant (sec)
    taui = integral time constant (sec)

  OUTPUT:
    PIDsys = digital transfer function model of PID algorithm
         (control toolbox packed format)

Dependencies