Tracker: Handle NAV_CONTROLLER_OUTPUT.wp_dist overflowing

This commit is contained in:
Michael du Breuil 2017-06-18 22:40:19 -07:00 committed by Francisco Ferreira
parent 57c9afb77e
commit a42c09d27a

View File

@ -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);