修复转发bug
This commit is contained in:
@@ -241,12 +241,11 @@ MavLinkNode::MavLinkNode(QObject *parent) : ThreadTemplet(parent)
|
||||
m_heartbeat.type = 0;
|
||||
|
||||
|
||||
connect(&showInfoTimer, &QTimer::timeout, this, [this]()
|
||||
{
|
||||
infoExport(info);
|
||||
});
|
||||
showInfoTimer = new QTimer;
|
||||
showInfoTimer->setInterval(200);
|
||||
connect(showInfoTimer, &QTimer::timeout, this, &MavLinkNode::showInfoTimerTimeout, Qt::DirectConnection);
|
||||
|
||||
showInfoTimer.start(200);
|
||||
showInfoTimer->start();
|
||||
}
|
||||
|
||||
MavLinkNode::~MavLinkNode()
|
||||
@@ -2069,6 +2068,11 @@ void MavLinkNode::heartbeat(uint32_t custom_mode,uint8_t type,uint8_t autopilot,
|
||||
Send(msg);
|
||||
}
|
||||
|
||||
void MavLinkNode::showInfoTimerTimeout()
|
||||
{
|
||||
infoExport(info);
|
||||
}
|
||||
|
||||
void MavLinkNode::Transmit(QString msg)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user