From a42c09d27a9b295da38bc02e965cdc4f1b9a3a05 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Sun, 18 Jun 2017 22:40:19 -0700 Subject: [PATCH] Tracker: Handle NAV_CONTROLLER_OUTPUT.wp_dist overflowing --- AntennaTracker/GCS_Mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index 56535483ae..079b34edac 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -124,7 +124,7 @@ void Tracker::send_nav_controller_output(mavlink_channel_t chan) nav_status.pitch, nav_status.bearing, nav_status.bearing, - nav_status.distance, + MIN(nav_status.distance, UINT16_MAX), alt_diff, 0, 0);