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.
This commit is contained in:
Matthias Grob 2026-03-14 09:57:07 +01:00 committed by GitHub
parent 50dabd8fae
commit 0e9d563570
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);