Browse Source

AP_NavEKF: ensure get_position() fills in flags

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
383070b9c0
  1. 2
      libraries/AP_NavEKF/AP_NavEKF.cpp

2
libraries/AP_NavEKF/AP_NavEKF.cpp

@ -2807,6 +2807,8 @@ bool NavEKF::getLLH(struct Location &loc) const @@ -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;
}

Loading…
Cancel
Save