AP_NavEKF2: Primary compass is always at serial number 0

This commit is contained in:
Siddharth Purohit 2019-11-20 13:27:03 +08:00 committed by Randy Mackay
parent 7da331535c
commit 4cca1c307c

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;