vulturetec's blog View Details
Archive for March, 2018
Posted by vulturetec | Mar 04, 2018 @ 10:30 PM | 2,464 Views
This is a simple LUA script I wrote to help keep track of the number of flights and flight time on individual models. The logging data is stored in GVARs and therefore will remain intact as long as the GVARs 8 & 9 (on all flight modes) are not changed. The logger data can be backed up along with the model setup using companion.

The script is intended for fixed wing aircraft, primarily gliders. Flights are automatically counted when the aircraft is above a specified height above the ground for a length of time. The flight ends and the flight time calculated when the aircraft drops below that same height. Alternatively a toggle switch can be used to manually start and stop flights.

  • Originally written for use with OpenTX 2.2.1 on a FrSky Taranis X9D+ it may work on other platforms but has not been tested.
  • For fully automatic operation the script relies on telemetry data from a variometer (VARI-N, VARI-H, or G-RX8) with the sensor's altitude reset before takeoff. In some situations the sensor calibration may cause it to immediately show very high readings at power-up, if that happens the telemetry should be reset immediately or false flight times will be recorded.
  • Manual operation can be configured that will use a toggle switch input instead of altitude.


The flight times currently cannot exceed 1024 hours. This may be revised in future versions. However, the flight counter is not restricted to 1024 flights (it has been tested to over...Continue Reading