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;