1/29/2024 0 Comments Taranis lua scriptsThese scripts are run periodically for entire time that model is selected/active. /SCRIPTS/TEMPLATES/ - For template scriptsĭo not use Lua model scripts for controlling any aspect of your model that could cause a crash if script stops executing.Įach model can have several model scripts associated with it./SCRIPTS/«modelname»/a - For telemetry scripts./SCRIPTS/FUNCTIONS/ - For function scripts./SCRIPTS/WIZARD/ - For the Wizard script.The script folders have been reorganized in OpenTX 2.0.3. Maximum Lua script file name length is TODO characters. Lua scripts must be placed on SD card in correct folders and have an extension. More general information about Lua scripts can be found on page There are several types of Lua scripts used in openTX. Lua is a lightweight multi-paradigm programming language designed as a scripting language. OpenTX 2.0 added support for Lua (current version 5.2.2) user scripts. ![]() Model Script Example: Automatic Battery Cell Detection One-Time Script Example: Generic Template Lcd.drawCombobox(x, y, w, list, idx, flag) Lcd.drawGauge(x1, y1, w, h, fill, maxfill) ![]() Model.getGlobalVariable(gvar, flightmode) ![]() PlayTone(frequency, length, pause, attr, frequnecyInc) PopupInput(title, event, input, min, max)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |