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.
Hi friend , did you custom mavlink message successfully? I tried to define a message , but I couldn’t capture data on the serial port. Do you have any tips?
You need to make sure the custom dialect is generated and built for all components, so probably PX4 as well as the QGC (or MAVSDK, MAVROS) or whatever you’re using on the ground.