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:
Silvan Fuhrer 2024-03-13 17:06:21 +01:00 committed by Beat Küng
parent 7c6ecd95a8
commit 6d8273483c
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ public:
bool rc_sticks_takeover_request, bool rc_sticks_takeover_request,
const failsafe_flags_s &status_flags); 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; } Action selectedAction() const { return _selected_action; }