forked from Archive/PX4-Autopilot
Initialize velNED fields correctly, preventing a bogus initial filter reset
This commit is contained in:
parent
6bab694e45
commit
0673740e0e
|
@ -35,8 +35,11 @@ AttPosEKF::AttPosEKF()
|
|||
magDeclination = 0.0f;
|
||||
dAngIMU.zero();
|
||||
dVelIMU.zero();
|
||||
ekfDiverged = false;
|
||||
velNED[0] = 0.0f;
|
||||
velNED[1] = 0.0f;
|
||||
velNED[2] = 0.0f;
|
||||
delAngTotal.zero();
|
||||
ekfDiverged = false;
|
||||
|
||||
memset(&last_ekf_error, 0, sizeof(last_ekf_error));
|
||||
ZeroVariables();
|
||||
|
|
Loading…
Reference in New Issue