ekf2: remove unused function (#7529)

* ekf2: remove unused function

Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>

* ekf2: removed unused variable _mag_decl_saved

Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
This commit is contained in:
Carl Olsson
2017-07-17 09:24:23 +02:00
committed by Paul Riseborough
parent c59d7baad8
commit d92377a6e6

View File

@@ -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():