mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_AHRS: modify AHRS type check for compass-less setups
This commit is contained in:
parent
821053e580
commit
a5b373e912
@ -2091,8 +2091,8 @@ bool AP_AHRS::pre_arm_check(bool requires_position, char *failure_msg, uint8_t f
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure we're using the configured backend:
|
// ensure we're using the configured backend, but bypass in compass-less cases:
|
||||||
if (ekf_type() != active_EKF_type()) {
|
if (ekf_type() != active_EKF_type() && AP::compass().use_for_yaw()) {
|
||||||
hal.util->snprintf(failure_msg, failure_msg_len, "AHRS: not using configured AHRS type");
|
hal.util->snprintf(failure_msg, failure_msg_len, "AHRS: not using configured AHRS type");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user