mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 00:43:34 +08:00
ekf2: send global position if origin is set manually
Even if the aiding is local only, a valid global estimate can be sent as long as we know the EKF's origin.
This commit is contained in:
@@ -85,8 +85,8 @@ bool Ekf::collect_gps(const gpsMessage &gps)
|
||||
_NED_origin_initialised = true;
|
||||
|
||||
// save the horizontal and vertical position uncertainty of the origin
|
||||
_gps_origin_eph = gps.eph;
|
||||
_gps_origin_epv = gps.epv;
|
||||
_gpos_origin_eph = gps.eph;
|
||||
_gpos_origin_epv = gps.epv;
|
||||
|
||||
_information_events.flags.gps_checks_passed = true;
|
||||
ECL_INFO("GPS checks passed");
|
||||
|
||||
Reference in New Issue
Block a user