Commit a9185986 authored by Lorenz Meier's avatar Lorenz Meier

Add MAVLink message container to valid meta types for cross-thread buffering

parent 15812f3a
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <QSettings> #include <QSettings>
#include <QDesktopServices> #include <QDesktopServices>
#include <QtEndian> #include <QtEndian>
#include <QMetaType>
#include "MAVLinkProtocol.h" #include "MAVLinkProtocol.h"
#include "UASInterface.h" #include "UASInterface.h"
...@@ -36,6 +37,7 @@ ...@@ -36,6 +37,7 @@
#include <google/protobuf/descriptor.h> #include <google/protobuf/descriptor.h>
#endif #endif
Q_DECLARE_METATYPE(mavlink_message_t)
/** /**
* The default constructor will create a new MAVLink object sending heartbeats at * The default constructor will create a new MAVLink object sending heartbeats at
...@@ -58,6 +60,8 @@ MAVLinkProtocol::MAVLinkProtocol() : ...@@ -58,6 +60,8 @@ MAVLinkProtocol::MAVLinkProtocol() :
versionMismatchIgnore(false), versionMismatchIgnore(false),
systemId(QGC::defaultSystemId) systemId(QGC::defaultSystemId)
{ {
qRegisterMetaType<mavlink_message_t>("mavlink_message_t");
m_authKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; m_authKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
loadSettings(); loadSettings();
//start(QThread::LowPriority); //start(QThread::LowPriority);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment