RadioLink Surface protocol: initial commit

This commit is contained in:
Pascal Langer
2020-07-22 15:37:47 +02:00
parent 69c95ca153
commit e1d4f9a270
11 changed files with 270 additions and 7 deletions

View File

@@ -278,6 +278,15 @@ local function Multi_Init()
ch_order = math.floor(ch_order/4)
channel_names[bitand(ch_order,3)+1] = stick_names[1]
end
--Exceptions on first 4 channels...
if ( protocol == 74 and sub_protocol == 0 ) then -- RadioLink Surface
channel_names[1] = "ST"
channel_names[2] = "THR"
channel_names[3] = "CH3"
channel_names[4] = "CH4"
end
--Check MultiChan.txt
local f = io.open("/SCRIPTS/TOOLS/MultiChan.txt", "r")
if f == nil then return end