A heap-free MAVLink 2 code generator with generated tests, checked against pymavlink: feedback welcome

Hi all,

I have been building WireForge, a tool that turns a description of a binary protocol into C++17 or C99 code (no heap, no exceptions) together with a GoogleTest project that checks the generated code against an independent reference codec.

Version 0.3.0 adds a MAVLink 2 model:

  • the v2 frame with the 24-bit message id
  • payloads without their trailing zero bytes, and extension fields (GPS_RAW_INT, COMMAND_ACK)
  • HEARTBEAT, ATTITUDE, GLOBAL_POSITION_INT, COMMAND_LONG
  • tested byte for byte against pymavlink in both directions, plus a Wireshark dissector with checksum verification

The tutorial in the repository (docs/tutorial) builds a small vehicle in C++ that sends HEARTBEAT, ATTITUDE and VFR_HUD over UDP and answers COMMAND_LONG; a ground station written with pymavlink checks it.

To be clear about the scope: this is not a replacement for mavgen or the official libraries. It covers part of the common message set and refuses signed frames. It is meant for systems where MAVLink is one of several protocols (a payload, a sensor bus, your own ICD), or where you want generated tests and coverage for the messages you use. Reading the XML dialects directly is the next step I am working on.

One-minute video:

Repository: GitHub - oguzhankynk/wireforge: Describe a binary protocol once (YAML, web UI or AI agent) and get allocation-free C++17/C99 code with the tests that prove it. MAVLink 2, Modbus, CAN/J1939, UBX, CRSF or your own ICD. · GitHub

I would be grateful for feedback from people who write MAVLink code on companion computers or microcontrollers: what would you need before trying something like this?

License note: free for development, evaluation and CI; the generated code and its runtime are MIT; production use of the generator needs a commercial license.