mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 16:43:35 +08:00
EKF: update mag LPF immediately
This commit is contained in:
committed by
Mathieu Bresciani
parent
398fe159ce
commit
a8e0e82858
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user