Skip to content

EdgeTX/lua-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua-scripts

The goal for this repo is to have a central place to share example Lua scripts, host any 'new' scripts, and to document where to find Lua scripts that already exist, as well as any tips or tricks related to getting started with them.

Games and other fun Lua scripts are listed seperately here.


ExpressLRS

LUA configurator for ExpressLRS hardware


Display ExpressLRS LinkStats telemetry as well as common Betaflight and iNav flight controller telemetry.


  • Display RF Only telemetry for Planes/Heli/Glider (i.e. line of site)
  • Display rf-rate / link-quality / power / rssi1 / rssi2
  • Display min & max indicator
  • Post flight summary (auto-detection end-of-flight)

GPS

ArduPilot LUA telemetry script for color and B&W.


Offline GPS Mapping Widget for Horus and T16 radios. It supports Ardupilot, iNAV, Betaflight, Crossfire and whatever FC or firmware that can send GPS info to EdgeTX.


GPS Telemetry Widget (B&W & Color). Shows total distance traveled, distance from home, as well as both home and last seen telemetry positions. Also logs to file, and has a log viewer so you don't have to worry about losing the coordinates if you turn the transmitter off.


Collection of Colorlcd & B&W widgets. For colorlcd includes GPS lat/long and Google Plus code widget, Home direction/distance widget, and average battery voltage widget. For B&W includes GPS Telemetry screen, and Home distance telemetry screen.


Telemetery & Flight Controllers

The Betaflight LUA script allows you to change flight controller settings on your radio, such as PID, rates, VTX channels and power, and many more.


Shows you telementry and flight status information. Supports radios with color and black and white screens.


Feature rich FM2M ToolBox is LUA App focusing on BetaFlight users. Provides dashboard with telemetry overview for all major RC Links, custom alerts , VTx info, GPS and much more. Supports radios with color and black and white screens.


Configurable EdgeTX widget that shows nifty Digital Clock.

Enhanced Model, Timer, Channels and Analog Clock widgets.


LUA configurator for numerous TBS products. Use this instead of Crossfire lua.

Other

ShowItAll displays various information in a single pane.


View fullscreen images with layout information or photos, cycle through them and have quick access to your favourite one.


Some widgets, themes and other scripts for EdgeTX


Basic and slightly incomplete on-radio import / export functionality for EdgeTX. Can be used to move functions / logical switches / mixes etc between models.

Widget that shows switch positions with customisable icons. Shows all switches with different icons for every switch position.
Links: JustFly, RCGroups


Scripts to complement the Multi Protocol Module, such as allowing you to configure certain aspects of the module, automacitally name channels, do DSM forward programming, as well as other protocol specific tasks.

Scripts to use with Spektrum Receivers. It has easy to install zip files versions of:

  • DSM Forward Programming (In collaboration with Multi-Module)
  • Spektrum Telemetry Scripts, Including TextGen for AVIAN ESC programming. Will become telemetry widgets in the future.
    • Smart RXs (AR631,AR637, etc)
    • Blade Heli helpers (AR636 based)
  • Interim EdgeTX Firmware with latest (but tested) changes for Spektrum Sensors and TextGen (Official EdgeTx 2.8.1 + only Spektrum Telemetry changes). This change will be included in EdgeTx 2.9.0



Nice presentation of log file on the field
no computer needed for logs anymore.

Selecting files & columns

Simple EdgeTX LUA script for BW radios to read logs files on the display. Rotary wheel is used to change the read value. Back is used to switch between modes. i.e., changing columns, rows or files.

This script logs the arming and disarming events of your model, along with date/time and the model name and creates an CSV Log. Really Simple.

Displays various battery related data.

LUA-based dashboard (only for black-and-white display radios).


Widget for color screen radios that allows touch buttons via logical switches (in German).

Advanced lap timer script using as little controls as possible. It stores race and lap data for analysis back at the computer.


Caller for practicing F3A pattern - Updated to 2024 Season

Enhanced music player for OpenTX & EdgeTX radios Multiple Playlists allow you to listen to your music while flying Your RC

Generates a QR code of last GPS coordinates received (for black-and-white screen radios)

Widget to display the levels of Lipo/HV-Lipo battery with mAh used based on battery voltage from 'Cels' sensor (FLVSS)

Battery and Telemetry Monitoring LUA Widget which tries to rely as less as possible on radio settings (Everything is defined in the Script). So no need for "manual" Logical Switches or Custom Functions.

A simple widget to display switches which are configured in special function and have a PLAY_TRACK behind.

Plot logged flight telemetry data on a map of your airfield.

Log each flight GPS coordinates to a separate GPX file.

  • part of the rf2-touch-suite for EdgeTX
  • designed for rotorflight2
  • the widget has 3 types of views

Dashboard type 1

Dashboard type 2

Dashboard style 3

This widget controls a so-called multiswitch inside a model. A multiswitch is a device that is most popular in the field of ship/crawler/functional-models, and its purpos is to switch on/off multiple electronic motors, LEDs, ... inside the model.

This widget controls a multiswitch via the CRSF protocol (ExpressLRS): https://github.com/wimalopaan/Electronics?tab=readme-ov-file#elrs_msw (or via ACCST/AFHDS2A and SBus ). Multiple instances of this widget can control multiple multiswitches inside a model, upto 255 theoretically.

Multiswitch widget controls Multiswitch widget function settings Multiswitch widget global settings

This widget is called the hardware extension widget. Its purpose is to read and visualize the state of external controls like pots, switches, buttons, incrementals, ... . This is done via one of the serial connections of the radio (AUX1, AUX2) reading messages of the hardware extension protocol: https://github.com/wimalopaan/Electronics?tab=readme-ov-file#hwext.

By this means it can read external controls, like upto 16 11-bit (proportional) values as well as 64 binary switch values.

Ideally the firmware for the radio has PR EdgeTX/edgetx#5885, so that this widget can set the virtual controls according to the external controls.

Hardware extension widget controls Hardware extension widget settings Hardware extension widget mapping

This widget mainly manipulates the virtual controls as described in EdgeTX/edgetx#5885. Virtual controls (virtual inputs and virtual switches) are non-physical inputs/switches for the radio. The main purpose is to extend the number of controls by use of virtual controls.

This widget can manipulate these virtual controls by means of up to 16 sliders and/or 64 buttons (normal, momentary or toggle).

If no virtual controls are available (firmware / simulator without EdgeTX/edgetx#5885), it is still useful as it can also manipulate the shm variables, which serve as a data exchange between widgets and mixer-scripts.

Virtual controls widget sliders Virtual controls widget buttons Virtual controls widget settings