mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
Copter: added ALLOW_ARM_NO_COMPASS
for skyviper-f412
This commit is contained in:
parent
e05bac425f
commit
30572692c4
@ -561,6 +561,7 @@ bool AP_Arming_Copter::arm_checks(bool display_failure, bool arming_from_gcs)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef ALLOW_ARM_NO_COMPASS
|
||||||
// check compass health
|
// check compass health
|
||||||
if (!_compass.healthy()) {
|
if (!_compass.healthy()) {
|
||||||
if (display_failure) {
|
if (display_failure) {
|
||||||
@ -568,6 +569,7 @@ bool AP_Arming_Copter::arm_checks(bool display_failure, bool arming_from_gcs)
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (_compass.is_calibrating()) {
|
if (_compass.is_calibrating()) {
|
||||||
if (display_failure) {
|
if (display_failure) {
|
||||||
|
Loading…
Reference in New Issue
Block a user