From acea2f98d5df5e1b64da9a38c186f1ff65963ebc Mon Sep 17 00:00:00 2001 From: CarlOlsson Date: Tue, 7 Jun 2016 14:02:24 +0200 Subject: [PATCH] log airspeed in rpl mode even if it is not fused --- src/modules/ekf2/ekf2_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 113f8d840e..bc5b81a758 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -923,7 +923,7 @@ void Ekf2::task_main() replay.rng_timestamp = 0; } - if (fuse_airspeed) { + if (airspeed_updated) { replay.asp_timestamp = airspeed.timestamp; replay.indicated_airspeed_m_s = airspeed.indicated_airspeed_m_s; replay.true_airspeed_m_s = airspeed.true_airspeed_m_s;