mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Failure detector - in failure detector preflight check, get
vehicle_status as const type. Also use FAILURE_NONE enum to check for a failure
This commit is contained in:
@@ -674,7 +674,8 @@ out:
|
||||
return success;
|
||||
}
|
||||
|
||||
static bool failureDetectorCheck(orb_advert_t *mavlink_log_pub, vehicle_status_s &status, bool report_fail, bool prearm)
|
||||
static bool failureDetectorCheck(orb_advert_t *mavlink_log_pub, const vehicle_status_s &status, bool report_fail,
|
||||
bool prearm)
|
||||
{
|
||||
bool success = true;
|
||||
|
||||
@@ -684,7 +685,7 @@ static bool failureDetectorCheck(orb_advert_t *mavlink_log_pub, vehicle_status_s
|
||||
|
||||
}
|
||||
|
||||
if (status.failure_detector_status != 0) {
|
||||
if (status.failure_detector_status != vehicle_status_s::FAILURE_NONE) {
|
||||
success = false;
|
||||
|
||||
if (report_fail) {
|
||||
|
||||
Reference in New Issue
Block a user