ekf2: fix published terrain reset delta (#27130)

This commit is contained in:
Eurus
2026-04-20 10:57:23 +08:00
committed by GitHub
parent 385828fcb3
commit dd4213310f
+1 -1
View File
@@ -1361,7 +1361,7 @@ void EKF2::PublishGlobalPosition(const hrt_abstime &timestamp)
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