From 0e9d5635704238666f8a7448ca2958492cf25eff Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Sat, 14 Mar 2026 09:57:07 +0100 Subject: [PATCH] fix(mavlink): limit ADSB transponder reporting to 5Hz to not spam the link (#26733) Note that internally higher update rates are likely also not useful but this needs to be carefully checked with the interface. It seems like the ADSB driver keeps track of what to publish when which is not a scalable/well-testable solution. --- src/modules/mavlink/mavlink_main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/mavlink/mavlink_main.cpp b/src/modules/mavlink/mavlink_main.cpp index d1f4686f29..719cb9160d 100644 --- a/src/modules/mavlink/mavlink_main.cpp +++ b/src/modules/mavlink/mavlink_main.cpp @@ -1449,7 +1449,7 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream) switch (_mode) { case MAVLINK_MODE_NORMAL: - configure_stream_local("ADSB_VEHICLE", unlimited_rate); + configure_stream_local("ADSB_VEHICLE", 5.f); configure_stream_local("ALTITUDE", 1.0f); configure_stream_local("ATTITUDE", 15.0f); configure_stream_local("ATTITUDE_QUATERNION", 10.0f); @@ -1530,7 +1530,7 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream) configure_stream_local("OBSTACLE_DISTANCE", 10.0f); configure_stream_local("ODOMETRY", 30.0f); - configure_stream_local("ADSB_VEHICLE", unlimited_rate); + configure_stream_local("ADSB_VEHICLE", 5.f); configure_stream_local("ATTITUDE_QUATERNION", 50.0f); configure_stream_local("ATTITUDE_TARGET", 10.0f); configure_stream_local("AVAILABLE_MODES", 0.3f); @@ -1611,7 +1611,7 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream) configure_stream_local("OBSTACLE_DISTANCE", 10.0f); configure_stream_local("ODOMETRY", 30.0f); - configure_stream_local("ADSB_VEHICLE", unlimited_rate); + configure_stream_local("ADSB_VEHICLE", 5.f); configure_stream_local("ATTITUDE_TARGET", 2.0f); configure_stream_local("AVAILABLE_MODES", 0.3f); configure_stream_local("BATTERY_STATUS", 0.5f); @@ -1692,7 +1692,7 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream) configure_stream_local("MOUNT_ORIENTATION", 10.0f); configure_stream_local("ODOMETRY", 30.0f); - configure_stream_local("ADSB_VEHICLE", unlimited_rate); + configure_stream_local("ADSB_VEHICLE", 5.f); configure_stream_local("ALTITUDE", 10.0f); configure_stream_local("ATTITUDE", 50.0f); configure_stream_local("ATTITUDE_QUATERNION", 50.0f); @@ -1800,7 +1800,7 @@ Mavlink::configure_streams_to_default(const char *configure_single_stream) configure_stream_local("ESC_INFO", 1.0f); configure_stream_local("ESC_STATUS", 5.0f); - configure_stream_local("ADSB_VEHICLE", unlimited_rate); + configure_stream_local("ADSB_VEHICLE", 5.f); configure_stream_local("ATTITUDE_TARGET", 2.0f); configure_stream_local("AVAILABLE_MODES", 0.3f); configure_stream_local("BATTERY_STATUS", 0.5f);