diff --git a/libraries/AP_ExternalAHRS/AP_ExternalAHRS.cpp b/libraries/AP_ExternalAHRS/AP_ExternalAHRS.cpp index 6b91943c65c9c..cbcc394fb042f 100644 --- a/libraries/AP_ExternalAHRS/AP_ExternalAHRS.cpp +++ b/libraries/AP_ExternalAHRS/AP_ExternalAHRS.cpp @@ -236,6 +236,10 @@ bool AP_ExternalAHRS::pre_arm_check(char *failure_msg, uint8_t failure_msg_len) return false; } + if (!state.have_origin) { + hal.util->snprintf(failure_msg, failure_msg_len, "ExternalAHRS: No origin"); + return false; + } return backend->pre_arm_check(failure_msg, failure_msg_len); }