From 59f80581aa4be158a956d60ea71d45f5bb78a558 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Mon, 23 Nov 2015 22:35:03 +0100 Subject: [PATCH] switch to _ekf->baroHgt for pressure alt in ekf --- .../ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 23bc784daf..9727f21c06 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 @@ -1016,7 +1016,7 @@ void AttitudePositionEstimatorEKF::publishGlobalPosition() } /* baro altitude */ - _global_pos.pressure_alt = _baro_alt_filt; + _global_pos.pressure_alt = _ekf->baroHgt; _global_pos.yaw = _local_pos.yaw;