From c69793a6abaf97fc17b90cc099cbfd391c16dced Mon Sep 17 00:00:00 2001 From: Andras Schaffer Date: Wed, 8 Nov 2023 12:39:54 +0100 Subject: [PATCH] Propagate Named Float messages accross components with same sysid. Allow display data sent by external components viaa NAMED_FLOAT messages without change component in the connect window. --- ExtLibs/ArduPilot/CurrentState.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ExtLibs/ArduPilot/CurrentState.cs b/ExtLibs/ArduPilot/CurrentState.cs index 93fb665efa..b44500cc68 100644 --- a/ExtLibs/ArduPilot/CurrentState.cs +++ b/ExtLibs/ArduPilot/CurrentState.cs @@ -2028,7 +2028,11 @@ private void Parent_OnPacketReceived(object sender, MAVLink.MAVLinkMessage mavLi { if (mavLinkMessage.sysid == parent.sysid && mavLinkMessage.compid == parent.compid || mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.RADIO // propagate the RADIO/RADIO_STATUS message across all devices on this link - || mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.RADIO_STATUS) + || mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.RADIO_STATUS + || ( mavLinkMessage.sysid == parent.sysid // Propagate NAMED_VALUE_FLOAT messages across all components within the same device + && mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.NAMED_VALUE_FLOAT + && Settings.Instance.GetBoolean("propagateNamedFloats", true)) ) + { switch (mavLinkMessage.msgid) {