FW Pos Controller: do not publish roll angle constrained warning if landed (#22850)

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2024-03-08 09:40:43 +01:00 committed by GitHub
parent e20215087f
commit f799141a19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ float FixedwingPositionControl::getCorrectedNpfgRollSetpoint()
_time_since_first_reduced_roll = 0U;
}
if (_vehicle_status.in_transition_mode || can_run_factor > ROLL_WARNING_CAN_RUN_THRESHOLD) {
if (_vehicle_status.in_transition_mode || can_run_factor > ROLL_WARNING_CAN_RUN_THRESHOLD || _landed) {
// NPFG reports a good condition or we are in transition, reset the user warning variables.
_need_report_npfg_uncertain_condition = true;
_time_since_first_reduced_roll = 0U;