Module center_of_gravity

Module center_of_gravity 

Source
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§

CenterOfGravityInput
Inputs for aircraft center of gravity and moment calculations.
CenterOfGravityResult
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$).