AP_NavEKF2: fixes for new compass API

This commit is contained in:
Andrew Tridgell 2020-05-11 19:38:53 +10:00
parent cbb1512ebc
commit 17a45b2c44

View File

@ -359,9 +359,7 @@ void NavEKF2_core::InitialiseVariablesMag()
inhibitMagStates = true;
if (_ahrs->get_compass()) {
magSelectIndex = _ahrs->get_compass()->get_primary();
}
magSelectIndex = 0;
lastMagOffsetsValid = false;
magStateResetRequest = false;
magStateInitComplete = false;