mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +08:00
ekf2: multi-mode allow first instance to save EKF2_MAG_DECL
This commit is contained in:
committed by
Mathieu Bresciani
parent
1af2ecaff6
commit
06c2d14903
@@ -1768,7 +1768,7 @@ void EKF2::UpdateMagCalibration(const hrt_abstime ×tamp)
|
||||
_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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user