mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 00:13:34 +08:00
FailureDetector - Add is_failure() function to simplify the interface; the user does not need to check the bitmask
This commit is contained in:
@@ -70,7 +70,8 @@ public:
|
||||
|
||||
bool update();
|
||||
|
||||
uint8_t get_status() const {return _status;}
|
||||
uint8_t get_status() const { return _status; }
|
||||
bool is_failure() const { return (_status == FAILURE_NONE) ? false : true; }
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user