Skip to content

Telemetry sensors discovery

Alessandro Apostoli edited this page Jul 27, 2023 · 11 revisions

Note: The only extra REQUIRED sensor (apart from the RX/TX built in ones) is GPS, all other sensors are optional, the script works fine without them

The script exposes to OpenTX the following variables via the setTelemetryValue() function, this lets end users use them as regular sensors in OpenTX scripts and functions.

Parameter Description Type ID Instance Unit of Measure Precision
Alt Altitude [m] Custom 010F 0 Meters (m) 1
VSpd Vertical speed [m/s] Custom 011F 0 Speed (m/s) 2
Curr Current [A] Custom 020F 0 Current (A) 1
VFAS Voltage [V] Custom 021F 0 Voltage (V) 2
GAlt GPS Altitude [m] Custom 082F 0 Meters (m) 1
GSpd Ground/Air Speed [m/s] Custom 083F 0 Speed (m/s) 1
Hdg Compass heading [deg] Custom 084F 0 Heading (°) 1
Fuel Remaining batt % Custom 060F 0 Raw 0
IMUt IMU temp °C Custom 041F 0 Temp (°C) 0
ARM Arming status Custom 060F 1 Raw 0

On the Taranis you need to run "discover new sensors" in your model telemetry page to use the sensors in OpenTX, the script has to be running for this to work.

On the Horus the procedure is different: start sensor discovery in the model telemetry page, leave it running and go back to the widget page pressing [RTN] without stopping the discovery process. Discovery should be running in the background. Now go back to the sensor discovery page by long pressing [MDL] and all sensors should have been discovered. If this does not work sensors can still be created manually in the model telemetry page.

Notes

  • sensor values are passed to OpenTX only when the script receives valid telemetry from the rx!
  • sensors con be logged to the SD card, please check the relevant section of the wiki
Clone this wiki locally