diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 27bceaa1ed..38262517fb 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -346,7 +346,7 @@ bool AP_Arming::gps_checks(bool report) if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_GPS)) { //GPS OK? - if (home_status() == HOME_UNSET || + if (!AP::ahrs().home_is_set() || gps.status() < AP_GPS::GPS_OK_FIX_3D) { if (report) { gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: Bad GPS Position"); diff --git a/libraries/AP_Arming/AP_Arming.h b/libraries/AP_Arming/AP_Arming.h index 7b0ae59218..cde63f8037 100644 --- a/libraries/AP_Arming/AP_Arming.h +++ b/libraries/AP_Arming/AP_Arming.h @@ -104,8 +104,6 @@ protected: bool manual_transmitter_checks(bool report); - virtual enum HomeState home_status() const = 0; - bool rc_checks_copter_sub(bool display_failure, const RC_Channel *channels[4], const bool check_min_max = true) const; };