1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 12:25:12 +03:00

Updated documentation for getSensor (#8161)

This commit is contained in:
Jesper Frickmann 2020-12-13 02:19:31 -05:00 committed by GitHub
parent fbe294c378
commit a9179d1357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1514,16 +1514,16 @@ Get Telemetry Sensor parameters
@param sensor (unsigned number) sensor number (use 0 for sensor 1) @param sensor (unsigned number) sensor number (use 0 for sensor 1)
@retval nil requested logical switch does not exist @retval nil requested sensor does not exist
@retval table logical switch data: @retval table with sensor data:
* `func` (number) function index * `type` (number) 0 = custom, 1 = calculated
* `v1` (number) V1 value (index) * `name` (string) Name
* `v2` (number) V2 value (index or value) * `unit` (number) See list of units in the appendix of the OpenTX Lua Reference Guide
* `v3` (number) V3 value (index or value) * `prec` (number) Number of decimals
* `and` (number) AND switch index * `id` (number) Only custom sensors
* `delay` (number) delay (time in 1/10 s) * `instance` (number) Only custom sensors
* `duration` (number) duration (time in 1/10 s) * `formula` (number) Only calculated sensors. 0 = Add etc. see list of formula choices in Companion popup
@status current Introduced in 2.3.0 @status current Introduced in 2.3.0
*/ */