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.
This commit is contained in:
Beat Küng
2016-10-12 17:01:13 +02:00
committed by Lorenz Meier
parent 6999bb3e9a
commit 8e0d548f51
+2 -1
View File
@@ -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;