From 39ffef1f08b28d2147a9977bccf6da4ea128dfb4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 9 Feb 2019 09:15:56 +1100 Subject: [PATCH] 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. --- libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp index e98583efdb..75ec47a2f8 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp @@ -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; } } }