修改线程的退出,修改ins2 time显示到界面
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user