Flight Data Logging with Lua Scripts
With these two Lua scripts, flylog.lua
and tellog.lua
, all flight hours and telemetry data can be automatically recorded on the EdgeTX transmitter (TX). The generated logs can then be imported and visualized in the UAV Manager.
GitHub repository for the Lua scripts: https://github.com/CarviFPV/flylog_edgetx
Installation
Download/Obtain the Script Save the
flylog.lua
file into theSCRIPTS/FUNCTIONS
directory on your EdgeTX SD card.Configure the Script in EdgeTX
On your EdgeTX transmitter, open the Model page and navigate to the Special Functions tab.
Create a new special function (tap the
+
icon).
Under Trigger, select the switch you want to use to start/stop logging (e.g., your arming switch).
Under Function, choose Lua Script.
Under Value, select
flylog.lua
.Set Repeat to ON.
Make sure Enable is toggled on.
Refer to the provided screenshots for an example of how this is set up.
tellog.lua
Download/Obtain the Script Save the
tellog.lua
file into theSCRIPTS/FUNCTIONS
directory on your EdgeTX SD card.Configure the Script in EdgeTX The setup is the same as for
flylog.lua
:On your EdgeTX transmitter, open the Model page and navigate to the Special Functions tab.
Under Trigger, select the switch you want to use to start/stop logging (e.g., your arming switch).
Under Function, choose Lua Script.
Under Value, select
tellog.lua
.Set Repeat to ON.
Refer to the provided screenshots for an example of how this is set up.
ExpressLRS Settings
A. Click on SYS and go to the Tools tab. B. There you should see the ExpressLRS script.
C. Then you should set the following:
Packet Ratio = 250HZ
Telemetry Ratio = 8
Note: The default Packet Ratio of 250Hz is fine, but the standard Telemetry Ratio is too high and should be set to 8. If you use a different Packet Ratio, you will need to find the best Telemetry Ratio for your setup, as it always depends on the Packet Ratio. If the Telemetry Ratio is too high, you will get less data, which can make the telemetry look messy in the UAV Manager when analyzing your flight data.
Last updated