MAVLink Custom Message - Where is MAVLINK_DIALECT?

Dear PX4 Friends,

I am trying to create a custom MAVlink message. I follow instructions on defining-custom-mavlink-messages. These instructions say (quote):

There are are number of XML dialect files in /mavlink/messages/1.0/. The dialect that is built is specified using the variable MAVLINK_DIALECT in /src/modules/mavlink/CMakeLists.txt; by default this is development.xml. The files are generated into the build directory: /build/<build target>/mavlink/

I am not able to find the variable MAVLINK_DIALECT in CMakeList.txt. That string does seem to exist in that file.

Any hint greatly appreciated.
Thanks in advance :slight_smile:

Hi!
You might be able to configure the MAVLINK_DIALECT using Kconfig:

You can set it for you board in default.px4board, e.g. for SITL:

You should also be able to set it using menuconfig which can edit the Kconfig options but I couldn’t find just yet.

Thanks for your help. I will try.