mavlink: reduce rate multiplier to 0.25 while sending parameters

Co-authored-by: alexcekay <alexander@auterion.com>
This commit is contained in:
Beat Küng
2025-01-22 16:32:52 +01:00
committed by Alexander Lerach
parent cfe1666add
commit bb3fd295ea
5 changed files with 25 additions and 0 deletions
+5
View File
@@ -1318,6 +1318,11 @@ Mavlink::update_rate_mult()
/* scale up and down as the link permits */
float bandwidth_mult = (float)(_datarate * mavlink_ulog_streaming_rate_inv - const_rate) / rate;
/* Reduce rate while sending parameters in low bandwidth mode */
if (sending_parameters() && _mode == Mavlink::MAVLINK_MODE_LOW_BANDWIDTH) {
bandwidth_mult = fminf(bandwidth_mult, 0.25f);
}
/* if we do not have flow control, limit to the set data rate */
if (!get_flow_control_enabled()) {
bandwidth_mult = fminf(1.0f, bandwidth_mult);