mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
AP_NavEKF2: fixes for new compass API
This commit is contained in:
parent
cbb1512ebc
commit
17a45b2c44
@ -359,9 +359,7 @@ void NavEKF2_core::InitialiseVariablesMag()
|
|||||||
|
|
||||||
inhibitMagStates = true;
|
inhibitMagStates = true;
|
||||||
|
|
||||||
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