AP_NavEKF: ensure get_position() fills in flags

This commit is contained in:
Andrew Tridgell 2014-07-25 11:40:26 +10:00
parent 6a275372dd
commit 383070b9c0
1 changed files with 2 additions and 0 deletions

View File

@ -2807,6 +2807,8 @@ bool NavEKF::getLLH(struct Location &loc) const
loc.lat = _ahrs->get_home().lat;
loc.lng = _ahrs->get_home().lng;
loc.alt = _ahrs->get_home().alt - states[9]*100;
loc.flags.relative_alt = 0;
loc.flags.terrain_alt = 0;
location_offset(loc, states[7], states[8]);
return true;
}