AP_NavEKF3: fixed EKF compass switching

when we had 3 compasses the lack of the 'break' meant when we switched
compass in flight we would always switch back instantly to the one
that we had just rejected.
This commit is contained in:
Andrew Tridgell 2019-02-09 09:15:56 +11:00
parent ccc1f906f8
commit 39ffef1f08
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ void NavEKF3_core::readMagData()
magStateResetRequest = true;
// declare the field unlearned so that the reset request will be obeyed
magFieldLearned = false;
break;
}
}
}