mavlink parameters: try to send 5 params at once on USB & UDP connections

This further speeds up param loading.

On Pixracer via USB, it's possible to send up to 11 at once before the TX
buffer gets full, so there is still enough free bandwidth left.
This commit is contained in:
Beat Küng
2017-03-14 21:30:04 +01:00
committed by Lorenz Meier
parent 2873d973de
commit 45af77a543
2 changed files with 27 additions and 2 deletions
+4
View File
@@ -91,6 +91,10 @@ protected:
void send(const hrt_abstime t);
/// send a single param if a PARAM_REQUEST_LIST is in progress
/// @return true if a parameter was sent
bool send_one();
int send_param(param_t param, int component_id = -1);
// Item of a single-linked list to store requested uavcan parameters