From 8e0d548f51d433a472dfc4ba1f655df3e766c302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 12 Oct 2016 17:01:13 +0200 Subject: [PATCH] logger: increase default queue size for mavlink logging to 14 tested on Pixracer: 14 still produces some dropouts once in a while, but I think it's a fair tradefoff between RAM usage & dropouts. The queue needs about 3.5KB of RAM. When topic sizes/logging rates change, this will have to be reevaluated. --- src/modules/logger/logger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/logger/logger.cpp b/src/modules/logger/logger.cpp index 593c0d7e7e..03945df277 100644 --- a/src/modules/logger/logger.cpp +++ b/src/modules/logger/logger.cpp @@ -259,7 +259,8 @@ void Logger::run_trampoline(int argc, char *argv[]) bool log_until_shutdown = false; bool error_flag = false; bool log_name_timestamp = false; - unsigned int queue_size = 5; + unsigned int queue_size = 14; //TODO: we might be able to reduce this if mavlink polled on the topic and/or + // topic sizes get reduced LogWriter::Backend backend = LogWriter::BackendFile; int myoptind = 1;