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!
User avatar
rcdiy
Posts: 44
Joined: Fri Jul 01, 2016 6:13 am
Country: Canada
Has thanked: 5 times
Been thanked: 5 times
Contact:

OpenTx Lua Script Lap Timer

Postby 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 (RCdiy.ca) feedback.

http://rcdiy.ca/laptimer/
https://youtu.be/jid41hobl90

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.
RCdiy.ca
Stay Safe & Have Fun
http://rcdiy.ca

I appreciate the community support since I started flying in 2014. To give back I am making my scripts easily available for everyone to use.

Return to “openTx”

Who is online

Users browsing this forum: No registered users and 2 guests