From 80994911f59483f5034fc60316d25aa82021b85b Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 31 Jul 2014 06:24:50 -0700 Subject: [PATCH] Set correct component ID Need to disambiguate from video stream messages --- src/qgcunittest/MockMavlinkFileServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qgcunittest/MockMavlinkFileServer.cc b/src/qgcunittest/MockMavlinkFileServer.cc index 0a39c4885..3457a895a 100644 --- a/src/qgcunittest/MockMavlinkFileServer.cc +++ b/src/qgcunittest/MockMavlinkFileServer.cc @@ -281,7 +281,7 @@ void MockMavlinkFileServer::_emitResponse(QGCUASFileManager::Request* request) request->hdr.crc32 = QGCUASFileManager::crc32(request); - mavlink_msg_encapsulated_data_pack(250, 0, &mavlinkMessage, 0 /*_encdata_seq*/, (uint8_t*)request); + mavlink_msg_encapsulated_data_pack(250, MAV_COMP_ID_IMU, &mavlinkMessage, 0 /*_encdata_seq*/, (uint8_t*)request); emit messageReceived(NULL, mavlinkMessage); } -- 2.22.0