From 8ee00cc618544be95ffe7a60a10e736d6732d4cc Mon Sep 17 00:00:00 2001 From: bresch Date: Tue, 1 Sep 2026 11:12:37 +0200 Subject: [PATCH] fix(ekf2): stop publishing a placeholder attitude in replay Until the attitude became valid, replay mode published a zero-filled vehicle_attitude carrying a null quaternion, so a replayed log opened with samples a reader has to know to discard. Assisted-by: Claude:claude-opus-5[1m] Signed-off-by: bresch --- src/modules/ekf2/EKF2.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/ekf2/EKF2.cpp b/src/modules/ekf2/EKF2.cpp index 66a6591cf7e..b450c16f850 100644 --- a/src/modules/ekf2/EKF2.cpp +++ b/src/modules/ekf2/EKF2.cpp @@ -1199,12 +1199,6 @@ void EKF2::PublishAttitude(const hrt_abstime ×tamp) _ekf.get_quat_reset(&att.delta_q_reset[0], &att.quat_reset_counter); att.timestamp = _replay_mode ? timestamp : hrt_absolute_time(); _attitude_pub.publish(att); - - } else if (_replay_mode) { - // in replay mode we have to tell the replay module not to wait for an update - // we do this by publishing an attitude with zero timestamp - vehicle_attitude_s att{}; - _attitude_pub.publish(att); } }