Browse Source

Allow RADIO_STATUS message to pass through to vehicle

QGC4.4
Don Gagne 8 years ago
parent
commit
3afbd02935
  1. 6
      src/Vehicle/Vehicle.cc

6
src/Vehicle/Vehicle.cc

@ -464,9 +464,11 @@ void Vehicle::resetCounters() @@ -464,9 +464,11 @@ void Vehicle::resetCounters()
void Vehicle::_mavlinkMessageReceived(LinkInterface* link, mavlink_message_t message)
{
if (message.sysid != _id && message.sysid != 0) {
return;
// We allow RADIO_STATUS messages which come from a link the vehicle is using to pass through and be handled
if (!(message.msgid == MAVLINK_MSG_ID_RADIO_STATUS && _containsLink(link))) {
return;
}
}
if (!_containsLink(link)) {

Loading…
Cancel
Save