Category Archives: Lua Scripts

Quad Race Start Sequence – GoRace

      Comments Off on Quad Race Start Sequence – GoRace

OpenTX Lua Function Script This script mimics the start sequence for quad racing. Pilots get their quads ready on the start line. They then return to their seats and get ready to race. The race official tells them to arm their quads and then after a random delay sounds a… Read more »

Getting Started With Lua Function Scripts

      Comments Off on Getting Started With Lua Function Scripts

 OpenTX Lua Function Scripts What Is A Function Script Selected and configured on the special functions screen by selecting the Lua Script function They are executed based on switch position Typically used for customized announcements The number of scripts is limited only by the number of configurable special function… Read more »

Head Speed

      Comments Off on Head Speed

OpenTX Lua Telemetry Script The head speed of a helicopter is the revolutions per minute of the main rotor. Gear Ratio = Main Gear/Pinion Gear Number Of Teeth Head Speed = RPM/Gear Ratio Head Speed = RPM x Pinion/Main Description Displays the helicopter’s head speed Download Head Speed Files File… Read more »

GPS Directions Home (Distance, Trip)

      Comments Off on GPS Directions Home (Distance, Trip)

OpenTX Lua Telemetry Script Sensor FrSKY GPS Description Reads coordinates from up to 2 GPS sensors One GPS on the aircraft and an optional GPS on the Tx (Pilot-Home position) When only one GPS is used the Pilot-Home position is set to where the GPS strats reporting coordinates or when… Read more »

Hand Launch Sequence

      Comments Off on Hand Launch Sequence

OpenTX Lua Mix Script Description Two Step Sequence of Output Values The script provides outputs to be used as inputs to mixes The input to the mix starts with an initial precentage value After a defined delay in seconds the value changes to the second configured value Messages are played when the… Read more »

Hold Any Input’s Position

      Comments Off on Hold Any Input’s Position

OpenTX Lua Mix Script Description Holds the input value. E.g. Keep a boat on a fixed throttle and rudder setting. Enabled using a logical or physical switch. Up to 4 inputs may be configured. The inputs may be sticks, sliders, switches or channels (any OpenTX input). If an input is… Read more »

Getting Started With Lua Custom (Mix) Scripts

      Comments Off on Getting Started With Lua Custom (Mix) Scripts

OpenTX Lua Mix/Custom Scripts What Is A Custom (Mix) Script Takes inputs such as sticks, switches and channels Selected and configured from the custom scripts screen Produces outputs that can be used as inputs to mixes Used as inputs in the mixes screen Up to 7 mix scripts can be active per… Read more »

Lap Timer

      Comments Off on Lap Timer

OpenTX Lua Telemetry Script Description Displays elapsed time, lap number and lap time. Plays a beep each time a lap is recorded. Speaks the lap number 1st, 2nd and so on till the 16th lap. Speaks the lap time in minutes and seconds. The seconds are rounded to the nearest… Read more »

Battery Capacity Remaining

      Comments Off on Battery Capacity Remaining

OpenTX Lua Telemetry Script Description Reads an OpenTX global variable to determine battery capacity in mAh Reads a battery consumption sensor and/or a voltage sensor to estimate mAh and % battery capacity remaining The sensors used are configurable A consumption sensor is a calculated sensor based on a current sensor and… Read more »

Getting Started With Lua Telemetry Scripts

      Comments Off on Getting Started With Lua Telemetry Scripts

OpenTX Lua Telemetry Scripts What Is A Telemetry script Access telemetry data Displays customized telemetry screens Process telemetry data (telemetry calculations) Up to 3 active scripts per model Selected from the telemetry screen settings Can be used by different models (with caution) Can be used to display non-telemetry data such a the… Read more »