Browse Source

GCS_MAVLink: do not auto-forward ADSB_VEHICLE packets

master
Tom Pittenger 9 years ago
parent
commit
3a38e29b39
  1. 5
      libraries/GCS_MAVLink/MAVLink_routing.cpp

5
libraries/GCS_MAVLink/MAVLink_routing.cpp

@ -114,6 +114,11 @@ bool MAVLink_routing::check_and_forward(mavlink_channel_t in_channel, const mavl @@ -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;

Loading…
Cancel
Save