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 @@
#include <QSettings>
#include <QDesktopServices>
#include <QtEndian>
#include <QMetaType>
#include "MAVLinkProtocol.h"
#include "UASInterface.h"
......@@ -36,6 +37,7 @@
#include <google/protobuf/descriptor.h>
#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>("mavlink_message_t");
m_authKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
loadSettings();
//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