CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

record

Control.PidParameters

Tuning for the shared sampled PID controller

Public declarations

Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.

RoleNameTypeDimensions / attributes / defaultDescription
fieldsamplePeriodReal(unit="s", min=1.0e-9) = 0.02
fieldkpReal= 0.0
fieldkiReal= 0.0
fieldkdReal= 0.0
fieldintegralLimitReal(min=0.0) = 1.0
fieldcommandMinReal= -1.0
fieldcommandMaxReal= 1.0
fieldtrackingTimeReal(unit="s", min=1.0e-9) = 0.1Applied-command anti-windup tracking time constant
fieldderivativeCutoffHzReal(unit="Hz", min=0.0) = 0.0Positive cutoff enables first-order filtering; zero uses the raw derivative

Modelica declarations and implementation

Show parameters, interfaces and source

Parameters, inputs, outputs, defaults and equations from the source file.

record PidParameters "Tuning for the shared sampled PID controller"
  Real samplePeriod(unit="s", min=1.0e-9) = 0.02;
  Real kp = 0.0;
  Real ki = 0.0;
  Real kd = 0.0;
  Real integralLimit(min=0.0) = 1.0;
  Real commandMin = -1.0;
  Real commandMax = 1.0;
  Real trackingTime(unit="s", min=1.0e-9) = 0.1
    "Applied-command anti-windup tracking time constant";
  Real derivativeCutoffHz(unit="Hz", min=0.0) = 0.0
    "Positive cutoff enables first-order filtering; zero uses the raw derivative";
end PidParameters;