Plane: pre-arm check includes adsb failsafe

This commit is contained in:
Tom Pittenger 2016-08-12 13:02:31 -07:00
parent fa326de7fa
commit 8b021c2498
1 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,14 @@ bool AP_Arming_Plane::pre_arm_checks(bool report)
ret = false;
}
// check adsb avoidance failsafe
if (plane.failsafe.adsb) {
if (report) {
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL,"PreArm: ADSB threat detected");
}
ret = false;
}
return ret;
}