AP_Arming: provide better feedback on attitude check
This commit is contained in:
parent
ba02894734
commit
26fd334882
@ -327,8 +327,9 @@ bool AP_Arming::ins_checks(bool report)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check AHRS attitudes are consistent
|
// check AHRS attitudes are consistent
|
||||||
if (!AP::ahrs().attitudes_consistent()) {
|
char failure_msg[50] = {};
|
||||||
check_failed(ARMING_CHECK_INS, report, "Attitudes inconsistent");
|
if (!AP::ahrs().attitudes_consistent(failure_msg, ARRAY_SIZE(failure_msg))) {
|
||||||
|
check_failed(ARMING_CHECK_INS, report, failure_msg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user