From 88aa1e447ab965c808fba9811560d05620da057a Mon Sep 17 00:00:00 2001 From: khancyr Date: Fri, 14 Jul 2017 18:00:18 +0100 Subject: [PATCH] Copter: adapt to new send_proximity API --- 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 14b93bc068..67374e12e3 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -416,8 +416,7 @@ bool GCS_MAVLINK_Copter::try_send_message(enum ap_message id) send_distance_sensor_downward(copter.rangefinder); #endif #if PROXIMITY_ENABLED == ENABLED - CHECK_PAYLOAD_SIZE(DISTANCE_SENSOR); - send_proximity(copter.g2.proximity, comm_get_txspace(chan) / (packet_overhead()+9)); + send_proximity(copter.g2.proximity); #endif break;