GCS_MAVLink: adjust for proximity rangefinder types changing namespacing

This commit is contained in:
Peter Barker 2019-09-27 18:44:38 +10:00 committed by Randy Mackay
parent de7e3acc29
commit 5c3a0926a1

View File

@ -290,7 +290,7 @@ void GCS_MAVLINK::send_distance_sensor() const
AP_Proximity *proximity = AP_Proximity::get_singleton();
if (proximity != nullptr) {
for (uint8_t i = 0; i < proximity->num_sensors(); i++) {
if (proximity->get_type(i) == AP_Proximity::Proximity_Type_RangeFinder) {
if (proximity->get_type(i) == AP_Proximity::Type::RangeFinder) {
filter_possible_proximity_sensors = true;
}
}