mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 06:17:26 +08:00
ekf2: fix published terrain reset delta (#27130)
This commit is contained in:
@@ -1361,7 +1361,7 @@ void EKF2::PublishGlobalPosition(const hrt_abstime ×tamp)
|
||||
|
||||
float delta_hagl = 0.f;
|
||||
_ekf.get_hagl_reset(&delta_hagl, &global_pos.terrain_reset_counter);
|
||||
global_pos.delta_terrain = -delta_z;
|
||||
global_pos.delta_terrain = -delta_hagl;
|
||||
#endif // CONFIG_EKF2_TERRAIN
|
||||
|
||||
global_pos.dead_reckoning = _ekf.control_status_flags().inertial_dead_reckoning
|
||||
|
||||
Reference in New Issue
Block a user