From 7406c5be37f2fd834a9fe14935c066c1c34533fe Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 2 Jan 2019 14:26:19 +1100 Subject: [PATCH] AP_AHRS: adjust for Location_Class and Location unification --- libraries/AP_AHRS/AP_AHRS_NavEKF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp index 2512d42290..75180f1aab 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp @@ -423,7 +423,7 @@ bool AP_AHRS_NavEKF::get_position(struct Location &loc) const case EKF_TYPE_SITL: { if (_sitl) { const struct SITL::sitl_fdm &fdm = _sitl->state; - memset(&loc, 0, sizeof(loc)); + loc = {}; loc.lat = fdm.latitude * 1e7; loc.lng = fdm.longitude * 1e7; loc.alt = fdm.altitude*100;