Skip to content

Commit

Permalink
Propagate Named Float messages accross components with same sysid. Al…
Browse files Browse the repository at this point in the history
…low display data sent by external components viaa NAMED_FLOAT messages without change component in the connect window.
  • Loading branch information
EosBandi authored and meee1 committed Nov 8, 2023
1 parent f57bc79 commit c69793a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ExtLibs/ArduPilot/CurrentState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c69793a

Please sign in to comment.