ALT+ height logger

Description
Altlog.lua is a script for EdgeTX for logging maximum height, as reported by a vario/baro sensor. The idea behind the script is to log launch heights, when used with the DLG templates on this site.
What it does
The script is called from a special function. It fetches the value of the ALT+ telemetry and writes it to a log file, together with a timestamp.
Installing the script
To install the script,
- Download the script
- Copy it to the /SCRIPTS/FUNCTIONS/ folder on the SD card/flash memory.
Logging launch height
This section describes a simple mod to the DLG and DLG6S templates, to log launch heights.
- Install the script
- Open the Special Functions menu
- Identify the SF with PlayVal, ALT+ (this is the SF which triggers the height announcement). Make a note of the logical switch (typically L26).
- Create a new SF to trigger the altlog.lua script, using the same logical switch you identified above. Set repeat to 'x1'.
Voila the launch height will announced and logged simultaneously.
Location of log file
The log file is created in the /LOGS/ folder on the SD card. There is one log per day with filename {modelname}_ALT_[yyyy‑mm‑dd].
Other uses
Although designed to log ALT+ telemetry, the script can be easily modified to log any source value.
Download
altlog v1.2
Requirements
- Receiver or sensor with ALT telemetry
- Transmitter running EdgeTX 2.10 or later
Files
- altlog.lua - right click and Save As.
Please read the instructions at the top of the script.
