Skip to content
Snippets Groups Projects
Commit 779bec6e authored by Niccolò Betto's avatar Niccolò Betto Committed by Alberto Nidasio
Browse files

[Mavlink] Handle WACK messages

OutgoingMessagessViewer now paints messages that received a WACK reply as white.
parent 2ab42b83
No related branches found
No related tags found
No related merge requests found
magic_enum @ dae6bbf1
Subproject commit dae6bbf16c363e9ead4e628a47fdb02956a634f3
......@@ -37,18 +37,15 @@ OutgoingMessagesViewerModule::OutgoingMessagesViewerModule()
{ handleMsg(message); });
MessageBroker::getInstance().subscribe(
Filter::fromString(SkywardHubStrings::mavlink_received_msg_ACK_topic),
this,
[this](const Message& message, const Filter& filter)
this, [this](const Message& message, const Filter& filter)
{ handleAck(message); });
MessageBroker::getInstance().subscribe(
Filter::fromString(SkywardHubStrings::mavlink_received_msg_NACK_topic),
this,
[this](const Message& message, const Filter& filter)
this, [this](const Message& message, const Filter& filter)
{ handleNack(message); });
MessageBroker::getInstance().subscribe(
Filter::fromString(SkywardHubStrings::mavlink_received_msg_WACK_topic),
this,
[this](const Message& message, const Filter& filter)
this, [this](const Message& message, const Filter& filter)
{ handleWack(message); });
timer = new QTimer(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment