forked from Archive/PX4-Autopilot
Initializing variables
This commit is contained in:
parent
8e35f6727c
commit
9cb59e33a6
|
@ -392,8 +392,6 @@ FixedwingEstimator::task_main()
|
|||
|
||||
parameters_update();
|
||||
|
||||
Vector3f lastAngRate;
|
||||
Vector3f lastAccel;
|
||||
/* set initial filter state */
|
||||
fuseVelData = false;
|
||||
fusePosData = false;
|
||||
|
@ -402,6 +400,11 @@ FixedwingEstimator::task_main()
|
|||
fuseVtasData = 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) */
|
||||
struct pollfd fds[2];
|
||||
|
||||
|
|
Loading…
Reference in New Issue