Skip to content

Commit

Permalink
mavlink: send out parameters faster over UDP
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Mar 17, 2016
1 parent ce7dad8 commit 3ded0e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/modules/mavlink/mavlink_main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved.
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -35,7 +35,7 @@
* MAVLink 1.0 protocol implementation.
*
* @author Lorenz Meier <lm@inf.ethz.ch>
* @author Julian Oes <joes@student.ethz.ch>
* @author Julian Oes <julian@oes.ch>
* @author Anton Babushkin <anton.babushkin@me.com>
*/

Expand Down Expand Up @@ -1871,6 +1871,11 @@ Mavlink::task_main(int argc, char *argv[])
send_autopilot_capabilites();
}

/* send parameters faster over UDP */
if (get_protocol() == UDP) {
configure_stream("PARAM_VALUE", 100000.0f);
}

while (!_task_should_exit) {
/* main loop */
usleep(_main_loop_delay);
Expand Down

0 comments on commit 3ded0e3

Please sign in to comment.