aboutsummaryrefslogtreecommitdiff
path: root/src/modules/ekf_att_pos_estimator
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-05-11 18:42:46 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-05-11 18:42:46 +0200
commit7ec8fe8d61ea56b632d8b02bae5d847a3f031771 (patch)
treee97d0056d241f4ee2cd2b550906700d702f7e796 /src/modules/ekf_att_pos_estimator
parentd3a9aaed5de6c8952d7034253100aafb9ae4b968 (diff)
downloadpx4-firmware-7ec8fe8d61ea56b632d8b02bae5d847a3f031771.tar.gz
px4-firmware-7ec8fe8d61ea56b632d8b02bae5d847a3f031771.tar.bz2
px4-firmware-7ec8fe8d61ea56b632d8b02bae5d847a3f031771.zip
Experimental init delay
Diffstat (limited to 'src/modules/ekf_att_pos_estimator')
-rw-r--r--src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
index ba8a58f65..d96ae5637 100644
--- a/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
+++ b/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
@@ -1021,7 +1021,7 @@ FixedwingEstimator::task_main()
* PART TWO: EXECUTE THE FILTER
**/
- if (_baro_init && _gyro_valid && _accel_valid && _mag_valid) {
+ if (hrt_absolute_time() > 2 * 1000 * 1000 && _baro_init && _gyro_valid && _accel_valid && _mag_valid) {
float initVelNED[3];