# Command(take off)

**URL:** <https://discuss.cubepilot.org/t/command-take-off/8623>\
**Category:** Cube Autopilot\
**Created:** [27 March 2022 16:16 UTC](https://discuss.cubepilot.org/t/command-take-off/8623 "2022-03-27T16:16:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Perun\_Kiyev](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/perun_kiyev/32/5313_2.png) [@Perun\_Kiyev](https://discuss.cubepilot.org/u/Perun_Kiyev)\
**Post date:** [27 March 2022 16:16 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/1 "2022-03-27T16:16:05Z")

</div>

hi guys.  
I’m building an autonomous drone without a joystick. I can arm the drone but it won’t take off.  
How can I issue the take off command without a joystick?

---

<div class="post-metadata">

**Author:** ![Alvin](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/alvin/32/1000_2.png) [@Alvin](https://discuss.cubepilot.org/u/Alvin)\
**Post date:** [28 March 2022 06:10 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/2 "2022-03-28T06:10:35Z")

</div>

You can connect it to Mission Planner and right click on the map \> Takeoff \> Set altitude.  
Also please remind not having RC as failsafe to control is a bad practice. You should always have a RC as backup control.

---

<div class="post-metadata">

**Author:** ![Perun\_Kiyev](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/perun_kiyev/32/5313_2.png) [@Perun\_Kiyev](https://discuss.cubepilot.org/u/Perun_Kiyev)\
**Post date:** [28 March 2022 09:57 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/3 "2022-03-28T09:57:01Z")

</div>

Yes, you right. But I want to do it by sending command from arduino. I can send the arm command from my arduino (with mavlink protocol), but the drone does not take off even if the take off command is sent.

---

<div class="post-metadata">

**Author:** ![Alvin](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/alvin/32/1000_2.png) [@Alvin](https://discuss.cubepilot.org/u/Alvin)\
**Post date:** [29 March 2022 02:06 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/4 "2022-03-29T02:06:16Z")

</div>

Which take off command were you sending? Arming command is different from takeoff command.  
Try [MAV\_CMD\_NAV\_TAKEOFF](https://MAV_CMD_NAV_TAKEOFF)

---

<div class="post-metadata">

**Author:** ![Perun\_Kiyev](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/perun_kiyev/32/5313_2.png) [@Perun\_Kiyev](https://discuss.cubepilot.org/u/Perun_Kiyev)\
**Post date:** [29 March 2022 06:38 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/5 "2022-03-29T06:38:43Z")

</div>

I send this command after MAV\_CMD\_COMPONENT\_ARM\_DISARM. First, I send MAV\_CMD\_COMPONENT\_ARM\_DISARM command, and drone looks like arm in mission planner, then i send MAV\_CMD\_NAV\_TAKEOFF command, and nothings happen.

---

<div class="post-metadata">

**Author:** ![champ8242](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/c/22d042/32.png) [@champ8242](https://discuss.cubepilot.org/u/champ8242)\
**Post date:** [29 March 2022 10:42 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/6 "2022-03-29T10:42:55Z")

</div>

" **[**" MAV\_CMD\_NAV\_TAKEOFF is this a typo?

---

<div class="post-metadata">

**Author:** ![Perun\_Kiyev](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/perun_kiyev/32/5313_2.png) [@Perun\_Kiyev](https://discuss.cubepilot.org/u/Perun_Kiyev)\
**Post date:** [29 March 2022 13:47 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/7 "2022-03-29T13:47:20Z")

</div>

Yes, sorry about that.

---

<div class="post-metadata">

**Author:** ![champ8242](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/c/22d042/32.png) [@champ8242](https://discuss.cubepilot.org/u/champ8242)\
**Post date:** [29 March 2022 14:05 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/8 "2022-03-29T14:05:34Z")

</div>

Typo in the post or copy/paste form the code?

---

<div class="post-metadata">

**Author:** ![Perun\_Kiyev](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/perun_kiyev/32/5313_2.png) [@Perun\_Kiyev](https://discuss.cubepilot.org/u/Perun_Kiyev)\
**Post date:** [29 March 2022 14:09 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/9 "2022-03-29T14:09:20Z")

</div>

just typo in the post

---

<div class="post-metadata">

**Author:** ![Alvin](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/alvin/32/1000_2.png) [@Alvin](https://discuss.cubepilot.org/u/Alvin)\
**Post date:** [30 March 2022 02:00 UTC](https://discuss.cubepilot.org/t/command-take-off/8623/10 "2022-03-30T02:00:07Z")

</div>

Can you share how exactly did you send the command?  
[https://ardupilot.org/copter/docs/common-mavlink-mission-command-messages-mav\_cmd.html#id3](https://ardupilot.org/copter/docs/common-mavlink-mission-command-messages-mav_cmd.html#id3)  
You should attach the altitude at the 7th parameter.
