EKF: update mag LPF immediately

This commit is contained in:
Daniel Agar
2020-12-17 10:46:04 +01:00
committed by Mathieu Bresciani
parent 398fe159ce
commit a8e0e82858
3 changed files with 2 additions and 9 deletions
-8
View File
@@ -58,7 +58,6 @@ void Ekf::controlMagFusion()
return;
}
updateMagFilter();
checkMagFieldStrength();
// If we are on ground, reset the flight alignment flag so that the mag fields will be
@@ -112,13 +111,6 @@ void Ekf::controlMagFusion()
}
}
void Ekf::updateMagFilter()
{
if (_mag_data_ready) {
_mag_lpf.update(_mag_sample_delayed.mag);
}
}
bool Ekf::noOtherYawAidingThanMag() const
{
// If we are using external vision data or GPS-heading for heading then no magnetometer fusion is used