mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 15:27:35 +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:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user