diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index e0efe0fa560c52ee0c75c34c53fcb0452738cb98..b2cde83b7a5b5f43989e23871a75169e72c77ed9 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -194,7 +194,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan) MAV_SYS_STATUS_SENSOR_3D_MAG | MAV_SYS_STATUS_SENSOR_GPS | MAV_SYS_STATUS_SENSOR_RC_RECEIVER); - if (barometer.healthy()) { + if (barometer.all_healthy()) { control_sensors_health |= MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE; } if (g.compass_enabled && compass.healthy(0) && ahrs.use_compass()) { diff --git a/ArduCopter/motors.pde b/ArduCopter/motors.pde index a2438a9e7f7891e2c5de51880c4c4a60df98ec85..0d2499843dfa9b8158d0f5245b28836a22ea1418 100644 --- a/ArduCopter/motors.pde +++ b/ArduCopter/motors.pde @@ -232,7 +232,7 @@ static void pre_arm_checks(bool display_failure) // check Baro if ((g.arming_check == ARMING_CHECK_ALL) || (g.arming_check & ARMING_CHECK_BARO)) { // barometer health check - if(!barometer.healthy()) { + if(!barometer.all_healthy()) { if (display_failure) { gcs_send_text_P(SEVERITY_HIGH,PSTR("PreArm: Barometer not healthy")); }