From 2a79ddd621355690e174f134e3421e7bf67bddb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 12 May 2017 14:39:25 +0200 Subject: [PATCH] MavlinkLogHandler: increase MAX_BYTES_SEND to 256kb It increases the throughput on UDP (from around 2Mb to 2.5Mb), while the rate via USB & telemetry stay the same. --- src/modules/mavlink/mavlink_log_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mavlink/mavlink_log_handler.cpp b/src/modules/mavlink/mavlink_log_handler.cpp index 6735a176f9..5756e1f644 100644 --- a/src/modules/mavlink/mavlink_log_handler.cpp +++ b/src/modules/mavlink/mavlink_log_handler.cpp @@ -133,7 +133,7 @@ void MavlinkLogHandler::send(const hrt_abstime /*t*/) { //-- An arbitrary count of max bytes in one go (one of the two below but never both) -#define MAX_BYTES_SEND 64 * 1024 +#define MAX_BYTES_SEND 256 * 1024 size_t count = 0; //-- Log Entries