From 2a0fe169e6aef4dabbf4056ab4f3027d7461961a Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 26 Feb 2020 01:36:19 +0100 Subject: [PATCH] logger: disable logger_status publiation in replay builds - this is disabled in replay builds to ensure all data in ekf2 replay logs only contains the same time range, otherwise the plots can be unreadable using common tools - fixes #14230 --- src/modules/logger/logger.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/logger/logger.cpp b/src/modules/logger/logger.cpp index 0e12da9314..7a5cc05a2e 100644 --- a/src/modules/logger/logger.cpp +++ b/src/modules/logger/logger.cpp @@ -792,7 +792,12 @@ void Logger::run() } } + +#ifndef ORB_USE_PUBLISHER_RULES + // publish logger status + // - this is disabled in replay builds to ensure all data in ekf2 replay logs only contain + // the same time range, otherwise the plots can be unreadable using common tools if (hrt_elapsed_time(&_logger_status_last) >= 1_s) { for (int i = 0; i < (int)LogType::Count; ++i) { @@ -822,6 +827,8 @@ void Logger::run() _logger_status_last = hrt_absolute_time(); } +#endif // !ORB_USE_PUBLISHER_RULES + /* release the log buffer */ _writer.unlock();