AP_NavEKF3: fixes for new compass API
This commit is contained in:
parent
17a45b2c44
commit
25b0a113d5
@ -406,9 +406,7 @@ void NavEKF3_core::InitialiseVariablesMag()
|
|||||||
mag_state.DCM.identity();
|
mag_state.DCM.identity();
|
||||||
inhibitMagStates = true;
|
inhibitMagStates = true;
|
||||||
magStoreIndex = 0;
|
magStoreIndex = 0;
|
||||||
if (_ahrs->get_compass()) {
|
magSelectIndex = 0;
|
||||||
magSelectIndex = _ahrs->get_compass()->get_primary();
|
|
||||||
}
|
|
||||||
lastMagOffsetsValid = false;
|
lastMagOffsetsValid = false;
|
||||||
magStateResetRequest = false;
|
magStateResetRequest = false;
|
||||||
magStateInitComplete = false;
|
magStateInitComplete = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user