Ok I have found the variables and added then to a Lua file and everything is working perfectly
I have created 1 lua file that I use for both left and right, Fully close, half open and full open.
-- param nr
-- 1 = Cowl flap Close
-- 2 = Cowl flap Half
-- 3 = Cowl flap Open
-- Cowl flap_L_and_R Close
if ipcPARAM == 1 then
ipc.writeLvar("L:Duke_Cowl_Flaps_Switch_1", 0)
ipc.sleep(500)
ipc.writeLvar("L:Duke_Cowl_Flaps_Switch_2", 0)
-- Cowl flap_L_and_R Half
elseif ipcPARAM == 2 then
ipc.writeLvar("L:Duke_Cowl_Flaps_Switch_1", 1)
ipc.sleep(500)
ipc.writeLvar("L:Duke_Cowl_Flaps_Switch_2", 1)
-- Cowl flap_L_and_R Open
elseif ipcPARAM == 3 then
ipc.writeLvar("L:Duke_Cowl_Flaps_Switch_1", 2)
ipc.sleep(500)
ipc.writeLvar("L:Duke_Cowl_Flaps_Switch_2", 2)
end
To set the cowl flaps individually split the file up and have only the one line for each engine per file.
Anyway for so long it does work with my set-up perfectly.
Regards
JB