1 local function run(event
)
2 inputt
= {name
= "In1", source
= 1, weight
= 50, offset
= 10, switch
= 3}
3 mixt
= {name
= "Mix1", source
= 1, weight
= 50, offset
= 10, curveType
= 1, curveValue
= 50, flightModes
= 3, delayUp
= 5, speedDown
= 5, speedUp
= 2, delayDown
= 5, mixWarn
= 1 , carryTrim
= true , multiplex
= 1, switch
= 3}
4 outputt
= {name
= "Out1", min = -800, max = 800, offset
= 10, ppmCenter
= 10, symetrical
= 1, revert
= 1, switch
= 3}
5 timert
= {mode
= 4, start
= 0, countdownBeep
= 2, persistent
= 1, minuteBeep
= true, value
= 10 }
6 lst
= {func
= 2, v1
= 2, v2
= 2, v3
= 2, duration
= 3, delay
= 2, ["and"] = 2}
7 model
.insertInput(4,0,inputt
)
8 model
.insertMix(4,0,mixt
)
9 model
.setOutput(4, outputt
)
10 model
.setLogicalSwitch(0, lst
)
11 model
.setTimer(0, timert
)