From 9a121dc7c41681cc3c3c89f7ab32ef39014782c3 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 24 May 2017 15:22:28 +0200 Subject: [PATCH] ArduPlane: add DISTANCE_SENSOR support --- ArduPlane/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index de8bcffa6a..da00ff54c3 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -598,6 +598,8 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id) case MSG_RANGEFINDER: CHECK_PAYLOAD_SIZE(RANGEFINDER); plane.send_rangefinder(chan); + CHECK_PAYLOAD_SIZE(DISTANCE_SENSOR); + send_distance_sensor_downward(plane.rangefinder); break; case MSG_TERRAIN: