From a9185986ab05bd53327da318369597d557706008 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 7 May 2014 08:50:35 +0200 Subject: [PATCH] Add MAVLink message container to valid meta types for cross-thread buffering --- src/comm/MAVLinkProtocol.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index be6e85b12..8ecb5194c 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -17,6 +17,7 @@ #include #include #include +#include #include "MAVLinkProtocol.h" #include "UASInterface.h" @@ -36,6 +37,7 @@ #include #endif +Q_DECLARE_METATYPE(mavlink_message_t) /** * The default constructor will create a new MAVLink object sending heartbeats at @@ -58,6 +60,8 @@ MAVLinkProtocol::MAVLinkProtocol() : versionMismatchIgnore(false), systemId(QGC::defaultSystemId) { + qRegisterMetaType("mavlink_message_t"); + m_authKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; loadSettings(); //start(QThread::LowPriority); -- 2.22.0