MAVLink message structure

Hello. I want to know the structure of the MAVLink message when I send a request to Drone, example takeoff and land. Where I can find document about it? Thank you!

What exactly are you trying to achieve? I’m not entirely sure how to answer you, there would be a lot to explain.

Have you browsed through https://mavlink.io/en/ ?

Sorry, my English skills are not good. I want to see MAVLink messages when I send a command to Drone, such as takeoff and landing. I am also looking at https://mavlink.io/en/, but I would like to learn more documents for a more specific look.

The command sent to takeoff is: https://github.com/mavlink/mavlink/blob/ddc09ce654f0923f3780a7422e14aa0d643f8a80/message_definitions/v1.0/common.xml#L1350-L1359

It’s a MAVLink COMMAND_INT or COMMAND_LONG: https://github.com/mavlink/mavlink/blob/ddc09ce654f0923f3780a7422e14aa0d643f8a80/message_definitions/v1.0/common.xml#L4993-L5022

And as an example how the bytes are put on the buffer, check:

And an example how this is used, e.g. in MAVSDK:

1 Like

Thank you very much! It will help me a lot in the process of learning about MAVLink protocol.

1 Like