From b741639002c66d707465634ca74e9974a7399bc4 Mon Sep 17 00:00:00 2001 From: hoangthien94 Date: Mon, 24 Jun 2019 21:03:52 +0800 Subject: [PATCH] GCS_Copter: Fixed precland condition to set SENSOR_VISION_POSITION flag --- ArduCopter/GCS_Copter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/GCS_Copter.cpp b/ArduCopter/GCS_Copter.cpp index feda7ab76be..9fb7506c3b0 100644 --- a/ArduCopter/GCS_Copter.cpp +++ b/ArduCopter/GCS_Copter.cpp @@ -135,7 +135,7 @@ void GCS_Copter::update_vehicle_sensor_status_flags(void) } #endif #if PRECISION_LANDING == ENABLED - if (!copter.precland.enabled() || copter.precland.healthy()) { + if (copter.precland.enabled() && copter.precland.healthy()) { control_sensors_health |= MAV_SYS_STATUS_SENSOR_VISION_POSITION; } #endif