From 0b661e787252ca223c398f55e789b6d7eb34cece Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 2 Jan 2019 14:26:29 +1100 Subject: [PATCH] AP_Beacon: adjust for Location_Class and Location unification --- libraries/AP_Beacon/AP_Beacon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Beacon/AP_Beacon.cpp b/libraries/AP_Beacon/AP_Beacon.cpp index d1ed4686ae..9bba0ac5a3 100644 --- a/libraries/AP_Beacon/AP_Beacon.cpp +++ b/libraries/AP_Beacon/AP_Beacon.cpp @@ -19,6 +19,8 @@ #include "AP_Beacon_Marvelmind.h" #include "AP_Beacon_SITL.h" +#include + extern const AP_HAL::HAL &hal; // table of user settable parameters @@ -137,7 +139,7 @@ bool AP_Beacon::get_origin(Location &origin_loc) const } // return origin - memset(&origin_loc, 0, sizeof(origin_loc)); + origin_loc = {}; origin_loc.lat = origin_lat * 1.0e7; origin_loc.lng = origin_lon * 1.0e7; origin_loc.alt = origin_alt * 100;