Browse Source

AP_Arming: Check GPS update rate as part of the GPS checks

master
Michael du Breuil 8 years ago committed by Francisco Ferreira
parent
commit
3ab9b75df0
  1. 8
      libraries/AP_Arming/AP_Arming.cpp

8
libraries/AP_Arming/AP_Arming.cpp

@ -349,6 +349,14 @@ bool AP_Arming::gps_checks(bool report) @@ -349,6 +349,14 @@ bool AP_Arming::gps_checks(bool report)
}
return false;
}
//GPS update rate acceptable
if (!gps.is_healthy()) {
if (report) {
gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: GPS is not healthy");
}
return false;
}
}
if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_GPS_CONFIG)) {

Loading…
Cancel
Save