Copter: AP_Arming integrates rename to using_noncompass_for_yaw

This commit is contained in:
Randy Mackay 2021-08-18 16:34:54 +09:00 committed by Andrew Tridgell
parent e7be608a4a
commit b4e073d6f7
1 changed files with 2 additions and 2 deletions

View File

@ -630,8 +630,8 @@ bool AP_Arming_Copter::arm_checks(AP_Arming::Method method)
}
#ifndef ALLOW_ARM_NO_COMPASS
// if external source of heading is available, we can skip compass health check
if (!ahrs.is_ext_nav_used_for_yaw()) {
// if non-compass is source of heading we can skip compass health check
if (!ahrs.using_noncompass_for_yaw()) {
const Compass &_compass = AP::compass();
// check compass health
if (!_compass.healthy()) {