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();
|
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];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue