table containing model information with following fields:
bitmap field is not available on BW radios
API Status
Change log
Examples
Displaying model's name
local modelInfo -- declare variable available to all functions localfunctionmy_init() { modelInfo = model.getInfo() -- read model's info table}localfunctionmy_run(event) { lcd.clear() lcd.drawText(0, 0, modelInfo.name) -- display model's namereturn0}return { run = my_run, init = my_init }
Displaying model's all information
local modelInfo -- declare variable available to all functions local lineHeight =8-- for color radios change to 16localfunctionmy_init() { modelInfo = model.getInfo() -- read model's info table}localfunctionmy_run(event) { lcd.clear()local y =0for fieldName, fieldValue inpairs(modelInfo) do lcd.drawText( 0, y, fieldName ..": " ..tostring(fieldValue) ) -- display model's name y = y + lineHeightendreturn0}return { run = my_run, init = my_init }
Avail
Status
Comment
EdgeTX version
Change
name
string
Model's name set.
filename
string
Name of
bitmap
string
Name of model's picture file located on SD Card in /IMAGES/ folder
extendedLimits
boolean
true if extended limits are enabled otherwise false
jitterFilter
number
BW radios
active
Color radios
active
2.4.0
Introduced
2.6.0
added filename to return value table.
2.8.0
added extendedLimits , jitterFilter, labels to return value table.