Initialize velNED fields correctly, preventing a bogus initial filter reset

This commit is contained in:
Lorenz Meier 2014-06-21 14:58:37 +02:00
parent 6bab694e45
commit 0673740e0e
1 changed files with 4 additions and 1 deletions

View File

@ -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();