model.getSensor(sensor)
Get Telemetry Sensor parameters
@status current Introduced in 2.3.0
Parameters
sensor
(unsigned number) sensor number (use 0 for sensor 1)
Return value
nil
requested sensor does not existtable
with sensor data:type
(number) 0 = custom, 1 = calculatedname
(string) Nameunit
(number) See list of units in the appendix of the OpenTX Lua Reference Guideprec
(number) Number of decimalsid
(number) Only custom sensorsinstance
(number) Only custom sensorsformula
(number) Only calculated sensors. 0 = Add etc. see list of formula choices in Companion popup