Browse Source

ekf2: reset mag_lpf (by zeroing _mag_counter) when resetting mag bias (or changing mags)

- so that there's new filtered data avaiable for reset
main
Daniel Agar 3 years ago
parent
commit
70e95812e7
  1. 2
      src/modules/ekf2/EKF/ekf_helper.cpp

2
src/modules/ekf2/EKF/ekf_helper.cpp

@ -915,6 +915,8 @@ void Ekf::resetMagBiasAndYaw() @@ -915,6 +915,8 @@ void Ekf::resetMagBiasAndYaw()
}
_control_status.flags.mag_fault = false;
_mag_counter = 0;
}
// get EKF innovation consistency check status information comprising of:

Loading…
Cancel
Save