Copter: pre-arm check for compass
This commit is contained in:
parent
4c7ab9a0f9
commit
90af3262c5
@ -168,6 +168,11 @@ static void pre_arm_checks()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check the compass is healthy
|
||||||
|
if(!compass.healthy) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#if AC_FENCE == ENABLED
|
#if AC_FENCE == ENABLED
|
||||||
// check fence is initialised
|
// check fence is initialised
|
||||||
if(!fence.pre_arm_check()) {
|
if(!fence.pre_arm_check()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user