diff options
author | Johan Jansen <jnsn.johan@gmail.com> | 2015-02-10 14:56:19 +0100 |
---|---|---|
committer | Johan Jansen <jnsn.johan@gmail.com> | 2015-02-11 13:38:59 +0100 |
commit | 3d1e373e36f4831a9bb9a7569837a9ff9fcde1f4 (patch) | |
tree | acfdf074c29110470014c0182f407fcd01e8cb12 | |
parent | 66cb129d181fd8c0b038161f1d84e96b4316e0c0 (diff) | |
download | px4-firmware-3d1e373e36f4831a9bb9a7569837a9ff9fcde1f4.tar.gz px4-firmware-3d1e373e36f4831a9bb9a7569837a9ff9fcde1f4.tar.bz2 px4-firmware-3d1e373e36f4831a9bb9a7569837a9ff9fcde1f4.zip |
AttPosEKF: Fix initialization of AMSL estimation without GPS
-rw-r--r-- | src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp index fb88fa8e8..81b27ddbe 100644 --- a/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp +++ b/src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp @@ -1331,6 +1331,7 @@ void AttitudePositionEstimatorEKF::task_main() _local_pos.ref_alt = _baro_ref; _baro_ref_offset = 0.0f; _baro_gps_offset = 0.0f; + _baro_alt_filt = _baro.altitude; _ekf->InitialiseFilter(initVelNED, 0.0, 0.0, 0.0f, 0.0f); |