ArduPilot / ArduPilot/MissionPlanner
Mavlink v2_extension message error ?
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 2.9k
- Avg merge
- 19h 16m
- Merged PRs (30d)
- 4
Description
Hi.
I am parsing a message using Mavlink V2_EXTENSION.
Mavlink message definition is like that in mavlink site.
https://mavlink.io/en/messages/common.html#V2_EXTENSION
target_network uint8_t
target_system uint8_t
target_component uint8_t
message_type uint16_t
payload uint8_t[249]
but when I get a message via v2_extension structure format, message_type is placed first as 2 bytes.
var msg = packet.ToStructure();
message_type uint16_t
target_network uint8_t
target_system uint8_t
target_component uint8_t
payload uint8_t[249]
also in source mavlink.cs , message_type is in first order.
Which one is correct? or Am I misunderstood?
Thank you.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the MAVLink V2_EXTENSION definition linked in the issue, then inspect mavlink.cs and the packet.ToStructure() entry point. Compare the declared wire-field order with the structure layout and any serialization rules used there. Done means the ordering discrepancy is explained and the parser or documentation is corrected if the source is inconsistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- embedded-iot, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100