Rover: ahrs only checks position in modes that require it

This commit is contained in:
Randy Mackay 2021-01-21 13:16:45 +09:00 committed by Andrew Tridgell
parent dc515b87df
commit f6da769de8

View File

@ -43,7 +43,7 @@ bool AP_Arming_Rover::gps_checks(bool display_failure)
// always check if inertial nav has started and is ready
char failure_msg[50] = {};
if (!ahrs.pre_arm_check(failure_msg, sizeof(failure_msg))) {
if (!ahrs.pre_arm_check(true, failure_msg, sizeof(failure_msg))) {
check_failed(display_failure, "AHRS: %s", failure_msg);
return false;
}