diff --git a/sdcard/horus/SCRIPTS/WIZARD/glider.lua b/sdcard/horus/SCRIPTS/WIZARD/glider.lua index 199db2de..ce4722d6 100644 --- a/sdcard/horus/SCRIPTS/WIZARD/glider.lua +++ b/sdcard/horus/SCRIPTS/WIZARD/glider.lua @@ -136,7 +136,7 @@ end local MotorFields = { {50, 50, COMBO, 1, 1, { "No", "Yes"} }, - {50, 127, COMBO, 1, 2, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, + {50, 127, COMBO, 1, defaultChannel(2), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, } local ImgEngine @@ -166,7 +166,7 @@ end -- fields format : {[1]x, [2]y, [3]VALUE, [4]visible, [5]default, [6]min, [7]max} local AilFields = { {50, 50, COMBO, 1, 2, { "None", "One, or two with Y cable", "Two"} }, - {50, 127, COMBO, 1, 0, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, -- Ail1 chan + {50, 127, COMBO, 1, defaultChannel(3), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, -- Ail1 chan {50, 167, COMBO, 1, 4, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, -- Ail2 chan } @@ -258,8 +258,8 @@ end local TailFields = { {50, 50, COMBO, 1, 1, { "1 channel for Elevator, no Rudder", "One channel for Elevator, one for Rudder", "Two channels for Elevator, one for Rudder", "V Tail"} }, - {50, 127, COMBO, 1, 1, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --ele - {50, 167, COMBO, 1, 3, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --rud + {50, 127, COMBO, 1, defaultChannel(1), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --ele + {50, 167, COMBO, 1, defaultChannel(0), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --rud {50, 207, COMBO, 0, 5, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --ele2 } diff --git a/sdcard/horus/SCRIPTS/WIZARD/multirotor.lua b/sdcard/horus/SCRIPTS/WIZARD/multirotor.lua index f65b019c..db6db2ae 100644 --- a/sdcard/horus/SCRIPTS/WIZARD/multirotor.lua +++ b/sdcard/horus/SCRIPTS/WIZARD/multirotor.lua @@ -138,7 +138,7 @@ end local ThrottleFields = { - {50, 50, COMBO, 1, 2, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, + {50, 50, COMBO, 1, defaultChannel(2), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, } local ThrottleBackground @@ -159,7 +159,7 @@ local function runThrottleConfig(event) end local RollFields = { - {50, 50, COMBO, 1, 0, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, + {50, 50, COMBO, 1, defaultChannel(3), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, } local RollBackground @@ -181,7 +181,7 @@ local function runRollConfig(event) end local PitchFields = { - {50, 50, COMBO, 1, 1, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, + {50, 50, COMBO, 1, defaultChannel(1), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, } local PitchBackground @@ -203,7 +203,7 @@ local function runPitchConfig(event) end local YawFields = { - {50, 50, COMBO, 1, 3, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, + {50, 50, COMBO, 1, defaultChannel(0), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, } local YawBackground diff --git a/sdcard/horus/SCRIPTS/WIZARD/plane.lua b/sdcard/horus/SCRIPTS/WIZARD/plane.lua index 1bb2d019..8c02553a 100644 --- a/sdcard/horus/SCRIPTS/WIZARD/plane.lua +++ b/sdcard/horus/SCRIPTS/WIZARD/plane.lua @@ -136,7 +136,7 @@ end local MotorFields = { {50, 50, COMBO, 1, 1, { "No", "Yes"} }, - {50, 127, COMBO, 1, 2, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, + {50, 127, COMBO, 1, defaultChannel(2), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, } local ImgEngine @@ -166,7 +166,7 @@ end -- fields format : {[1]x, [2]y, [3]VALUE, [4]visible, [5]default, [6]min, [7]max} local AilFields = { {50, 50, COMBO, 1, 2, { "None", "One, or two with Y cable", "Two"} }, - {50, 127, COMBO, 1, 0, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, -- Ail1 chan + {50, 127, COMBO, 1, defaultChannel(3), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, -- Ail1 chan {50, 167, COMBO, 1, 4, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, -- Ail2 chan } @@ -258,8 +258,8 @@ end local TailFields = { {50, 50, COMBO, 1, 1, { "1 channel for Elevator, no Rudder", "One channel for Elevator, one for Rudder", "Two channels for Elevator, one for Rudder", "V Tail"} }, - {50, 127, COMBO, 1, 1, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --ele - {50, 167, COMBO, 1, 3, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --rud + {50, 127, COMBO, 1, defaultChannel(1), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --ele + {50, 167, COMBO, 1, defaultChannel(0), { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --rud {50, 207, COMBO, 0, 5, { "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8" } }, --ele2 }