From 30980815a850a90b3f65e6171ff84f86ce4d99a8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 2 Jan 2019 14:11:38 +1100 Subject: [PATCH] AP_GPS: adjust for Location_Class and Location unification --- libraries/AP_GPS/AP_GPS.cpp | 2 +- libraries/AP_GPS/AP_GPS.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS.cpp b/libraries/AP_GPS/AP_GPS.cpp index db3aec0613..02d7fac99a 100644 --- a/libraries/AP_GPS/AP_GPS.cpp +++ b/libraries/AP_GPS/AP_GPS.cpp @@ -1341,7 +1341,7 @@ void AP_GPS::calc_blended_state(void) state[GPS_BLENDED_INSTANCE].have_speed_accuracy = false; state[GPS_BLENDED_INSTANCE].have_horizontal_accuracy = false; state[GPS_BLENDED_INSTANCE].have_vertical_accuracy = false; - memset(&state[GPS_BLENDED_INSTANCE].location, 0, sizeof(state[GPS_BLENDED_INSTANCE].location)); + state[GPS_BLENDED_INSTANCE].location = {}; _blended_antenna_offset.zero(); _blended_lag_sec = 0; diff --git a/libraries/AP_GPS/AP_GPS.h b/libraries/AP_GPS/AP_GPS.h index 266310be24..69b3d3ecc2 100644 --- a/libraries/AP_GPS/AP_GPS.h +++ b/libraries/AP_GPS/AP_GPS.h @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include