Auto takeoff for Multirotor

Hi. Is there any way to make the drone take off automatically and wait at a specific height using a switch like DJI drones?

I never try before, I think lua script can do it.

I use it to set different parameters before takeoff due to different payload weight and cg.

Thanks for your quick reply, but I have no experience with lua script.

AUTO_OPTIONS,3
Configure an Auto Mission with one Takeoff command to the altitude you want it to go to.
Switch to Auto Mode and Arm it. It will takeoff and sit at the altitude you programmed until you switch to another mode. Suggest having it at mid throttle and switch to Loiter.

1 Like

Thanks for your reply, but can this work without using the mission planner every time?

Yes, IIRC takeoff takes only altitude.

It takes off and ascends to specified altitude before continuing navigation (with takeoff only mission switching to RTL and hanging in place).

2 Likes

Here, via lua script

https://ardupilot.org/copter/docs/common-lua-scripts.html#rc-channels-rc

https://ardupilot.org/copter/docs/common-lua-scripts.html#arming-arming

https://ardupilot.org/copter/docs/common-lua-scripts.html#vehicle-vehicle

Example

1 Like