Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 2.21 KB

File metadata and controls

34 lines (19 loc) · 2.21 KB

model.getCurve

Deletes line from specified Input of curently selected model.

Syntax

model.getCurve( curveID )

Parameters

NameTypeReqDescription
curveIDnumbertrueCurve ID number. Normal Lua index.
Use 1 for curve 1, 8 for Input 8 etc.

Return values

  • nil requested curve does not exist
  • table containing model information with following fields:
FieldTypeDecription
namestringCurve name
typenumberCurve type ID number
0 - ???
1 - ???
2 - ???
smoothbooleantrue if curve is smoothed, otherwise false
pointsnumbernumber of curve's points
ytabletable of points y coordinates values
table key (number, zero based) - point number
table value (signed number) - point's y coordonate value
xtabletable of points x coordinates values
table key (number, zero based) - point number
table value (signed number) - point's x coordonate value

API Status

AvailStatusComment
BW radiostrue
Color radiostrue

Change log

EdgeTX versionChange
2.4.0Introduced
2.9.0 changed curveID index from zero based to normal LUA (starts from 1)

Examples

Example description

-- sample script