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.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | curvature | Real | | |
| input | speed | Real | (min=0.0) | |
| input | gravity | Real | (min=0.0) = 9.80665 | |
| output | rollAngle | Real | |
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;