pub fn center_of_gravity_issue_warnings(
masses: &[MassProperties],
max_mach: Option<Peak>,
) -> Vec<IssueWarning>Expand description
The off-axis center of gravity’s issue a flight meets (#219, ADR-201):
when the center of gravity sits more than OFF_AXIS_CG_LIMIT_M from the rocket’s axis in
any of masses, a NaN distance counting as more. A flight passes each vehicle it flew’s
samples (crate::FlownVehicle::mass_samples): the stack at launch, at each motor’s ignition
and burnout and fully burnt, and each sustainer from its separation to its end. Its distance is
√(x² + y²) of MassProperties::cg_m, the largest over them. HPR Sim’s equations of motion are
written about the nose tip with the center of gravity where it is, so the thrust along the
axis turns the rocket about an offset one; no reference sizes how much that does, so the
warning holds whatever the drag and at any speed. None for a flight with no top Mach number.