AP_AHRS: adjust for Location_Class and Location unification

This commit is contained in:
Peter Barker 2019-01-02 14:26:19 +11:00 committed by Peter Barker
parent d8e90ded90
commit 7406c5be37

View File

@ -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;