AP_RangeFinder: allow to set rangefinder type for mavlink

This commit is contained in:
Pierre Kancir 2017-06-21 11:38:42 +02:00 committed by Francisco Ferreira
parent ed0063d10d
commit ccbf281137
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ void AP_RangeFinder_MAVLink::handle_msg(mavlink_message_t *msg)
last_update_ms = AP_HAL::millis();
distance_cm = packet.current_distance;
}
sensor_type = (MAV_DISTANCE_SENSOR)packet.type;
}
/*