From a611803b6da22265b9da88c06f1626672053ae87 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Dec 2018 18:33:27 +1100 Subject: [PATCH] HAL_SITL: fixed valgrind error in NOVA GPS --- libraries/AP_HAL_SITL/sitl_gps.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_HAL_SITL/sitl_gps.cpp b/libraries/AP_HAL_SITL/sitl_gps.cpp index 71d6c8761e..37b85918ee 100644 --- a/libraries/AP_HAL_SITL/sitl_gps.cpp +++ b/libraries/AP_HAL_SITL/sitl_gps.cpp @@ -997,7 +997,7 @@ void SITL_State::_update_gps_nova(const struct gps_data *d, uint8_t instance) float cutoff; uint32_t svcount; // extra data for individual prns - } psrdop; + } psrdop {}; struct PACKED bestpos { @@ -1023,7 +1023,7 @@ void SITL_State::_update_gps_nova(const struct gps_data *d, uint8_t instance) uint8_t extsolstat; uint8_t galbeisigmask; uint8_t gpsglosigmask; - } bestpos; + } bestpos {}; struct PACKED bestvel { @@ -1036,7 +1036,7 @@ void SITL_State::_update_gps_nova(const struct gps_data *d, uint8_t instance) // + up double vertspd; float resv; - } bestvel; + } bestvel {}; uint16_t time_week; uint32_t time_week_ms;