From 642be64cecf307bce79ed9364c2fb1c556f8e70b Mon Sep 17 00:00:00 2001 From: ndousse Date: Wed, 10 Sep 2014 11:33:45 +0200 Subject: [PATCH] Added the possibilty to see only one UAS at the time with the drop down menu after clearing the view --- src/ui/QGCMAVLinkInspector.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/QGCMAVLinkInspector.cc b/src/ui/QGCMAVLinkInspector.cc index 3dc9512..88a3367 100644 --- a/src/ui/QGCMAVLinkInspector.cc +++ b/src/ui/QGCMAVLinkInspector.cc @@ -303,6 +303,10 @@ void QGCMAVLinkInspector::receiveMessage(LinkInterface* link,mavlink_message_t m quint64 receiveTime; + + if (selectedSystemID != 0 && selectedSystemID != message.sysid) return; + if (selectedComponentID != 0 && selectedComponentID != message.compid) return; + // Create dynamically an array to store the messages for each UAS if (!uasMessageStorage.contains(message.sysid)) { @@ -478,7 +482,7 @@ void QGCMAVLinkInspector::updateField(int sysid, int msgid, int fieldid, QTreeWi { return; } - + uint8_t* m = ((uint8_t*)uasMessage)+8;