修复转发bug

This commit is contained in:
2024-09-19 10:12:11 +08:00
parent e6127300a4
commit a5fc50e704
3 changed files with 17 additions and 9 deletions
+9 -5
View File
@@ -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)
{