diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 63d9b72003..efa6962a5b 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -148,7 +148,6 @@ private: 0; // time stamp in msec of the last averaged barometric altitude measurement used by the EKF float _acc_hor_filt = 0.0f; // low-pass filtered horizontal acceleration - bool _mag_decl_saved = false; // true when the declination for the current position has been saved // Used to check, save and use learned magnetometer biases hrt_abstime _last_magcal_us = 0; // last time the EKF was operating a mode that estimates magnetomer biases (usec) @@ -315,8 +314,6 @@ private: _mag_bias_saved_variance; // Assumed error variance of previously saved magnetometer bias estimates (mGauss**2) control::BlockParamFloat _mag_bias_alpha; // maximum fraction of the learned bias that is applied each disarm - int update_subscriptions(); - }; Ekf2::Ekf2():