From 3a38e29b3959d5f3e17aae7f2ab3537db6911575 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Wed, 15 Jun 2016 13:54:07 -0700 Subject: [PATCH] GCS_MAVLink: do not auto-forward ADSB_VEHICLE packets --- libraries/GCS_MAVLink/MAVLink_routing.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/GCS_MAVLink/MAVLink_routing.cpp b/libraries/GCS_MAVLink/MAVLink_routing.cpp index f82de94ef0..376dc39f53 100644 --- a/libraries/GCS_MAVLink/MAVLink_routing.cpp +++ b/libraries/GCS_MAVLink/MAVLink_routing.cpp @@ -114,6 +114,11 @@ bool MAVLink_routing::check_and_forward(mavlink_channel_t in_channel, const mavl return true; } + if (msg->msgid == MAVLINK_MSG_ID_ADSB_VEHICLE) { + // ADSB packets are not forwarded, they have their own stream rate + return true; + } + // extract the targets for this packet int16_t target_system = -1; int16_t target_component = -1;