From d4ca3ebf657131eb650e503c33411954bdbf8896 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 11 Aug 2013 16:00:29 +1000 Subject: [PATCH] Plane: check for parameter send at default of 10Hz 50Hz can cause overruns, especially on PX4 which can drain the tx buffer very rapidly --- ArduPlane/GCS_Mavlink.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index b68ef181a1..0ef33a6a1f 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -846,7 +846,7 @@ const AP_Param::GroupInfo GCS_MAVLINK::var_info[] PROGMEM = { // @Range: 0 10 // @Increment: 1 // @User: Advanced - AP_GROUPINFO("PARAMS", 8, GCS_MAVLINK, streamRates[8], 50), + AP_GROUPINFO("PARAMS", 8, GCS_MAVLINK, streamRates[8], 10), AP_GROUPEND }; @@ -976,7 +976,7 @@ GCS_MAVLINK::data_stream_send(void) if (_queued_parameter != NULL) { if (streamRates[STREAM_PARAMS].get() <= 0) { - streamRates[STREAM_PARAMS].set(50); + streamRates[STREAM_PARAMS].set(10); } if (stream_trigger(STREAM_PARAMS)) { send_message(MSG_NEXT_PARAM);