Custom Scripts - RadioMaster TX16S User Manual

Hide thumbs Also See for TX16S:
Table of Contents

Advertisement

1x: Play sound once.
1s-60s: broadcast at intervals (seconds)
Play wav file in SD card, single broadcast and loop broadcast are the
Play Track
same as above
Voice broadcast value, can broadcast values from any source, such
Play Value
as real-time values such as gimbal, voltage, altitude, time, etc.
Call the specified script, and the script file should be placed in the /
Lua Script:
SCRIPTS / FUNCTIONS / folder of the SD card.
Background music, loop play wav files, take effect immediately after
BgMusic
power on
BgMusic II
Pause background music
Vario
Broadcast Vario value
Haptic
shock
Start recording logs, save on SD card, can set time interval 0.2-25.5
SD Logs
seconds
To control the brightness of the backlight, you must first define the
backlight ON and OFF brightness in the system settings. This uses
Backlight
the switch to switch the corresponding ON and OFF brightness of
the backlight.

4.4.10. Custom Scripts

Custom script allows you to customize the functions of the remote control. The
scripting language used is Lua, which is a lightweight embeddable scripting language.
You need to implement custom functions in the remote control. There are three basic
types:
One-time: The script runs only once and then terminates. Initialization of some
parameters, and a wizard for creating a new model. The script is stored in the SCRIPTS
folder of the SD card.
Mix: A script that executes in a loop, similar to the main program, and is always
executed during remote operation.
Function: The script is called in Special Functions. This script is only allowed to
execute when the switch in the special function is turned on, and closed when the
switch is turned off.
55

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents