Copter: integrate ahrs.pre_arm_check

This commit is contained in:
Randy Mackay 2020-10-06 14:20:54 +09:00 committed by Peter Barker
parent eeaf135cca
commit 49e1e8cc16
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ bool AP_Arming_Copter::mandatory_gps_checks(bool display_failure)
const AP_AHRS_NavEKF &ahrs = AP::ahrs_navekf();
char failure_msg[50] = {};
if (!ahrs.pre_arm_check(failure_msg, sizeof(failure_msg))) {
check_failed(display_failure, "%s", failure_msg);
check_failed(display_failure, "AHRS: %s", failure_msg);
return false;
}