switch to _ekf->baroHgt for pressure alt in ekf

This commit is contained in:
Andreas Antener 2015-11-23 22:35:03 +01:00
parent 82cf8d6ecd
commit 59f80581aa

View File

@ -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;