Commit a55c7e67 authored by Lorenz Meier's avatar Lorenz Meier

Added proper signal for unknown messages

parent cbfff6d7
......@@ -1532,15 +1532,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
{
unknownPackets.append(message.msgid);
// XXX Do NOT show this to users, as they will attribute
// completely random problems to this message and won't
// even bother to look up what the message actually is.
// QString errString = tr("UNABLE TO DECODE MESSAGE NUMBER %1").arg(message.msgid);
// //GAudioOutput::instance()->say(errString+tr(", please check console for details."));
// emit textMessageReceived(uasId, message.compid, 255, errString);
// std::cout << "Unable to decode message from system " << std::dec << static_cast<int>(message.sysid) << " with message id:" << static_cast<int>(message.msgid) << std::endl;
// //qDebug() << std::cerr << "Unable to decode message from system " << std::dec << static_cast<int>(message.acid) << " with message id:" << static_cast<int>(message.msgid) << std::endl;
emit packetNotHandled(uasId, message.compid, message.msgid);
}
}
break;
......
......@@ -643,6 +643,9 @@ signals:
// HOME POSITION / ORIGIN CHANGES
void homePositionChanged(int uas, double lat, double lon, double alt);
/** @brief The system received an unknown message, which it could not interpret */
void unknownPacketReceived(int uas, int component, int messageid);
protected:
// TIMEOUT CONSTANTS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment