mirror of https://github.com/ArduPilot/ardupilot
Plane: pre-arm check includes adsb failsafe
This commit is contained in:
parent
fa326de7fa
commit
8b021c2498
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue