---- COUNTER FOR DEVICE ID-----
local count = 0
local function counter()
	count = count + 1
	return count
end
-------DEVICE ID-------
devices = {}
devices["FLI"]	        		= 1     -- 
devices["IDN"]		        	= 2	    -- HSI
devices["ENGINE"]		        = 3     -- 
devices["INSTPANEL"]	        = 4     -- 
devices["VTB"]		        	= 5     -- 
devices["PCA"]		        	= 6     -- 
devices["ENGPANEL"]		        = 7     -- 
devices["PCN"]			        = 9     -- 
devices["INS"]					= 10    -- 
devices["PCR"]		        	= 11    -- 
devices["SERVAL"]		        = 12	-- SERVAL & ECLAIR (Counter Measure dispensers)
devices["PCCM"]			        = 13	-- Poste de Controle Contre Measures (Countermeasures panel)
devices["HYDRAULICS"]	        = 14    -- 
devices["MAGIC"]		        = 15    -- 
devices["SYSLIGHTS"]	        = 16    -- 
devices["CDVE"]			        = 17    -- 
devices["ELEC"]      	        = 18    -- 
devices["VHF"]			        = 19    -- 
devices["UHF"]			        = 20    -- 
devices["INTERCOM"]		        = 21    -- 
devices["MISCPANELS"]	        = 22    -- 
devices["TACAN"]	            = 23    -- 
devices["VORILS"]	            = 24    -- 
devices["ECS"]	                = 25    -- 
devices["PA"]	                = 26    -- 
devices["DDM"]	                = 27	-- Detecteur de Depart Missile (MLWS)
devices["SPIRALE"]              = 28	-- SPIRALE (Countermeasure dispenser)
devices["CAS"]					= 29	-- Calculateur Air Sol (Air Ground Calculator)
devices["SNA"]					= 30	-- Systeme de navigation et d'attaque
devices["Helmet_NVG"]			= 31    -- 
devices["PPA"]					= 32	-- Panneau de Préparation Armement (Weapon Preparation Panel)
devices["RDI"]					= 33	-- Radar Doppler Impulsions (main radar)
devices["DATABUS"]				= 34	-- 
devices["CCLT"]					= 35	-- Calcul Continu Ligne Tracantes (Gun snake)
devices["VTH"]		        	= 36	-- Visee Tete Haute (Head Up Display)
devices["CAA"]		        	= 37	-- Calculateur Air Air	(Air Air Calculator)
devices["RS"]		        	= 38	-- Radio Sonde	(Radar Altimeter)
devices["TAF"]		        	= 39	-- Teleaffichage (Datalink)
devices["CANOPY"]	        	= 40    -- 
devices["SABRE"]	        	= 41	-- SABRE (Jammer)
devices["IFF"]		        	= 42	-- IFF Transponder
devices["CLOCK"]        		= 43    -- 
devices["ADI"]	        		= 44    -- 
devices["AUXADI"]	        	= 45    -- 
devices["S530D"]	        	= 46    -- 



devices["KNEEBOARD"]        	= 100


