PID === Drives an error to zero: proportional, integral and derivative terms. n filters the derivative; u\_min < u\_max limits the output, with anti-windup (clamp or back\_calc with kt). Equal limits: none. ``pid`` · control · element by element: vectors in, vectors out .. raw:: html .. container:: pb-prose ``n`` filters the derivative (0: none). With ``u_min`` < ``u_max`` the output is limited (equal: no limit), and ``anti_windup`` keeps the integral from running away while it is: ``none``, ``clamp`` (stop integrating) or ``back_calc`` (bleed the excess back at rate ``kt``). PID is linear for the Analysis drawer when ``n > 0``. Inputs ------ .. list-table:: :header-rows: 1 * - Port - Type - Unit - Components * - ``e`` - signal - — - — Outputs ------- .. list-table:: :header-rows: 1 * - Port - Type - Unit - Components * - ``u`` - signal - — - — Parameters ---------- .. list-table:: :header-rows: 1 * - Param - Type - Default - Options or unit * - ``kp`` - number - ``1.0`` - — * - ``ki`` - number - ``0.0`` - — * - ``kd`` - number - ``0.0`` - — * - ``n`` - number - ``0.0`` - rad/s * - ``u_min`` - number - ``0.0`` - — * - ``u_max`` - number - ``0.0`` - — * - ``anti_windup`` - enum - ``"clamp"`` - ``none``, ``clamp``, ``back_calc`` * - ``kt`` - number - ``1.0`` - —