Hand Launch Sequence Lua Script

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
User avatar
rcdiy
Posts: 190
Joined: Fri Jul 01, 2016 6:13 am
Country: Canada
Contact:

Hand Launch Sequence Lua Script

Post by rcdiy »

Hand Launch Sequence Lua Script
http://rcdiy.ca/hand-launch-sequence/

A viewer requested a script to help hand launch a plane equipped with an APM flight controller running ArduPilot.

ArduPilot has an automatic take off feature which takes care of throttle, elevator and stability.
http://ardupilot.org/plane/docs/automatic-takeoff.html

The pilot starts the script which puts the flight controller in stabilize mode. The Tx is put down and the plane is picked up and checked to ensure stabilize mode works and it is ready for a hand launch. The script announces the beginning, count down seconds and the end of the sequence. At the end of the sequence the pilot hand launches the plane, the flight controller is put into automatic takeoff mode which increases the throttle, stabilizes the plane hand takes it to a configured altitude.

The script has been generalized to work with any flight controller and with one of more channels. If the flight controller is only able to handle aircraft stabilization then the script can be used to set initial and final values for throttle and elevator.

For safety the script can be disabled and sequence interrupted at any time using a switch. Once interrupted the sequence may be started again from the beginning.

Please check out the blog post and like the video.
RCdiy.ca
Stay Safe & Have Fun
OpenTX Manual http://rcdiy.ca
Paying it forward by sharing my Lua scripts, documentation and videos.

Post Reply

Return to “openTx”