Copter: proximity sensor reports laser unhealthy when no data

This commit is contained in:
Randy Mackay 2018-05-22 16:11:44 +09:00
parent e1d80e547d
commit 25475b65d9

View File

@ -368,7 +368,7 @@ void Copter::update_sensor_status_flags(void)
}
#if PROXIMITY_ENABLED == ENABLED
if (copter.g2.proximity.get_status() < AP_Proximity::Proximity_Good) {
if (copter.g2.proximity.get_status() == AP_Proximity::Proximity_NoData) {
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_LASER_POSITION;
}
#endif