AP_NavEKF2: zero H_MAG to prevent compiler error

This commit is contained in:
Peter Barker 2024-07-30 15:21:40 +10:00 committed by Andrew Tridgell
parent 771fe173d4
commit 897170059d
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ void NavEKF2_core::FuseMagnetometer()
Vector3f &MagPred = mag_state.MagPred; Vector3f &MagPred = mag_state.MagPred;
ftype &R_MAG = mag_state.R_MAG; ftype &R_MAG = mag_state.R_MAG;
ftype *SH_MAG = &mag_state.SH_MAG[0]; ftype *SH_MAG = &mag_state.SH_MAG[0];
Vector24 H_MAG; Vector24 H_MAG {};
Vector6 SK_MX; Vector6 SK_MX;
Vector6 SK_MY; Vector6 SK_MY;
Vector6 SK_MZ; Vector6 SK_MZ;