Copter: pre-arm check for compass

This commit is contained in:
Randy Mackay 2013-04-27 23:50:40 +09:00
parent 4c7ab9a0f9
commit 90af3262c5
1 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,11 @@ static void pre_arm_checks()
return;
}
// check the compass is healthy
if(!compass.healthy) {
return;
}
#if AC_FENCE == ENABLED
// check fence is initialised
if(!fence.pre_arm_check()) {