修改线程的退出,修改ins2 time显示到界面

This commit is contained in:
hm
2020-12-14 11:09:41 +08:00
parent daf8e618bb
commit 543dd019f9
10 changed files with 368 additions and 346 deletions
+9 -5
View File
@@ -102,10 +102,6 @@ MavLinkNode::MavLinkNode(QObject *parent) : QObject(parent)
isCommunicationLost = false;
//showMessage(tr("解锁才能有航迹,需要修正,示波器显示时间不对"));
}
MavLinkNode::~MavLinkNode()
@@ -189,6 +185,10 @@ MavLinkNode::~MavLinkNode()
thread->wait();
}
QThread::msleep(200);
delete thread;
thread = nullptr;
@@ -328,7 +328,11 @@ void MavLinkNode::stop()
running_flag = false;
qDebug() << "thread stop" << running_flag;
qDebug() << "thread stop"
<< QThread::currentThreadId()
<< QThread::currentThread()
<< "running state:"
<< running_flag;
}
else
{