Skip to content

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

@rmackay9

Description

@rmackay9

In this year's Japan Innovation Challenge (JIC) our vehicle uses Ethernet to connect the autopilot, camera and companion computer (setup as described here). With this setup the autopilot creates a mavlink connection using these params:

  • NET_P2_TYPE = 2 (UDP Server)
  • NET_P2_TYPE = 2 (MAVLink 2)
  • NET_P2_IP0/1/2/3/Port: 0,0,0,0,14560

BlueOS running on the RPI then connects to the autopilot as a UDP Client. The GCS connects to BlueOS again as a UDP Client.

We've noticed that the set-message-interval.lua example script does not seem to work no matter what value we set the "serial_port" to. The regular set-message-interval run from a GCS (e.g. Mission Planner) does work however.

I don't think the problem is within the script though, instead I think maybe there's an issue in either GCS_MAVLink:: get_channel_from_port_number() or AP_SerialManager::get_serial_by_id() function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions