AP_NavEKF3: add prearm failure message for null core pointer

This commit is contained in:
Mark Whitehorn 2019-10-25 21:23:33 -06:00 committed by Andrew Tridgell
parent 5049a5fbd4
commit 8b2b7444d3

View File

@ -1549,7 +1549,7 @@ uint32_t NavEKF3::getLastVelNorthEastReset(Vector2f &vel) const
const char *NavEKF3::prearm_failure_reason(void) const
{
if (!core) {
return nullptr;
return "no EKF3 cores";
}
for (uint8_t i = 0; i < num_cores; i++) {
const char * failure = core[primary].prearm_failure_reason();