Path: Common/Control
% Creates a PID controller with lag compensation. Creates a PID controller when there is a lag that you wish to approximately compensate. You enter the ideal integrator time constant, the damping ratio and undamped natural frequency of the complex pole pair. You then select a range of frequencies about you which to compensate for the lag. Type PIDWithLag for a demo. -------------------------------------------------------------------------- Form: y = PIDWithLag( d ) -------------------------------------------------------------------------- ------ Inputs ------ d (1,1) Data structure .a Integrator time constant .zeta Damping ratio .wN Undamped natural frequency .tau lag .w Range of frequencies to minimize lag effect .k Forward gain (e.g 1/mass or 1/inertia) ------- Outputs ------- y (:) .kI Integral gain .kP Proportional gain .kD Derivative gain .mI Ideal Integral gain .mP Ideal Proportional gain .mD Ideal Derivative gain --------------------------------------------------------------------------
Common: Graphics/NewFig Common: Graphics/XLabelS Common: Graphics/YLabelS
Back to the Common Module page