Download Print this page

First Steps - RC Groups OpenTX 2.0+ User Manual

Advertisement

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:
Lua Model Scripts
Lua One-time Scripts
Lua Script Reference
Lua General Functions
Lua Model Functions
Lua Display Functions
Lua Script Examples
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.
describes continuously running model scripts
describes one-time running general scripts
detailed reference of openTX Lua implementation and interface
general purpose functions
model manipulation functions
LCD display functions
some example scripts with comments
Wikipedia
26

Advertisement

loading
Need help?

Need help?

Do you have a question about the OpenTX 2.0+ and is the answer not in the manual?

Subscribe to Our Youtube Channel