OpenTx Lua Script Lap Timer

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
User avatar
Posts: 190
Joined: Fri Jul 01, 2016 6:13 am
Country: Canada

OpenTx Lua Script Lap Timer

Post by rcdiy » Tue Jan 10, 2017 6:40 pm

OpenTx Lua Script Lap Timer

I've written a Lap Timer Lua script to be used with OpenTx. This script is a result of requests received via Painless360 and website ( feedback.

The lap timer has two switches which can be logical or physical.

These switches are configurable by editing the script file in a plain text editor.

By default the timer start and stop switch is logical switch one.

For this demonstration logical switch one has been configured to be true when the throttle is above negative 100.

So the timer starts as soon as the throttle goes up.

The lap switch is configured to be the momentary switch SF on the Taranis.

To record a lap raise and then release the lap switch.

To reset to zero stop the timer and then raise and release the lap switch.

The script displays the current elapsed time.

The number of laps.

And the time for each lap.

The script also has audio which can be configured by editing the script file.

For each lap a beep, the lap number and the lap time in minutes and seconds is played.
Stay Safe & Have Fun
OpenTX Manual
Paying it forward by sharing my Lua scripts, documentation and videos.

Post Reply

Return to “openTx”