diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index be6e85b12c554da19c4936b8c25635a313faf277..8ecb5194c20f55cb6029f4f51e8b8bc65f045d4a 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);