mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_NavEKF: zero more variables on filter re-init
This commit is contained in:
parent
11337ab2df
commit
a53fc0636a
@ -89,6 +89,16 @@ void NavEKF::InitialiseFilter(void)
|
|||||||
lastFixTime = 0;
|
lastFixTime = 0;
|
||||||
lastMagUpdate = 0;
|
lastMagUpdate = 0;
|
||||||
lastAirspeedUpdate = 0;
|
lastAirspeedUpdate = 0;
|
||||||
|
velFailTime = 0;
|
||||||
|
posFailTime = 0;
|
||||||
|
hgtFailTime = 0;
|
||||||
|
storeIndex = 0;
|
||||||
|
memset(&P[0][0], 0, sizeof(P));
|
||||||
|
memset(&nextP[0][0], 0, sizeof(nextP));
|
||||||
|
memset(&processNoise[0], 0, sizeof(processNoise));
|
||||||
|
memset(&storedStates[0][0], 0, sizeof(storedStates));
|
||||||
|
memset(&statetimeStamp[0], 0, sizeof(statetimeStamp));
|
||||||
|
|
||||||
|
|
||||||
// Calculate initial filter quaternion states from ahrs solution
|
// Calculate initial filter quaternion states from ahrs solution
|
||||||
Quaternion initQuat;
|
Quaternion initQuat;
|
||||||
|
Loading…
Reference in New Issue
Block a user