mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 18:18:49 -04:00
GCS_MAVLink: adjust for proximity rangefinder types changing namespacing
This commit is contained in:
parent
caeb93e370
commit
af0e37478f
@ -290,7 +290,7 @@ void GCS_MAVLINK::send_distance_sensor() const
|
|||||||
AP_Proximity *proximity = AP_Proximity::get_singleton();
|
AP_Proximity *proximity = AP_Proximity::get_singleton();
|
||||||
if (proximity != nullptr) {
|
if (proximity != nullptr) {
|
||||||
for (uint8_t i = 0; i < proximity->num_sensors(); i++) {
|
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;
|
filter_possible_proximity_sensors = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user