AP_ExternalAHRS: check for origin in pre-arm check

This commit is contained in:
Andrew Tridgell 2024-02-27 09:38:55 +11:00 committed by Randy Mackay
parent 4810c81b25
commit 324205e37a

View File

@ -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);
}