Browse Source

Copter: add baro health to pre-arm checks

mission-4.1.18
Randy Mackay 12 years ago
parent
commit
4fa101292a
  1. 8
      ArduCopter/motors.pde

8
ArduCopter/motors.pde

@ -239,6 +239,14 @@ static void pre_arm_checks(bool display_failure) @@ -239,6 +239,14 @@ static void pre_arm_checks(bool display_failure)
return;
}
// barometer health check
if(!barometer.healthy) {
if (display_failure) {
gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: Baro not healthy"));
}
return;
}
#if AC_FENCE == ENABLED
// check fence is initialised
if(!fence.pre_arm_check()) {

Loading…
Cancel
Save