How to coordinate MAVLink / DroneCAN DSDL changes with PX4's pinned submodule versions?

Hi all,

We built our own sensor product and use it on our vehicles with PX4. We would like to add support for it, so others can benefit as well. However the change is not only in the PX4 repo.

It needs:

  • New MAVLink message
  • New DroneCAN DSDL message

PX4 uses submodules for MAVLink and DSDL, and the pinned versions are far behind the upstream master. So even if my MAVLink/DSDL PRs are merged, I don’t know how to get them into PX4.

My questions:

  1. What is the right order? Should I merge the MAVLink/DSDL PRs first, then open a PX4 PR with a submodule bump? Or open them in parallel?
  2. Can I include the submodule bump in my feature PR, or should it be a separate PR?
  3. Why is the MAVLink submodule so far behind? Is there a known blocker for updating it?
  4. Is there a way to use experimental messages (like development.xml) while the PX4 PR is in review?
  5. Is there any special process for DroneCAN messages?

If there is a doc or an old PR that did something similar, please share it. I’m happy to help improve the docs afterwards.

You’ll need to open upstream PRs for both messages. It can take quite a while to get the messages merged. If they’re not generic there’s almost no chance of getting them accepted upstream (unfortunately)

Mavlink development messages can be enabled using the <target>_mavlink-dev.px4board for your board.

Thanks, that clarifies the upstream requirement.

For implementation, I would probably keep the work split into three linked tracks:

  1. upstream MAVLink message PR
  2. upstream DroneCAN DSDL PR
  3. PX4 feature/integration PR tested against the exact upstream commits

During review, the PX4 branch can use the MAVLink development dialect via the board’s *_mavlink-dev.px4board target, so the integration does not need to wait for a released/common dialect just to be exercised.

The one thing I would still confirm with maintainers is whether they prefer the eventual MAVLink/DSDL submodule pointer updates inside the feature PR or as separate bump PRs.

For reproducibility, I’d also pin the exact upstream commit SHAs in the PX4 integration test notes. That avoids ambiguity while the upstream PRs are still moving.

If you publish the MAVLink/DSDL PRs, feel free to link them here — I’d be interested in following the integration path.