Browse Source

Consider any message from vehicle comm lost restart

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

6
src/Vehicle/Vehicle.cc

@ -493,6 +493,10 @@ void Vehicle::_mavlinkMessageReceived(LinkInterface* link, mavlink_message_t mes
} }
} }
// Mark this vehicle as active
_connectionActive();
// Give the plugin a change to adjust the message contents // Give the plugin a change to adjust the message contents
if (!_firmwarePlugin->adjustIncomingMavlinkMessage(this, &message)) { if (!_firmwarePlugin->adjustIncomingMavlinkMessage(this, &message)) {
return; return;
@ -900,8 +904,6 @@ void Vehicle::_handleHeartbeat(mavlink_message_t& message)
return; return;
} }
_connectionActive();
mavlink_heartbeat_t heartbeat; mavlink_heartbeat_t heartbeat;
mavlink_msg_heartbeat_decode(&message, &heartbeat); mavlink_msg_heartbeat_decode(&message, &heartbeat);

Loading…
Cancel
Save