Lua is a lightweight multi-paradigm programming language designed as a scripting language. More at
There are two types of Lua scripts used in openTX:
●
Model scripts - these are run periodically and continuously, similar to mixers
●
One-time scripts - these run one time when user selects/executes them from the menu
Lua scripts must be placed on SD card in folder /SCRIPTS and have an extension .lua.
Documentation is divided into sub-pages:
●
describes continuously running model scripts
●
describes one-time running general scripts
●
detailed reference of openTX Lua implementation and interface
○
○
○
●
some example scripts with comments
Directory structure for LUA
TODO
How to use Lua fields
TODO
http://www.rcgroups.com/forums/showpost.php?p=29232719&postcount=610
https://docs.google.com/document/d/136JYUcMJwrNM60Pf6cIf274yDoFHzAS6hzt8fWdXN0s/edit
Templates (remove or reference companion wizzard /lua wizzard)
The templates are currently "starting points" for model setups. When selected with ENTER LONG they will either
add to or replace the current model's mixers and settings with the usual ones for the usage scenario they
correspond to (best used on a newly created model). These can be used to build upon or tweak to achieve the
desired result, or simply to get an idea of what's required for that model type.
First steps
Now that you've seen the basics and that your battery has some charge, what about a little bit of practice? The
radio comes from the factory with the sticks already calibrated, so the first thing to do with your radio would be to
configure the general settings. Get to the relevant page with MENU LONG, set time, date, sound volumes to your
preference (the lower end of the volume slider is typically needed when using headphones, while the upper end is
good for using with the internal speaker), play with the backlight setting, set the RF country code to your location,
the default channel order to your preference, and the stick mode to match your flying style. Battery gauge and
alarm are factory set for the supplied battery.
26
Summary of Contents for OpenTX 2.0+
Page 41: ...41...
Page 47: ...Taranis Updating internal XJT module firmware 47...