Jump to content
The simFlight Network Forums

FSL Concorde LUA Script


guenseli

Recommended Posts

Unfortunatelly the Concorde was the most difficult addon to get out LUA variables or controls.

The devs ignored my begging over month so here is what I have found and it is not working correct for 100%

(talking about the animations of some switches etc)

The functions do what they should do.

Here is the list of the parameters:

-- FSLabs Concorde

-- 10 AP1

-- 11 AP2

-- 12 ATHR1

-- 13 ATHR2

-- 14 FD1

-- 15 FD2

--

--

-- 20 INS

-- 21 TRK HDG (sel)

-- 22 HDG (hold)

-- 23 TURB

-- 24 Pitch hold

-- 25 Mach hold (right side)

-- 26 Max climb

-- 27 IAS Hold (Right side)

-- 28 ALT hold

-- 29 Bach Beam

-- 30 VOR/LOC

-- 31 LAND

-- 32 Glide

-- 33 Max Cruise

-- 34 vert Speed

-- 35 ALT ACQ

-- 36 Mach hold (left side)

-- 37 IAS Hold (left side)

-- 38 IAS ACQ

--

-- 40 Alt inc

-- 41 Alt dec

--

-- 45 HDG left inc

-- 46 HDG left dec

-- 47 HDG right inc

-- 48 HDG right dec

--

-- 50 CRS left inc

-- 51 CRS left dec

-- 52 CRS right inc

-- 53 CRS right dec

--

-- 55 VS Pitch inc

-- 56 VS Pitch dec

-- 60 SPD inc

-- 61 SPD dec

--

-- 70 RAD/INS 1 (left) toggle

-- 71 RAD/INS 2 (right) toggle

--

-- 80 reheat eng1 inc

-- 81 reheat eng1 dec

-- 82 reheat eng2 inc

-- 83 reheat eng2 dec

-- 84 reheat eng3 inc

-- 85 reheat eng3 dec

-- 86 reheat eng4 inc

-- 87 reheat eng4 dec

--

-- 90 Landing lights on

-- 91 Landing lights off

--

-- 92 Taxi lights on

-- 93 Taxi lights off

--

-- 94 Taxi turn lights toggle

--

-- 100 Instr. lights inc

-- 101 Instr. lights dec

--

----------------------Panels

-- 200 Brake, Cabin Pressure, Engine control

-- 201 Air Intakes, sec eng controls

-- 202 upper fuel, lower fuel, nozzle

-- 203 air bleed, hydraulic

-- 204 temperature control, engine stack

-- 205 light controls (Capt, FO, engineer)

-- 206 AC and DC

-- 207 CDU1 +2

-- 208 overhead

And here is the hole code:

Have fun!

-- FSLabs Concorde

-- 10 AP1
-- 11 AP2
-- 12 ATHR1
-- 13 ATHR2
-- 14 FD1
-- 15 FD2
--
--
-- 20 INS
-- 21 TRK HDG (sel)
-- 22 HDG (hold)
-- 23 TURB
-- 24 Pitch hold
-- 25 Mach hold (right side)
-- 26 Max climb
-- 27 IAS Hold (Right side)
-- 28 ALT hold
-- 29 Bach Beam
-- 30 VOR/LOC
-- 31 LAND
-- 32 Glide
-- 33 Max Cruise
-- 34 vert Speed
-- 35 ALT ACQ
-- 36 Mach hold (left side)
-- 37 IAS Hold (left side)
-- 38 IAS ACQ 
--
-- 40 Alt inc
-- 41 Alt dec
--
-- 45 HDG left inc
-- 46 HDG left dec
-- 47 HDG right inc
-- 48 HDG right dec
--
-- 50 CRS left inc
-- 51 CRS left dec  
-- 52 CRS right inc
-- 53 CRS right dec
--
-- 55 VS Pitch inc
-- 56 VS Pitch dec
-- 60 SPD inc
-- 61 SPD dec
-- 
-- 70 RAD/INS 1 (left) toggle
-- 71 RAD/INS 2 (right) toggle
--
-- 80 reheat eng1 inc
-- 81 reheat eng1 dec
-- 82 reheat eng2 inc
-- 83 reheat eng2 dec
-- 84 reheat eng3 inc
-- 85 reheat eng3 dec
-- 86 reheat eng4 inc
-- 87 reheat eng4 dec
--
-- 90 Landing lights on
-- 91 Landing lights off
--
-- 92 Taxi lights on
-- 93 Taxi lights off
--
-- 94 Taxi turn lights toggle
--
-- 100 Instr. lights inc
-- 101 Instr. lights dec
--
----------------------Panels
-- 200 Brake, Cabin Pressure, Engine control
-- 201 Air Intakes, sec eng controls
-- 202 upper fuel, lower fuel, nozzle
-- 203 air bleed, hydraulic
-- 204 temperature control, engine stack
-- 205 light controls (Capt, FO, engineer)
-- 206 AC and DC
-- 207 CDU1 +2
-- 208 overhead





------------------------------------------------------------AUTOPILOT
------------------------------------------------------------
-- AP 1 
if ipcPARAM == 10 then


		ipc.control(66587,71084)



-- AP 2 
elseif ipcPARAM == 11 then


		ipc.control(66587,71085)




------------------------------------------------------------ATHR

-- ATHR 1 
elseif ipcPARAM == 12 then

		ipc.control(66587,71080)



-- ATHR 2 
elseif ipcPARAM == 13 then

		ipc.control(66587,71081)




------------------------------------------------------------FD

-- FD1 
elseif ipcPARAM == 14 then

		ipc.control(66587,71082)



-- FD2 
elseif ipcPARAM == 15 then

		ipc.control(66587,71083)





----------------------------------------------------------------Ap functions

-- INS 
elseif ipcPARAM == 20 then

		ipc.control(66587,71063)

-- TRK HDG (sel)
elseif ipcPARAM == 21 then

		ipc.control(66587,71065)

-- HDG (hold)
elseif ipcPARAM == 22 then

		ipc.control(66587,71067)

-- TURB 
elseif ipcPARAM == 23 then

		ipc.control(66587,71068)

-- Pitch hold 
elseif ipcPARAM == 24 then

		ipc.control(66587,71070)

-- Mach hold (right side)
elseif ipcPARAM == 25 then

		ipc.control(66587,71072)

-- Max climb 
elseif ipcPARAM == 26 then

		ipc.control(66587,71074)


-- IAS hold (right side)
elseif ipcPARAM == 27 then

		ipc.control(66587,71076)

-- Alt hold 
elseif ipcPARAM == 28 then

		ipc.control(66587,71078)

-- Back Beam 
elseif ipcPARAM == 29 then

		ipc.control(66587,71064)

-- VOR/LOC 
elseif ipcPARAM == 30 then

		ipc.control(66587,71066)

-- LAND 
elseif ipcPARAM == 31 then

		ipc.control(66587,71071)

-- Glide
elseif ipcPARAM == 32 then

		ipc.control(66587,71073)


-- Max cruise
elseif ipcPARAM == 33 then

		ipc.control(66587,71075)

-- Vert Speed
elseif ipcPARAM == 34 then

		ipc.control(66587,71077)

-- ALT ACQ
elseif ipcPARAM == 35 then

		ipc.control(66587,71079)

-- MACH hold (left side)
elseif ipcPARAM == 36 then

		ipc.control(66587,71060)

-- IAS hold (left side)
elseif ipcPARAM == 37 then

		ipc.control(66587,71061)

-- IAS ACQ
elseif ipcPARAM == 38 then

		ipc.control(66587,71062)


----------------------------------------------------------------AP dials


-- Alt inc
elseif ipcPARAM == 40 then

		ipc.control(66587,71136)


-- Alt dec
elseif ipcPARAM == 41 then

		ipc.control(66587,71135)



-- HDG left inc
elseif ipcPARAM == 45 then

		ipc.control(66587,71107)

-- HDG left dec
elseif ipcPARAM == 46 then

		ipc.control(66587,71108)

-- HDG right inc
elseif ipcPARAM == 47 then

		ipc.control(66587,71129)

-- HDG right dec
elseif ipcPARAM == 48 then

		ipc.control(66587,71128)




-- CRS left inc
elseif ipcPARAM == 50 then

		ipc.control(66587,71110)

-- CRS left dec
elseif ipcPARAM == 51 then

		ipc.control(66587,71109)

-- CRS right inc
elseif ipcPARAM == 52 then

		ipc.control(66587,71121)

-- CRS right dec
elseif ipcPARAM == 53 then

		ipc.control(66587,71122)




-- VS (Pitch) dec
elseif ipcPARAM == 57 then

		ipc.control(66587,73530)



-- VS (Pitch) inc
elseif ipcPARAM == 55 then

		ipc.control(66587,73531)





-- SPD inc
elseif ipcPARAM == 60 then

		ipc.control(66587,71095)


-- SPD dec
elseif ipcPARAM == 61 then

		ipc.control(66587,71096)





-- RAD / INS 1 (left) toggle
elseif ipcPARAM == 70 then

		ipc.control(66587,71050)


-- RAD / INS 2 (right) toggle
elseif ipcPARAM == 71 then

		ipc.control(66587,71051)


----------------------------------------------------Reheat

-- Reheat Eng 1 inc
elseif ipcPARAM == 80 then

		ipc.control(66587,73600)

-- Reheat Eng 1 dec
elseif ipcPARAM == 81 then

		ipc.control(66587,73601)



-- Reheat Eng 2 inc
elseif ipcPARAM == 82 then

		ipc.control(66587,73605)

-- Reheat Eng 2 dec
elseif ipcPARAM == 83 then

		ipc.control(66587,73606)



-- Reheat Eng 3 inc
elseif ipcPARAM == 84 then

		ipc.control(66587,73610)

-- Reheat Eng 3 dec
elseif ipcPARAM == 85 then

		ipc.control(66587,73611)



-- Reheat Eng 4 dec
elseif ipcPARAM == 86 then

		ipc.control(66587,73615)

-- Reheat Eng 4 dec
elseif ipcPARAM == 87 then

		ipc.control(66587,73616)


----------------------------------------------------Lights


-- Landing lights on
elseif ipcPARAM == 90 then

		ipc.control(66587,75505)
		ipc.sleep(150)
		ipc.control(66587,75506)


-- Landing lights off
elseif ipcPARAM == 91 then

		ipc.control(66587,75507)
		ipc.sleep(150)
		ipc.control(66587,75508)



-- Taxi lights on
elseif ipcPARAM == 92 then

		ipc.control(66587,75510)
		ipc.sleep(150)
		ipc.control(66587,75511)


-- Taxi lights off
elseif ipcPARAM == 93 then

		ipc.control(66587,75512)
		ipc.sleep(150)
		ipc.control(66587,75513)


-- Taxi turn lights toggle
elseif ipcPARAM == 94 then

		ipc.control(66587,75500)
		ipc.sleep(100)
		ipc.control(66587,75499)



-- instr lights inc
elseif ipcPARAM == 100 then

		ipc.control(66587,77401)
		ipc.sleep(10)
		ipc.control(66587,77411)


-- instr lights dec
elseif ipcPARAM == 101 then

		ipc.control(66587,77400)
		ipc.sleep(10)
		ipc.control(66587,77410)


-- flood light inc
elseif ipcPARAM == 102 then

		ipc.control(66587,75137)


-- flood light dec
elseif ipcPARAM == 103 then

		ipc.control(66587,75139)

-- flood light full
elseif ipcPARAM == 104 then

		ipc.control(66587,75137)
		ipc.sleep(10)
		ipc.control(66587,75137)

-- flood light off
elseif ipcPARAM == 105 then

		ipc.control(66587,75139)
		ipc.sleep(10)
		ipc.control(66587,75139)


-- all console lights on
elseif ipcPARAM == 106 then

		i = 0
		while i <= 6 do

		ipc.control(66587,75141) -- Glareshield
		ipc.sleep(10)
		ipc.control(66587,75145) -- centre console
		ipc.sleep(10)
		ipc.control(66587,75149) -- centre dash
		ipc.sleep(10)
		ipc.control(66587,75153) -- centre console flood
		ipc.sleep(10)
		ipc.control(66587,75157) -- roof

		i = i + 1
		end


-- all console lights off
elseif ipcPARAM == 107 then

		i = 0
		while i <= 6 do

		ipc.control(66587,75140) -- Glareshield
		ipc.sleep(10)
		ipc.control(66587,75144) -- centre console
		ipc.sleep(10)
		ipc.control(66587,75148) -- centre dash
		ipc.sleep(10)
		ipc.control(66587,75152) -- centre console flood
		ipc.sleep(10)
		ipc.control(66587,75156) -- roof

		i = i + 1
		end


-- Anti Coll lights toggle
elseif ipcPARAM == 110 then

		ipc.control(66587,75010)

-- Nav lights toggle
elseif ipcPARAM == 111 then

		ipc.control(66587,75012)

--------------------------------------------------

-- No smoking toggle 
elseif ipcPARAM == 120 then

		ipc.control(66587,75047)

-- seatbelt toggle
elseif ipcPARAM == 121 then

		ipc.control(66587,75048)


-------------------------------------------------- Eng HP Valves



-- ENG1 HP Valve ON
elseif ipcPARAM == 130 then

		ipc.control(66587,75082)

-- ENG1 HP Valve OFF
elseif ipcPARAM == 131 then

		ipc.control(66587,75083)




-- ENG2 HP Valve ON
elseif ipcPARAM == 132 then

		ipc.control(66587,75084)

-- ENG2 HP Valve OFF
elseif ipcPARAM == 133 then

		ipc.control(66587,75085)





-- ENG3 HP Valve ON
elseif ipcPARAM == 134 then

		ipc.control(66587,75086)

-- ENG3 HP Valve OFF
elseif ipcPARAM == 135 then

		ipc.control(66587,75087)





-- ENG4 HP Valve ON
elseif ipcPARAM == 136 then

		ipc.control(66587,75088)

-- ENG4 HP Valve OFF
elseif ipcPARAM == 137 then

		ipc.control(66587,75089)


-------------------------------------------------- little white AP switches on

-- little white AP switches on
elseif ipcPARAM == 140 then

		ipc.control(66587,75408)
		ipc.sleep(125)
		ipc.control(66587,75410)
		ipc.sleep(125)
		ipc.control(66587,75412)
		ipc.sleep(125)
		ipc.control(66587,75414)
		ipc.sleep(125)
		ipc.control(66587,75416)
		ipc.sleep(125)
		ipc.control(66587,75418)
		ipc.sleep(125)
		ipc.control(66587,75420)
		ipc.sleep(125)
		ipc.control(66587,75422)
		ipc.sleep(125)
		ipc.control(66587,75424)
		ipc.sleep(125)
		ipc.control(66587,75426)
		ipc.sleep(125)
		ipc.control(66587,75428)
		ipc.sleep(125)
		ipc.control(66587,75430)
		ipc.sleep(125)
		ipc.control(66587,75432)
		ipc.sleep(125)
		ipc.control(66587,75434)
		ipc.sleep(125)




-----------------------------------------------------------------Panels

-- Brake, Cabin Pressure, Engine control 
elseif ipcPARAM == 200 then

		ipc.control(66506,8020) --brake control
		ipc.control(66506,8021) --cabin pressure
		ipc.control(66506,8014) --engine control

-- Air Intakes, sec eng controls 
elseif ipcPARAM == 201 then

		ipc.control(66506,8015) --sec engine cpntrol
		ipc.control(66506,8016) --air intake


-- upper fuel, lower fuel, nozzle 
elseif ipcPARAM == 202 then

		ipc.control(66506,8009) --fuel bottom
		ipc.control(66506,8010) --fuel top
		ipc.control(66506,8019) --engine control

-- air bleed, hydraulic 
elseif ipcPARAM == 203 then

		ipc.control(66506,8012) --air bleed
		ipc.control(66506,8011) --hydr


-- temperature control, engine stack
elseif ipcPARAM == 204 then

		ipc.control(66506,8030) --popup engine stack
		ipc.control(66506,8013) --temp control


-- lights
elseif ipcPARAM == 205 then

		ipc.control(66506,8025) --eng lights
		ipc.control(66506,8027) --FO lights
		ipc.control(66506,8026) --Capt lights

-- AC/DC
elseif ipcPARAM == 206 then

		ipc.control(66506,8007) --DC
		ipc.control(66506,8008) --AC

-- CDU1, CDU2
elseif ipcPARAM == 207 then

		ipc.control(66506,8035) --CDU1
		ipc.sleep(50)
		ipc.control(66506,8036) --CDU2

-- Overhead
elseif ipcPARAM == 208 then

		ipc.control(66506,8002) 
		ipc.control(66506,8003) 

end


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.