perfromance model: add FW_AIRSPD_FLP_SC to reduce with flaps

Signed-off-by: Silvan <silvan@auterion.com>
This commit is contained in:
Silvan
2025-03-27 23:29:36 +01:00
parent 96a3c3a37b
commit e3d5ab51fb
10 changed files with 42 additions and 37 deletions
@@ -2582,19 +2582,6 @@ fw_pos_control is the fixed-wing position controller.
return 0;
}
float FixedwingPositionControl::getLoadFactor() const
{
float load_factor_from_bank_angle = 1.0f;
float roll_body = Eulerf(Quatf(_att_sp.q_d)).phi();
if (PX4_ISFINITE(roll_body)) {
load_factor_from_bank_angle = 1.0f / math::max(cosf(roll_body), FLT_EPSILON);
}
return load_factor_from_bank_angle;
}
extern "C" __EXPORT int fw_pos_control_main(int argc, char *argv[])
{