Commander: separate failure detector cases

One case could lead to the action for the other!
This commit is contained in:
Matthias Grob
2020-09-08 11:42:30 +02:00
parent f47bb95b26
commit 390edb770d
2 changed files with 18 additions and 22 deletions
@@ -74,9 +74,7 @@ public:
FailureDetector(ModuleParams *parent);
bool update(const vehicle_status_s &vehicle_status);
uint8_t getStatus() const { return _status; }
bool isFailure() const { return _status != FAILURE_NONE; }
private:
void resetAttitudeStatus();