|
|
|
@ -64,7 +64,7 @@ MAVLinkProtocol::MAVLinkProtocol() :
@@ -64,7 +64,7 @@ MAVLinkProtocol::MAVLinkProtocol() :
|
|
|
|
|
|
|
|
|
|
m_authKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; |
|
|
|
|
loadSettings(); |
|
|
|
|
//start(QThread::LowPriority);
|
|
|
|
|
moveToThread(this); |
|
|
|
|
// Start heartbeat timer, emitting a heartbeat at the configured rate
|
|
|
|
|
connect(heartbeatTimer, SIGNAL(timeout()), this, SLOT(sendHeartbeat())); |
|
|
|
|
heartbeatTimer->start(1000/heartbeatRate); |
|
|
|
@ -81,6 +81,8 @@ MAVLinkProtocol::MAVLinkProtocol() :
@@ -81,6 +81,8 @@ MAVLinkProtocol::MAVLinkProtocol() :
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
start(QThread::HighPriority); |
|
|
|
|
|
|
|
|
|
emit versionCheckChanged(m_enable_version_check); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -166,6 +168,20 @@ MAVLinkProtocol::~MAVLinkProtocol()
@@ -166,6 +168,20 @@ MAVLinkProtocol::~MAVLinkProtocol()
|
|
|
|
|
delete m_logfile; |
|
|
|
|
m_logfile = NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Tell the thread to exit
|
|
|
|
|
quit(); |
|
|
|
|
// Wait for it to exit
|
|
|
|
|
wait(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Runs the thread |
|
|
|
|
* |
|
|
|
|
**/ |
|
|
|
|
void MAVLinkProtocol::run() |
|
|
|
|
{ |
|
|
|
|
exec(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QString MAVLinkProtocol::getLogfileName() |
|
|
|
|