I followed the instructions here on the PX4 website to create a custom message, generating the headers and adding the new
class MavlinkStreamMyMessage to the mavlink_messages.cpp file in src/modules/mavlink. Everything compiles as expected and I get no issues. I also added the
mavlink stream line to my startup script.
However, I am unable to receive the message in pymavlink. I did make sure to copy the message definitions and regenerate the python files and ensured that my message shows up in the common.py file.
Is there something else that I have to do in order to send and receive a custom MAVLink message from a Pixhawk to a computer? Alternatively, is there any way that I can verify that the Pixhawk is indeed sending MY_MESSAGE?