forked from Archive/PX4-Autopilot
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:
parent
e20215087f
commit
f799141a19
|
@ -522,7 +522,7 @@ float FixedwingPositionControl::getCorrectedNpfgRollSetpoint()
|
||||||
_time_since_first_reduced_roll = 0U;
|
_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.
|
// NPFG reports a good condition or we are in transition, reset the user warning variables.
|
||||||
_need_report_npfg_uncertain_condition = true;
|
_need_report_npfg_uncertain_condition = true;
|
||||||
_time_since_first_reduced_roll = 0U;
|
_time_since_first_reduced_roll = 0U;
|
||||||
|
|
Loading…
Reference in New Issue