mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Commander: set vehicle_status.failsafe flag only if action for failed check is more than warning
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
7c6ecd95a8
commit
6d8273483c
@ -147,7 +147,7 @@ public:
|
||||
bool rc_sticks_takeover_request,
|
||||
const failsafe_flags_s &status_flags);
|
||||
|
||||
bool inFailsafe() const { return _selected_action != Action::None; }
|
||||
bool inFailsafe() const { return (_selected_action != Action::None && _selected_action != Action::Warn); }
|
||||
|
||||
Action selectedAction() const { return _selected_action; }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user