Skip to content

Fix MAVLink 2 overhead byte counts - #731

Merged
hamishwillee merged 1 commit into
masterfrom
fix-mav2-overhead-bytes-184
Jul 15, 2026
Merged

Fix MAVLink 2 overhead byte counts#731
hamishwillee merged 1 commit into
masterfrom
fix-mav2-overhead-bytes-184

Conversation

@julianoes

Copy link
Copy Markdown
Contributor

Fixes #184.

The FAQ and homepage stated that MAVLink 2 has "14 bytes of overhead (27 if signing is used)". Both numbers are wrong:

  • A MAVLink 2 packet with a zero-byte payload is 12 bytes (7 single-byte header fields + 3-byte msgid + 2-byte checksum), matching "The minimum packet length is 12 bytes" already stated on the serialization page.
  • With signing, add the 13-byte signature → 25 bytes, not 27.

This updates en/about/faq.md and en/index.md accordingly.

While in the serialization table, also corrected the signature row byte range: a signature[13] field spans (n+12) to (n+24) (14 positions would be off-by-one), not (n+12) to (n+25).

The MAVLink 2 packet has 12 bytes of overhead (a zero-payload packet is
12 bytes), not 14; with signing it is 25 (12 + 13-byte signature), not 27.
Also correct the signature row byte range in the serialization table:
signature[13] spans (n+12) to (n+24), not (n+25).

Fixes #184
@julianoes
julianoes requested a review from hamishwillee July 14, 2026 21:41
@hamishwillee

Copy link
Copy Markdown
Collaborator

Thanks very much @julianoes - really good to get these old issues cleaned up.

@hamishwillee
hamishwillee merged commit 0bd56df into master Jul 15, 2026
3 checks passed
@hamishwillee
hamishwillee deleted the fix-mav2-overhead-bytes-184 branch July 15, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doc Bug: Serialization - Check minimum bytes for MAV2 message

2 participants