aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-01-31 18:14:27 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-01-31 18:14:27 +0100
commitdba229ffa5fbdd6e7863f528412be429a84837ac (patch)
treec81b0dc89a326f026a2bd23b47bb541e8c95174b /src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
parent92cf8a4cd78d171c5ad969790258e93473c2c5fb (diff)
parent9cb59e33a6da2bcd2bb49bc3d49ce527597582f9 (diff)
downloadpx4-firmware-dba229ffa5fbdd6e7863f528412be429a84837ac.tar.gz
px4-firmware-dba229ffa5fbdd6e7863f528412be429a84837ac.tar.bz2
px4-firmware-dba229ffa5fbdd6e7863f528412be429a84837ac.zip
Merge branch 'paul_estimator' of github.com:PX4/Firmware into paul_estimator
Diffstat (limited to 'src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp')
-rw-r--r--src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
index 5c977f608..444597e81 100644
--- a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
+++ b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp
@@ -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];