mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 10:10:34 +08:00
switch to _ekf->baroHgt for pressure alt in ekf
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user