Browse Source

AP_Arming: display a warning if arming checks disabled when arming

gps-1.3.1
Andrew Tridgell 3 years ago
parent
commit
518b126f52
  1. 4
      libraries/AP_Arming/AP_Arming.cpp

4
libraries/AP_Arming/AP_Arming.cpp

@ -1364,6 +1364,10 @@ bool AP_Arming::arm(AP_Arming::Method method, const bool do_arming_checks) @@ -1364,6 +1364,10 @@ bool AP_Arming::arm(AP_Arming::Method method, const bool do_arming_checks)
armed = false;
}
if (armed && do_arming_checks && checks_to_perform == 0) {
gcs().send_text(MAV_SEVERITY_WARNING, "Warning: Arming Checks Disabled");
}
return armed;
}

Loading…
Cancel
Save