record
Vehicles.Rdd2.RotorGeometry
RDD2 motor locations and reaction-torque directions in command order
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| parameter | armLength_m | Real | (unit = "m") = 0.25 | |
| field | effectiveMomentArm_m | Real | (unit = "m") = armLength_m / sqrt(2.0) | Quad-X roll/pitch lever arm |
| parameter | rotorTorqueRatio_m | Real | (unit = "m") = 0.016 | |
| field | positionBodyFlu_m | Real | [4, 3] = [
effectiveMomentArm_m, -effectiveMomentArm_m, 0.0;
-effectiveMomentArm_m, -effectiveMomentArm_m, 0.0;
-effectiveMomentArm_m, effectiveMomentArm_m, 0.0;
effectiveMomentArm_m, effectiveMomentArm_m, 0.0] | |
| field | yawMomentPerThrust_m | Real | [4] =
rotorTorqueRatio_m * {-1.0, 1.0, -1.0, 1.0} |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
record RotorGeometry
"RDD2 motor locations and reaction-torque directions in command order"
parameter Real armLength_m(unit = "m") = 0.25 annotation(Evaluate = true);
Real effectiveMomentArm_m(unit = "m") = armLength_m / sqrt(2.0)
"Quad-X roll/pitch lever arm";
parameter Real rotorTorqueRatio_m(unit = "m") = 0.016 annotation(Evaluate = true);
Real positionBodyFlu_m[4, 3] = [
effectiveMomentArm_m, -effectiveMomentArm_m, 0.0;
-effectiveMomentArm_m, -effectiveMomentArm_m, 0.0;
-effectiveMomentArm_m, effectiveMomentArm_m, 0.0;
effectiveMomentArm_m, effectiveMomentArm_m, 0.0];
Real yawMomentPerThrust_m[4] =
rotorTorqueRatio_m * {-1.0, 1.0, -1.0, 1.0};
end RotorGeometry;