CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

record

Vehicles.Cubs2.OuterLoopComponents.AttitudeParameters

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
fieldtrimElevatorReal= 0.0manual cruise trim from 2026-07-09/10 level-ish flight segments
fieldstabilizerCommandReal(unit="us") = 2000.0
fieldpitchCommandToElevatorGainReal= 1.0 / 0.5235987755982988S2 pitch stick gain: full elevator stick maps to 30 deg (bench-measured 2026-07-10)
fieldrollCommandToAileronGainReal= 1.0 / 0.7853981633974483S2 bank stick gain: full aileron stick maps to 45 deg
fieldrollLimitReal(unit="rad") = 0.523598775598298830 deg bank command saturation
fieldrollRateLimitReal(unit="rad/s") = 2.0943951023931953

Modelica declarations and implementation

Show parameters, interfaces and source

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

record AttitudeParameters
  Real trimElevator = 0.0
    "manual cruise trim from 2026-07-09/10 level-ish flight segments";
  Real stabilizerCommand(unit="us") = 2000.0;
  Real pitchCommandToElevatorGain = 1.0 / 0.5235987755982988
    "S2 pitch stick gain: full elevator stick maps to 30 deg (bench-measured 2026-07-10)";
  // Full aileron stick is 45 deg of bank on the real S2.
  Real rollCommandToAileronGain = 1.0 / 0.7853981633974483
    "S2 bank stick gain: full aileron stick maps to 45 deg";
  Real rollLimit(unit="rad") = 0.5235987755982988
    "30 deg bank command saturation";
  Real rollRateLimit(unit="rad/s") = 2.0943951023931953;
end AttitudeParameters;