mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 05:10:35 +08:00
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
This commit is contained in:
committed by
Paul Riseborough
parent
7e00dcd382
commit
2a0fe169e6
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user