Packets needed for takeoff

Hey folks,

Could anybody write down the sequence of MAVLink packets for taking off the vehicle?

You need to ARM and then either send NAV_TAKEOFF or a mission with a takeoff waypoint and mode change.

Send these as COMMAND_LONG

MAV_CMD_COMPONENT_ARM_DISARM
MAV_CMD_NAV_TAKEOFF

Thanks. And if i use HIL, it will be the same?

Those commands yes, but depending on what you’re doing if you need to send a HEARTBEAT you’ll have to add the HIL flag.

http://mavlink.org/messages/common#HEARTBEAT

1 Like