Copter: proximity sensor reports laser unhealthy when no data
This commit is contained in:
parent
e1d80e547d
commit
25475b65d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user