Skip to content

Update pymavlink: Fix buffer alignment on ESP32/ARM#424

Open
Bwooce wants to merge 2 commits intoArduPilot:masterfrom
Bwooce:fix-esp32-arm-buffer-alignment
Open

Update pymavlink: Fix buffer alignment on ESP32/ARM#424
Bwooce wants to merge 2 commits intoArduPilot:masterfrom
Bwooce:fix-esp32-arm-buffer-alignment

Conversation

@Bwooce
Copy link
Copy Markdown

@Bwooce Bwooce commented Sep 1, 2025

Summary

Updates pymavlink submodule to include buffer alignment fixes for ESP32 (Xtensa) and ARM platforms.

Problem

MAVLink message corruption was observed on ESP32 platforms running ArduPilot, with symptoms including:

  • ATTITUDE messages incorrectly reporting 385 bytes instead of 28 bytes
  • Stack corruption due to unaligned memory access
  • 93-97% BAD_DATA rate on MAVLink connections

Solution

This PR updates the pymavlink submodule to include alignment fixes that ensure proper memory alignment on platforms that require it.

Related PRs

Testing

  • Tested on ESP32-S3 hardware with ArduPilot
  • MAVLink corruption issues are resolved
  • No impact on other platforms

Impact

This fix is critical for ESP32 and ARM-based flight controllers using MAVLink communication.

Updates pymavlink submodule to include buffer alignment fixes for
ESP32 (Xtensa) and ARM platforms. This resolves MAVLink message
corruption issues caused by unaligned memory access.
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.

2 participants