NPFG: Add fallback for corner cases

This commit is contained in:
Konrad
2023-12-05 10:42:23 +01:00
committed by Silvan Fuhrer
parent 1c25d65a1e
commit 1d07697a9e
5 changed files with 83 additions and 10 deletions
@@ -415,6 +415,7 @@ private:
// nonlinear path following guidance - lateral-directional position control
NPFG _npfg;
bool _need_report_npfg_uncertain_condition{false}; ///< boolean if reporting of uncertain npfg output condition is needed
PerformanceModel _performance_model;
@@ -468,6 +469,13 @@ private:
void publishLocalPositionSetpoint(const position_setpoint_s &current_waypoint);
float getLoadFactor();
/**
* @brief Get the NPFG roll setpoint with mitigation strategy if npfg is not certain about its output
*
* @return roll setpoint
*/
float getCorrectedNpfgRollSetpoint();
/**
* @brief Sets the landing abort status and publishes landing status.
*