record
Vehicles.Cubs2.OuterLoopComponents.AttitudeParameters
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| field | trimElevator | Real | = 0.0 | manual cruise trim from 2026-07-09/10 level-ish flight segments |
| field | stabilizerCommand | Real | (unit="us") = 2000.0 | |
| field | pitchCommandToElevatorGain | Real | = 1.0 / 0.5235987755982988 | S2 pitch stick gain: full elevator stick maps to 30 deg (bench-measured 2026-07-10) |
| field | rollCommandToAileronGain | Real | = 1.0 / 0.7853981633974483 | S2 bank stick gain: full aileron stick maps to 45 deg |
| field | rollLimit | Real | (unit="rad") = 0.5235987755982988 | 30 deg bank command saturation |
| field | rollRateLimit | Real | (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;