Browse Source

ekf2: multi-mode allow first instance to save EKF2_MAG_DECL

master
Daniel Agar 4 years ago committed by Mathieu Bresciani
parent
commit
06c2d14903
  1. 2
      src/modules/ekf2/EKF2.cpp

2
src/modules/ekf2/EKF2.cpp

@ -1768,7 +1768,7 @@ void EKF2::UpdateMagCalibration(const hrt_abstime &timestamp) @@ -1768,7 +1768,7 @@ void EKF2::UpdateMagCalibration(const hrt_abstime &timestamp)
_param_ekf2_mag_decl.set(declination_deg);
_mag_decl_saved = true;
if (!_multi_mode) {
if (!_multi_mode || (_multi_mode && _instance == 0)) {
_param_ekf2_mag_decl.commit_no_notification();
}
}

Loading…
Cancel
Save