Browse Source

MavlinkConsoleController: add target sysid/compid

The SERIAL_CONSOLE message now includes a target_system and
target_comonent which prevents serial messages being sent to the wrong
vehicle in case there are multiple vehicles connected.

More background:
https://github.com/mavlink/mavlink/pull/1725
QGC4.4
Julian Oes 3 years ago committed by Don Gagne
parent
commit
6cec60a55a
  1. 2
      libs/mavlink/include/mavlink/v2.0
  2. 3
      src/AnalyzeView/MavlinkConsoleController.cc

2
libs/mavlink/include/mavlink/v2.0

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 9df7c1f4c99fe08505e8985f3ab28e95d5d05bd0
Subproject commit 92b1a43468e8737da2d4cc1e72304e6443dcfdd3

3
src/AnalyzeView/MavlinkConsoleController.cc

@ -158,7 +158,8 @@ MavlinkConsoleController::_sendSerialData(QByteArray data, bool close) @@ -158,7 +158,8 @@ MavlinkConsoleController::_sendSerialData(QByteArray data, bool close)
0,
0,
chunk.size(),
reinterpret_cast<uint8_t*>(chunk.data()));
reinterpret_cast<uint8_t*>(chunk.data()),
_vehicle->id(), _vehicle->defaultComponentId());
_vehicle->sendMessageOnLinkThreadSafe(sharedLink.get(), msg);
data.remove(0, chunk.size());
}

Loading…
Cancel
Save