mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 00:33:56 -04:00
AP_ExternalAHRS: check for origin in pre-arm check
This commit is contained in:
parent
c6c0de9889
commit
c536532b40
@ -236,6 +236,10 @@ bool AP_ExternalAHRS::pre_arm_check(char *failure_msg, uint8_t failure_msg_len)
|
|||||||
return false;
|
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);
|
return backend->pre_arm_check(failure_msg, failure_msg_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user