From d92377a6e68cf1299aa475bfda977754c68c139f Mon Sep 17 00:00:00 2001 From: Carl Olsson Date: Mon, 17 Jul 2017 09:24:23 +0200 Subject: [PATCH] ekf2: remove unused function (#7529) * ekf2: remove unused function Signed-off-by: CarlOlsson * ekf2: removed unused variable _mag_decl_saved Signed-off-by: CarlOlsson --- src/modules/ekf2/ekf2_main.cpp | 3 --- 1 file changed, 3 deletions(-) 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():