Skip to content

Commit d125a50

Browse files
committed
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.
1 parent f57bc79 commit d125a50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ExtLibs/ArduPilot/CurrentState.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,11 @@ private void Parent_OnPacketReceived(object sender, MAVLink.MAVLinkMessage mavLi
20282028
{
20292029
if (mavLinkMessage.sysid == parent.sysid && mavLinkMessage.compid == parent.compid
20302030
|| mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.RADIO // propagate the RADIO/RADIO_STATUS message across all devices on this link
2031-
|| mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.RADIO_STATUS)
2031+
|| mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.RADIO_STATUS
2032+
|| ( mavLinkMessage.sysid == parent.sysid // Propagate NAMED_VALUE_FLOAT messages across all components within the same device
2033+
&& mavLinkMessage.msgid == (uint)MAVLink.MAVLINK_MSG_ID.NAMED_VALUE_FLOAT
2034+
&& Settings.Instance.GetBoolean("propagateNamedFloats", true)) )
2035+
20322036
{
20332037
switch (mavLinkMessage.msgid)
20342038
{

0 commit comments

Comments
 (0)