mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 04:06:33 +08:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user