Initializing variables

This commit is contained in:
Lorenz Meier 2014-01-31 17:43:49 +01:00
parent 8e35f6727c
commit 9cb59e33a6
1 changed files with 5 additions and 2 deletions

View File

@ -392,8 +392,6 @@ FixedwingEstimator::task_main()
parameters_update(); parameters_update();
Vector3f lastAngRate;
Vector3f lastAccel;
/* set initial filter state */ /* set initial filter state */
fuseVelData = false; fuseVelData = false;
fusePosData = false; fusePosData = false;
@ -402,6 +400,11 @@ FixedwingEstimator::task_main()
fuseVtasData = false; fuseVtasData = false;
statesInitialised = false; statesInitialised = false;
/* initialize measurement data */
VtasMeas = 0.0f;
Vector3f lastAngRate = {0.0f, 0.0f, 0.0f};
Vector3f lastAccel = {0.0f, 0.0f, 0.0f};
/* wakeup source(s) */ /* wakeup source(s) */
struct pollfd fds[2]; struct pollfd fds[2];