1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-12 19:10:27 +03:00
inav/lib/main/MAVLink
2023-12-14 22:55:09 -03:00
..
common fix telemetry name 2023-12-14 22:55:09 -03:00
minimal MAVLink V2 library (auto-generated) 2021-02-28 18:26:02 +00:00
.gitignore mavgen library generator scripts 2021-02-28 18:25:07 +00:00
checksum.h MAVLink V2 library (auto-generated) 2021-02-28 18:26:02 +00:00
generate.bat mavgen library generator scripts 2021-02-28 18:25:07 +00:00
generate.sh Remove MAVLink inline modifiers 2021-04-06 11:42:25 +01:00
mavlink_conversions.h MAVLink V2 library (auto-generated) 2021-02-28 18:26:02 +00:00
mavlink_get_info.h MAVLink V2 library (auto-generated) 2021-02-28 18:26:02 +00:00
mavlink_helpers.h [SITL OSX] Fix some of the warnings and add macosx SITL build to workflows (#9063) 2023-05-25 13:12:03 +02:00
mavlink_sha256.h MAVLink V2 library (auto-generated) 2021-02-28 18:26:02 +00:00
mavlink_types.h MAVLink V2 library (auto-generated) 2021-02-28 18:26:02 +00:00
protocol.h Remove MAVLink inline modifiers 2021-04-06 11:42:25 +01:00
README.md Remove MAVLink inline modifiers 2021-04-06 11:42:25 +01:00

MAVLink Generator (mavgen)

This directory contains the MAVLink library and scripts to automatically generate it from MAVLink definitions.

In order to run it, you will need Python and some other libraries installed.

Then, run the appropriate script (generate.sh for Linux, generate.bat for Windows) to automatically re-generate the library.

IMPORTANT NOTE

By default, the MAVLink library declares all of its functions as inline, which results in common functions being duplicated many times. After generating the library, protocol.h must be modified, and all inline keywords removed. This is performed automatically by generate.sh, but not by generate.bat as Windows batch files do not have an equivalent to sed. So, this must be done manually on Windows.