From 033a8ec4d547bff4eb9b38984044806efeb246fc Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Tue, 8 May 2018 23:47:45 -0700 Subject: [PATCH] Copter: Send all distance sensors --- ArduCopter/GCS_Mavlink.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 25883eae93..87e40831d5 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -363,8 +363,7 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id) #if RANGEFINDER_ENABLED == ENABLED CHECK_PAYLOAD_SIZE(RANGEFINDER); send_rangefinder_downward(copter.rangefinder); - CHECK_PAYLOAD_SIZE(DISTANCE_SENSOR); - send_distance_sensor_downward(copter.rangefinder); + send_distance_sensor(copter.rangefinder); #endif #if PROXIMITY_ENABLED == ENABLED send_proximity(copter.g2.proximity);