ekf2: don't add invalid GNSS samples to the buffer

This commit is contained in:
bresch
2022-11-30 00:22:15 -05:00
committed by Daniel Agar
parent 0c923bda4e
commit 5d7faefa84
2 changed files with 4 additions and 2 deletions
@@ -330,7 +330,6 @@ protected:
bool _initialised{false}; // true if the ekf interface instance (data buffering) is initialized
bool _NED_origin_initialised{false};
bool _gps_speed_valid{false};
float _gps_origin_eph{0.0f}; // horizontal position uncertainty of the GPS origin
float _gps_origin_epv{0.0f}; // vertical position uncertainty of the GPS origin
MapProjection _pos_ref{}; // Contains WGS-84 position latitude and longitude of the EKF origin