switch to _ekf->baroHgt for pressure alt in ekf

This commit is contained in:
Andreas Antener
2015-11-24 14:04:34 +01:00
parent 82cf8d6ecd
commit 59f80581aa
@@ -1016,7 +1016,7 @@ void AttitudePositionEstimatorEKF::publishGlobalPosition()
} }
/* baro altitude */ /* baro altitude */
_global_pos.pressure_alt = _baro_alt_filt; _global_pos.pressure_alt = _ekf->baroHgt;
_global_pos.yaw = _local_pos.yaw; _global_pos.yaw = _local_pos.yaw;