mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
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
Block a user