diff --git a/APMrover2/AP_Arming.cpp b/APMrover2/AP_Arming.cpp index 0a253a4bc0..6bc08c669c 100644 --- a/APMrover2/AP_Arming.cpp +++ b/APMrover2/AP_Arming.cpp @@ -42,6 +42,11 @@ bool AP_Arming_Rover::pre_arm_rc_checks(const bool display_failure) // performs pre_arm gps related checks and returns true if passed bool AP_Arming_Rover::gps_checks(bool display_failure) { + if (!rover.control_mode->requires_position() && !rover.control_mode->requires_velocity()) { + // we don't care! + return true; + } + const AP_AHRS &ahrs = AP::ahrs(); // always check if inertial nav has started and is ready @@ -54,11 +59,6 @@ bool AP_Arming_Rover::gps_checks(bool display_failure) return false; } - if (!rover.control_mode->requires_position() && !rover.control_mode->requires_velocity()) { - // we don't care! - return true; - } - // check for ekf failsafe if (rover.failsafe.ekf) { check_failed(ARMING_CHECK_NONE, display_failure, "EKF failsafe");