Copter: added ALLOW_ARM_NO_COMPASS

for skyviper-f412
This commit is contained in:
Andrew Tridgell 2018-02-13 08:11:48 +11:00
parent e05bac425f
commit 30572692c4

View File

@ -561,6 +561,7 @@ bool AP_Arming_Copter::arm_checks(bool display_failure, bool arming_from_gcs)
return false;
}
#ifndef ALLOW_ARM_NO_COMPASS
// check compass health
if (!_compass.healthy()) {
if (display_failure) {
@ -568,6 +569,7 @@ bool AP_Arming_Copter::arm_checks(bool display_failure, bool arming_from_gcs)
}
return false;
}
#endif
if (_compass.is_calibrating()) {
if (display_failure) {