model.getCurve
Syntax
Parameters
Name
Type
Req
Description
Return values
API Status
Avail
Status
Comment
Change log
EdgeTX version
Change
Examples
Last updated
Was this helpful?
Deletes line from specified Input of curently selected model.
model.getCurve( curveID )
curveID
number
Curve ID number. Indexing starts with 0, thus use 0 for curve 1, 7 for Input 8 etc.
nil requested curve does not exist
table containing model information with following fields:
name
string
Curve name
type
number
Curve type ID number 0 - ??? 1 - ??? 2 - ???
smooth
boolean
true if curve is smoothed, otherwise false
points
number
number of curve's points
y
table
table of points y coordinates values
table key (number, starts from 1) - point number
table value (signed number) - point's y coordonate value
x
table
table of points x coordinates values
table key (number, starts from 1) - point number
table value (signed number) - point's x coordonate value
BW radios
Color radios
2.4.0
Introduced
2.9.0
changed x and y table index from zero based to normal LUA (starts from 1)
Example description
Last updated
Was this helpful?
Was this helpful?
-- sample script