Sync edgetx to Gitea

This commit is contained in:
2026-08-03 16:37:20 +08:00
commit 14eb5a3fb9
5364 changed files with 2835009 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
local function checktable(actual, reference)
for k, v in pairs( actual ) do
if v == reference[k] then
print("OK ", k, v, reference[k])
else
print("ISSUE ", k, v, reference[k])
end
end
end
local function run(event)
inputt= {name = "In1", source = 1, weight = 50, offset = 10, switch = 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}
outputt = {name = "Out1", min = -800, max = 800, offset = 10, ppmCenter = 10, symetrical = 1, revert = 1, switch = 3}
timert = {mode = 4, start = 0, countdownBeep = 2, persistent = 1, minuteBeep = true, value = 10 }
lst = {func = 2, v1 = 2, v2 = 2, v3 = 2, duration = 3, delay = 2, ["and"] = 2}
input = model.getInput(4,0)
mix = model.getMix(4,0)
output = model.getOutput(4)
ls = model.getLogicalSwitch(0)
timer = model.getTimer(0)
checktable(input,inputt)
checktable(mix, mixt)
checktable(output, outputt)
checktable(ls, lst)
checktable(timer, timert)
return 2
end
return {run=run}
+14
View File
@@ -0,0 +1,14 @@
local function run(event)
inputt= {name = "In1", source = 1, weight = 50, offset = 10, switch = 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}
outputt = {name = "Out1", min = -800, max = 800, offset = 10, ppmCenter = 10, symetrical = 1, revert = 1, switch = 3}
timert = {mode = 4, start = 0, countdownBeep = 2, persistent = 1, minuteBeep = true, value = 10 }
lst = {func = 2, v1 = 2, v2 = 2, v3 = 2, duration = 3, delay = 2, ["and"] = 2}
model.insertInput(4,0,inputt)
model.insertMix(4,0,mixt)
model.setOutput(4, outputt)
model.setLogicalSwitch(0, lst)
model.setTimer(0, timert)
return 2
end
return {run=run}
+46
View File
@@ -0,0 +1,46 @@
Use this two scripts to check eeprom upgrade on lua capale radio.
Using create.lua on source version will create a predefined set of input, mixer, switche, timer and logical swictch
Perform the eeprom upgrade
On the target version, run check.lua, the debug output will give something like :
OK source 1 1
OK switch 3 3
OK offset 10 10
OK weight 50 50
OK name In1 In1
OK weight 50 50
OK speedDown 5 5
OK curveValue 50 50
OK speedUp 2 2
OK delayDown 5 5
OK carryTrim true true
OK mixWarn 1 1
OK flightModes 3 3
OK offset 10 10
OK switch 3 3
OK source 1 1
OK curveType 1 1
OK delayUp 5 5
OK name Mix1 Mix1
OK multiplex 1 1
OK min -800 -800
OK ppmCenter 10 10
OK symetrical 1 1
OK offset 10 10
OK revert 1 1
OK max 800 800
OK name Out1 Out1
OK v1 2 2
OK delay 2 2
OK func 2 2
OK v3 2 2
OK and 2 2
OK v2 2 2
OK duration 3 3
OK minuteBeep true true
ISSUE value 43 10
OK persistent 1 1
OK start 0 0
OK countdownBeep 2 2
OK mode 4 4
The issue on 'value' for timer is normal and should be expected, but it should be the only one if eeprom upgrade was ok