Skip to content

Conversation

tpwrules
Copy link
Contributor

Despite the implications of the example and the
MAVLINK_COMM_NUM_BUFFERS limit in the description, the actual first argument to this function is the serial port number.

Correct the argument range to allow any possible port number (no need to limit as the list is sparse) and enhance the example to give more port numbers.

Closes #31266

Despite the implications of the example and the
`MAVLINK_COMM_NUM_BUFFERS` limit in the description, the actual first
argument to this function is the serial port number.

Correct the argument range to allow any possible port number (no need to
limit as the list is sparse) and enhance the example to give more port
numbers.
@tpwrules tpwrules requested review from IamPete1 and rmackay9 October 14, 2025 00:51
Copy link
Contributor

@rmackay9 rmackay9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this, it works!!

With this change, my modified version of the set-message-interval.lua script (using port=22) is finally able to set the rates on just the messages I need for the upcoming JIC event, thanks!

Image

@tpwrules tpwrules merged commit da676fd into ArduPilot:master Oct 14, 2025
107 checks passed
@tpwrules tpwrules deleted the pr/net-lua-channel-set branch October 14, 2025 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scripting/GCS_MAVLink: set-message-interval doesn't appear to work for some Network ports

4 participants