mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 12:33:35 +08:00
Remove output argument from calcEarthRateNed
This commit is contained in:
committed by
Mathieu Bresciani
parent
9e6d27fafb
commit
a21a7cd5b9
+1
-1
@@ -76,7 +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);
|
||||
_earth_rate_NED = calcEarthRateNED((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