| | #9 (permalink) Top | |
| User Data registr.: 19-01-2007 Residenza: Dintorni di mestre (DINTORNI)
Messaggi: 2.589
| Citazione:
-------------------------------- -- ID dei sensori telemetrici -- -------------------------------- local function getTelemetryId(name) field = getFieldInfo(name) if field then return field.id else return -1 end end Poi, per recuperare il valore, un'altra funzione come questa che verifica se è presente un valore: ------------------------------------- -- Recupero del valore telemetrico -- ------------------------------------- local function getValueOrDefault(value) local tmp = getValue(value) if tmp == nil then return 0 end return tmp end | |
| | |
| Bookmarks |
| |
Discussioni simili | ||||
| Discussione | Autore discussione | Forum | Commenti | Ultimo Commento |
| Taranis e LUA script | badtime | Radiocomandi | 2 | 02 giugno 18 15:12 |
| Lua file per telemetria su taranis plus 2.1 | ludiga | Radiocomandi | 0 | 16 settembre 15 14:23 |
| Frsky Taranis | salvatoremadasa | Compro | 1 | 29 aprile 15 23:16 |
| Frsky Taranis Plus | gallma | Merc. Motori ed Elettronica | 1 | 29 aprile 15 09:12 |
| FrSky Taranis | microchip | Compro | 11 | 02 aprile 15 00:49 |