CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

Planning.DubinsPolynomial.coordinatedRollAngle

Coordinated-flight roll angle associated with signed planar curvature

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputcurvatureReal
inputspeedReal(min=0.0)
inputgravityReal(min=0.0) = 9.80665
outputrollAngleReal

Modelica declarations and implementation

Show parameters, interfaces and source

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

function coordinatedRollAngle
  "Coordinated-flight roll angle associated with signed planar curvature"
  input Real curvature;
  input Real speed(min=0.0);
  input Real gravity(min=0.0) = 9.80665;
  output Real rollAngle;
algorithm
  assert(gravity > 0.0, "Gravity must be positive for coordinated roll mapping");
  rollAngle := atan(speed^2 * curvature / gravity);
end coordinatedRollAngle;