mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 16:13:35 +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 */
|
/* 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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user