mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
AP_ExternalAHRS: check for origin in pre-arm check
This commit is contained in:
parent
4810c81b25
commit
324205e37a
@ -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