Expand description
Center of gravity (CG) and moment calculations for aircraft weight and balance determination.
Provides functions and data structures to compute moments, resolve pilot station arms (directly or relative to a reference datum), and calculate the loaded center of gravity across empty weight, occupants, and ballast.
Structs§
- Center
OfGravity Input - Inputs for aircraft center of gravity and moment calculations.
- Center
OfGravity Result - Results of the center of gravity and moment evaluation.
Functions§
- calculate_
center_ of_ gravity - Evaluates aircraft weight, moments, and loaded center of gravity from inputs.
- calculate_
loaded_ cg - Calculates the loaded center of gravity from total moment and total weight. Returns an error if total weight is zero or non-finite.
- calculate_
moment - Calculates the moment of a station given its weight and arm ($weight \times arm$).
- front_
pilot_ arm_ from_ datum - Calculates front pilot arm given datum and distance in front of datum ($datum - distance$).
- rear_
pilot_ arm_ from_ datum - Calculates rear pilot arm given datum and distance behind datum ($datum + distance$).