From 7cd6aec7997f337b1bf57c8c04373d58885bce7b Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 26 Sep 2019 15:35:55 +0900 Subject: [PATCH] Rover: fix init of struct published to OSD --- APMrover2/Rover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APMrover2/Rover.cpp b/APMrover2/Rover.cpp index be2e872ca9..be5d58a4c2 100644 --- a/APMrover2/Rover.cpp +++ b/APMrover2/Rover.cpp @@ -330,7 +330,7 @@ void Rover::update_mission(void) #if OSD_ENABLED == ENABLED void Rover::publish_osd_info() { - AP_OSD::NavInfo nav_info {}; + AP_OSD::NavInfo nav_info {0}; if (control_mode == &mode_loiter) { nav_info.wp_xtrack_error = control_mode->get_distance_to_destination(); } else {