mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 12:43:34 +08:00
Replace calculation of earth NED rotation vector
This commit is contained in:
committed by
Paul Riseborough
parent
9f053cb8c1
commit
c6e3f389d2
@@ -76,6 +76,7 @@ bool Ekf::collect_gps(const gps_message &gps)
|
||||
// Take the current GPS height and subtract the filter height above origin to estimate the GPS height of the origin
|
||||
_gps_alt_ref = 1e-3f * (float)gps.alt + _state.pos(2);
|
||||
_NED_origin_initialised = true;
|
||||
calcEarthRateNED(_earth_rate_NED, (float)_pos_ref.lat_rad);
|
||||
_last_gps_origin_time_us = _time_last_imu;
|
||||
|
||||
// set the magnetic field data returned by the geo library using the current GPS position
|
||||
|
||||
Reference in New Issue
Block a user