mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 11:03:34 +08:00
EKF: Fix bug preventing saved declination being used for first alignment
This commit is contained in:
committed by
Paul Riseborough
parent
4657a9cd21
commit
df571202c5
@@ -257,6 +257,8 @@ bool Ekf::initialiseFilter()
|
||||
Vector3f mag_init = _mag_filt_state;
|
||||
|
||||
// calculate the initial magnetic field and yaw alignment
|
||||
// Get the magnetic declination
|
||||
calcMagDeclination();
|
||||
_control_status.flags.yaw_align = resetMagHeading(mag_init);
|
||||
|
||||
if (_control_status.flags.rng_hgt) {
|
||||
|
||||
Reference in New Issue
Block a user