mirror of https://github.com/ArduPilot/ardupilot
AP_RangeFinder: allow to set rangefinder type for mavlink
This commit is contained in:
parent
ed0063d10d
commit
ccbf281137
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue