Skip to content

UDP reconnect logic with PX4 #2598

@al2950

Description

@al2950

I think this issue has probably caught a few people out in the past. But when using UDP with PX4, PX4 will record the port & ip address of the first heartbeat it receives. It will then send any status and responses to this address. This address is set once, and only once, and so if you disconnect and reconnect with a different local port (on client), you will not receive any messages until the PX4 is rebooted.

Suggest adding a default port to MavSDK which it attempts to bind to, currently it is set to 0 so OS picks a 'sensible' random port.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions