Mavlink Library C Messages

Hello
I have a question regarding the Mavlink C library.
Currently I’m using the Mavlink Library from Juan Pedro MAVLink and Arduino: step by step - Blog - ArduPilot Discourse which is really very helpful but I need a standard Mavlink status message which is not inside the common folder of this library.

Does anyone know how to create the library message .h file?
Can I copy paste the h. file from an other C library?

Thanks in advance!

1 Like
git clone https://github.com/ardupilot/mavlink
cd mavlink
git submodule update --init 
python mavgenerate.py

select the necessary definition xml from mavlink_definitions folder
select protocol 2.0
select output directory
select your language (C)
and press generate…

2 Likes