jit.off()
--[[
*****************************************************************************************
* Script Name : A333.engine.lua
*
* Author Name :	Jim Gregory
*
* Revisions:
* -- DATE --  --- REV NO ---  --- DESCRIPTION -------------------------------------------
*
*
*
*
*
*****************************************************************************************
*       						   COPYRIGHT © 2021
*					 	   L A M I N A R   R E S E A R C H
*								  ALL RIGHTS RESERVED
*****************************************************************************************
--]]



--*************************************************************************************--
--** 					              XLUA GLOBALS              				     **--
--*************************************************************************************--

--[[

SIM_PERIOD: this contains the duration of the current frame in seconds (so it is alway a
fraction).  Use this to normalize rates,  e.g. to add 3 units of fuel per second in a
per-frame callback you’d do fuel = fuel + 3 * SIM_PERIOD.


IN_REPLAY: evaluates to 0 if replay is off, 1 if replay mode is on

--]]


--*************************************************************************************--
--** 					               CONSTANTS                    				 **--
--*************************************************************************************--



--*************************************************************************************--
--** 					            GLOBAL VARIABLES                				 **--
--*************************************************************************************--
raw_table('A333_epr_takeoff')
A333_epr_takeoff = {
	[-60.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.708, [12000.0] = 1.709, [13000.0] = 1.710, [14000.0] = 1.711, [15000.0] = 1.712, [16000.0] = 1.715},
	 [-8.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.708, [12000.0] = 1.709, [13000.0] = 1.710, [14000.0] = 1.711, [15000.0] = 1.712, [16000.0] = 1.715},
	 [-6.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.708, [12000.0] = 1.709, [13000.0] = 1.710, [14000.0] = 1.711, [15000.0] = 1.712, [16000.0] = 1.711},
	 [-4.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.708, [12000.0] = 1.709, [13000.0] = 1.710, [14000.0] = 1.711, [15000.0] = 1.709, [16000.0] = 1.702},
	 [-2.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.708, [12000.0] = 1.709, [13000.0] = 1.710, [14000.0] = 1.708, [15000.0] = 1.701, [16000.0] = 1.693},
	  [0.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.708, [12000.0] = 1.709, [13000.0] = 1.707, [14000.0] = 1.699, [15000.0] = 1.692, [16000.0] = 1.685},
	  [2.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.708, [12000.0] = 1.706, [13000.0] = 1.699, [14000.0] = 1.691, [15000.0] = 1.684, [16000.0] = 1.678},
	  [4.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.706, [11000.0] = 1.705, [12000.0] = 1.698, [13000.0] = 1.691, [14000.0] = 1.684, [15000.0] = 1.677, [16000.0] = 1.671},
	  [6.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.704, [11000.0] = 1.697, [12000.0] = 1.691, [13000.0] = 1.683, [14000.0] = 1.676, [15000.0] = 1.670, [16000.0] = 1.664},
	  [8.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.699, [10000.0] = 1.697, [11000.0] = 1.690, [12000.0] = 1.682, [13000.0] = 1.675, [14000.0] = 1.669, [15000.0] = 1.663, [16000.0] = 1.657},
	 [10.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.698, [10000.0] = 1.690, [11000.0] = 1.682, [12000.0] = 1.674, [13000.0] = 1.667, [14000.0] = 1.661, [15000.0] = 1.655, [16000.0] = 1.648},
	 [12.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.689, [10000.0] = 1.681, [11000.0] = 1.673, [12000.0] = 1.666, [13000.0] = 1.659, [14000.0] = 1.654, [15000.0] = 1.647, [16000.0] = 1.639},
	 [14.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.688, [9000.0] = 1.683, [10000.0] = 1.672, [11000.0] = 1.664, [12000.0] = 1.658, [13000.0] = 1.651, [14000.0] = 1.644, [15000.0] = 1.638, [16000.0] = 1.630},
	 [16.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.685, [8000.0] = 1.685, [9000.0] = 1.677, [10000.0] = 1.663, [11000.0] = 1.656, [12000.0] = 1.649, [13000.0] = 1.642, [14000.0] = 1.635, [15000.0] = 1.628, [16000.0] = 1.619},
	 [18.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.683, [7000.0] = 1.682, [8000.0] = 1.681, [9000.0] = 1.671, [10000.0] = 1.654, [11000.0] = 1.647, [12000.0] = 1.639, [13000.0] = 1.632, [14000.0] = 1.625, [15000.0] = 1.617, [16000.0] = 1.607},
	 [20.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.681, [6000.0] = 1.680, [7000.0] = 1.679, [8000.0] = 1.678, [9000.0] = 1.664, [10000.0] = 1.645, [11000.0] = 1.637, [12000.0] = 1.629, [13000.0] = 1.622, [14000.0] = 1.615, [15000.0] = 1.606, [16000.0] = 1.596},
	 [22.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.677, [6000.0] = 1.676, [7000.0] = 1.675, [8000.0] = 1.675, [9000.0] = 1.658, [10000.0] = 1.634, [11000.0] = 1.626, [12000.0] = 1.618, [13000.0] = 1.611, [14000.0] = 1.604, [15000.0] = 1.595, [16000.0] = 1.585},
	 [24.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.670, [5000.0] = 1.673, [6000.0] = 1.672, [7000.0] = 1.670, [8000.0] = 1.672, [9000.0] = 1.651, [10000.0] = 1.623, [11000.0] = 1.615, [12000.0] = 1.607, [13000.0] = 1.600, [14000.0] = 1.593, [15000.0] = 1.585, [16000.0] = 1.574},
	 [26.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.663, [5000.0] = 1.669, [6000.0] = 1.665, [7000.0] = 1.662, [8000.0] = 1.669, [9000.0] = 1.641, [10000.0] = 1.611, [11000.0] = 1.603, [12000.0] = 1.596, [13000.0] = 1.589, [14000.0] = 1.582, [15000.0] = 1.574, [16000.0] = 1.563},
	 [28.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.650, [4000.0] = 1.656, [5000.0] = 1.659, [6000.0] = 1.652, [7000.0] = 1.655, [8000.0] = 1.659, [9000.0] = 1.627, [10000.0] = 1.600, [11000.0] = 1.592, [12000.0] = 1.585, [13000.0] = 1.578, [14000.0] = 1.572, [15000.0] = 1.584, [16000.0] = 1.553},
	 [30.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.643, [4000.0] = 1.644, [5000.0] = 1.643, [6000.0] = 1.642, [7000.0] = 1.644, [8000.0] = 1.644, [9000.0] = 1.614, [10000.0] = 1.588, [11000.0] = 1.581, [12000.0] = 1.574, [13000.0] = 1.567, [14000.0] = 1.562, [15000.0] = 1.553, [16000.0] = 1.542},
	 [32.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.622, [3000.0] = 1.630, [4000.0] = 1.628, [5000.0] = 1.628, [6000.0] = 1.629, [7000.0] = 1.629, [8000.0] = 1.629, [9000.0] = 1.601, [10000.0] = 1.577, [11000.0] = 1.570, [12000.0] = 1.563, [13000.0] = 1.557, [14000.0] = 1.551, [15000.0] = 1.543, [16000.0] = 1.532},
	 [34.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.609, [2000.0] = 1.615, [3000.0] = 1.614, [4000.0] = 1.614, [5000.0] = 1.613, [6000.0] = 1.613, [7000.0] = 1.613, [8000.0] = 1.613, [9000.0] = 1.588, [10000.0] = 1.565, [11000.0] = 1.559, [12000.0] = 1.553, [13000.0] = 1.547, [14000.0] = 1.541, [15000.0] = 1.533, [16000.0] = 1.521},
	 [36.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.596, [1000.0] = 1.602, [2000.0] = 1.600, [3000.0] = 1.600, [4000.0] = 1.599, [5000.0] = 1.598, [6000.0] = 1.597, [7000.0] = 1.597, [8000.0] = 1.598, [9000.0] = 1.574, [10000.0] = 1.554, [11000.0] = 1.548, [12000.0] = 1.542, [13000.0] = 1.536, [14000.0] = 1.531, [15000.0] = 1.523, [16000.0] = 1.511},
	 [38.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.568, [0.0] = 1.590, [1000.0] = 1.588, [2000.0] = 1.587, [3000.0] = 1.585, [4000.0] = 1.583, [5000.0] = 1.581, [6000.0] = 1.581, [7000.0] = 1.582, [8000.0] = 1.583, [9000.0] = 1.562, [10000.0] = 1.544, [11000.0] = 1.537, [12000.0] = 1.532, [13000.0] = 1.526, [14000.0] = 1.521, [15000.0] = 1.512, [16000.0] = 1.501},
	 [40.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.561, [0.0] = 1.576, [1000.0] = 1.575, [2000.0] = 1.570, [3000.0] = 1.568, [4000.0] = 1.567, [5000.0] = 1.565, [6000.0] = 1.565, [7000.0] = 1.565, [8000.0] = 1.569, [9000.0] = 1.550, [10000.0] = 1.533, [11000.0] = 1.527, [12000.0] = 1.521, [13000.0] = 1.516, [14000.0] = 1.511, [15000.0] = 1.502, [16000.0] = 1.492},
	 [42.0]	= {[-2000.0] = 1.532, [-1000.0] = 1.547, [0.0] = 1.564, [1000.0] = 1.560, [2000.0] = 1.554, [3000.0] = 1.553, [4000.0] = 1.551, [5000.0] = 1.549, [6000.0] = 1.549, [7000.0] = 1.552, [8000.0] = 1.557, [9000.0] = 1.539, [10000.0] = 1.522, [11000.0] = 1.516, [12000.0] = 1.511, [13000.0] = 1.506, [14000.0] = 1.501, [15000.0] = 1.492, [16000.0] = 1.483},
	 [44.0]	= {[-2000.0] = 1.517, [-1000.0] = 1.535, [0.0] = 1.549, [1000.0] = 1.543, [2000.0] = 1.538, [3000.0] = 1.537, [4000.0] = 1.535, [5000.0] = 1.533, [6000.0] = 1.535, [7000.0] = 1.540, [8000.0] = 1.544, [9000.0] = 1.527, [10000.0] = 1.511, [11000.0] = 1.506, [12000.0] = 1.500, [13000.0] = 1.495, [14000.0] = 1.490, [15000.0] = 1.482, [16000.0] = 1.483},
	 [46.0]	= {[-2000.0] = 1.506, [-1000.0] = 1.522, [0.0] = 1.532, [1000.0] = 1.528, [2000.0] = 1.523, [3000.0] = 1.521, [4000.0] = 1.519, [5000.0] = 1.519, [6000.0] = 1.524, [7000.0] = 1.529, [8000.0] = 1.532, [9000.0] = 1.515, [10000.0] = 1.501, [11000.0] = 1.495, [12000.0] = 1.490, [13000.0] = 1.485, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [48.0]	= {[-2000.0] = 1.495, [-1000.0] = 1.508, [0.0] = 1.518, [1000.0] = 1.513, [2000.0] = 1.508, [3000.0] = 1.506, [4000.0] = 1.506, [5000.0] = 1.507, [6000.0] = 1.512, [7000.0] = 1.517, [8000.0] = 1.520, [9000.0] = 1.504, [10000.0] = 1.490, [11000.0] = 1.485, [12000.0] = 1.479, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [50.0]	= {[-2000.0] = 1.483, [-1000.0] = 1.495, [0.0] = 1.504, [1000.0] = 1.498, [2000.0] = 1.492, [3000.0] = 1.492, [4000.0] = 1.494, [5000.0] = 1.496, [6000.0] = 1.501, [7000.0] = 1.506, [8000.0] = 1.507, [9000.0] = 1.492, [10000.0] = 1.479, [11000.0] = 1.474, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [52.0]	= {[-2000.0] = 1.473, [-1000.0] = 1.483, [0.0] = 1.489, [1000.0] = 1.483, [2000.0] = 1.479, [3000.0] = 1.481, [4000.0] = 1.483, [5000.0] = 1.484, [6000.0] = 1.489, [7000.0] = 1.494, [8000.0] = 1.495, [9000.0] = 1.481, [10000.0] = 1.468, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [54.0]	= {[-2000.0] = 1.462, [-1000.0] = 1.470, [0.0] = 1.475, [1000.0] = 1.471, [2000.0] = 1.468, [3000.0] = 1.470, [4000.0] = 1.472, [5000.0] = 1.472, [6000.0] = 1.477, [7000.0] = 1.483, [8000.0] = 1.483, [9000.0] = 1.469, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [56.0]	= {[-2000.0] = 1.451, [-1000.0] = 1.457, [0.0] = 1.462, [1000.0] = 1.460, [2000.0] = 1.458, [3000.0] = 1.459, [4000.0] = 1.460, [5000.0] = 1.461, [6000.0] = 1.466, [7000.0] = 1.471, [8000.0] = 1.470, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [58.0]	= {[-2000.0] = 1.440, [-1000.0] = 1.446, [0.0] = 1.452, [1000.0] = 1.450, [2000.0] = 1.447, [3000.0] = 1.448, [4000.0] = 1.449, [5000.0] = 1.449, [6000.0] = 1.454, [7000.0] = 1.460, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [60.0]	= {[-2000.0] = 1.430, [-1000.0] = 1.437, [0.0] = 1.442, [1000.0] = 1.439, [2000.0] = 1.436, [3000.0] = 1.437, [4000.0] = 1.438, [5000.0] = 1.437, [6000.0] = 1.443, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [62.0]	= {[-2000.0] = 1.421, [-1000.0] = 1.427, [0.0] = 1.431, [1000.0] = 1.429, [2000.0] = 1.426, [3000.0] = 1.426, [4000.0] = 1.426, [5000.0] = 1.426, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [64.0]	= {[-2000.0] = 1.412, [-1000.0] = 1.417, [0.0] = 1.421, [1000.0] = 1.418, [2000.0] = 1.415, [3000.0] = 1.415, [4000.0] = 1.415, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [66.0]	= {[-2000.0] = 1.403, [-1000.0] = 1.408, [0.0] = 1.411, [1000.0] = 1.408, [2000.0] = 1.404, [3000.0] = 1.404, [4000.0] = 1.404, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [68.0]	= {[-2000.0] = 1.394, [-1000.0] = 1.398, [0.0] = 1.401, [1000.0] = 1.397, [2000.0] = 1.394, [3000.0] = 1.393, [4000.0] = 1.404, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [70.0]	= {[-2000.0] = 1.385, [-1000.0] = 1.388, [0.0] = 1.390, [1000.0] = 1.387, [2000.0] = 1.383, [3000.0] = 1.393, [4000.0] = 1.404, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [72.0]	= {[-2000.0] = 1.376, [-1000.0] = 1.379, [0.0] = 1.380, [1000.0] = 1.376, [2000.0] = 1.383, [3000.0] = 1.393, [4000.0] = 1.404, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [74.0]	= {[-2000.0] = 1.367, [-1000.0] = 1.369, [0.0] = 1.370, [1000.0] = 1.376, [2000.0] = 1.383, [3000.0] = 1.393, [4000.0] = 1.404, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [76.0]	= {[-2000.0] = 1.359, [-1000.0] = 1.360, [0.0] = 1.370, [1000.0] = 1.376, [2000.0] = 1.383, [3000.0] = 1.393, [4000.0] = 1.404, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483},
	 [78.0]	= {[-2000.0] = 1.350, [-1000.0] = 1.360, [0.0] = 1.370, [1000.0] = 1.376, [2000.0] = 1.383, [3000.0] = 1.393, [4000.0] = 1.404, [5000.0] = 1.414, [6000.0] = 1.431, [7000.0] = 1.448, [8000.0] = 1.458, [9000.0] = 1.458, [10000.0] = 1.458, [11000.0] = 1.463, [12000.0] = 1.469, [13000.0] = 1.480, [14000.0] = 1.480, [15000.0] = 1.482, [16000.0] = 1.483}
 }



raw_table('A333_epr_max_cont')
A333_epr_max_cont = {
	[-60.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.673, [35000.0] = 1.704, [39000.0] = 1.695},
	[-38.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.673, [35000.0] = 1.704, [39000.0] = 1.695},
	[-34.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.673, [35000.0] = 1.704, [39000.0] = 1.695},
	[-30.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.673, [35000.0] = 1.704, [39000.0] = 1.695},
	[-26.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.673, [35000.0] = 1.704, [39000.0] = 1.695},
	[-22.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.673, [35000.0] = 1.699, [39000.0] = 1.695},
	[-18.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.673, [35000.0] = 1.675, [39000.0] = 1.676},
	[-14.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.651, [31000.0] = 1.650, [35000.0] = 1.650, [39000.0] = 1.650},
	[-10.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.643, [27000.0] = 1.638, [31000.0] = 1.624, [35000.0] = 1.622, [39000.0] = 1.622},
	 [-6.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.642, [27000.0] = 1.613, [31000.0] = 1.597, [35000.0] = 1.595, [39000.0] = 1.593},
	 [-2.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.664, [23000.0] = 1.618, [27000.0] = 1.587, [31000.0] = 1.570, [35000.0] = 1.567, [39000.0] = 1.565},
	  [2.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.653, [23000.0] = 1.593, [27000.0] = 1.561, [31000.0] = 1.543, [35000.0] = 1.539, [39000.0] = 1.537},
	  [6.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.676, [19000.0] = 1.628, [23000.0] = 1.567, [27000.0] = 1.534, [31000.0] = 1.516, [35000.0] = 1.510, [39000.0] = 1.508},
	 [10.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.620, [15000.0] = 1.654, [19000.0] = 1.603, [23000.0] = 1.541, [27000.0] = 1.508, [31000.0] = 1.489, [35000.0] = 1.482, [39000.0] = 1.479},
	 [14.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.615, [15000.0] = 1.628, [19000.0] = 1.577, [23000.0] = 1.516, [27000.0] = 1.483, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [18.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.589, [15000.0] = 1.602, [19000.0] = 1.552, [23000.0] = 1.491, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [22.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.553, [11000.0] = 1.565, [15000.0] = 1.575, [19000.0] = 1.526, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [26.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.535, [11000.0] = 1.540, [15000.0] = 1.550, [19000.0] = 1.501, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [30.0]	= {[-1000.0] = 1.447, [3000.0] = 1.497, [7000.0] = 1.512, [11000.0] = 1.515, [15000.0] = 1.523, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [34.0]	= {[-1000.0] = 1.447, [3000.0] = 1.486, [7000.0] = 1.489, [11000.0] = 1.491, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [38.0]	= {[-1000.0] = 1.447, [3000.0] = 1.465, [7000.0] = 1.466, [11000.0] = 1.468, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [42.0]	= {[-1000.0] = 1.432, [3000.0] = 1.443, [7000.0] = 1.444, [11000.0] = 1.445, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [46.0]	= {[-1000.0] = 1.412, [3000.0] = 1.422, [7000.0] = 1.423, [11000.0] = 1.445, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [52.0]	= {[-1000.0] = 1.381, [3000.0] = 1.392, [7000.0] = 1.423, [11000.0] = 1.445, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [56.0]	= {[-1000.0] = 1.362, [3000.0] = 1.372, [7000.0] = 1.423, [11000.0] = 1.445, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [60.0]	= {[-1000.0] = 1.343, [3000.0] = 1.372, [7000.0] = 1.423, [11000.0] = 1.445, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479},
	 [64.0]	= {[-1000.0] = 1.325, [3000.0] = 1.372, [7000.0] = 1.423, [11000.0] = 1.445, [15000.0] = 1.497, [19000.0] = 1.476, [23000.0] = 1.466, [27000.0] = 1.457, [31000.0] = 1.463, [35000.0] = 1.482, [39000.0] = 1.479}
}



raw_table('A333_epr_go_around')
A333_epr_go_around = {
	[-60.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.723, [14000.0] = 1.722, [15000.0] = 1.723, [16000.0] = 1.724},
	 [-8.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.723, [14000.0] = 1.722, [15000.0] = 1.723, [16000.0] = 1.724},
	 [-6.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.723, [14000.0] = 1.722, [15000.0] = 1.723, [16000.0] = 1.724},
	 [-4.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.723, [14000.0] = 1.722, [15000.0] = 1.723, [16000.0] = 1.724},
	 [-2.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.723, [14000.0] = 1.722, [15000.0] = 1.723, [16000.0] = 1.714},
	  [0.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.723, [14000.0] = 1.722, [15000.0] = 1.723, [16000.0] = 1.714},
	  [2.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.723, [14000.0] = 1.712, [15000.0] = 1.713, [16000.0] = 1.694},
	  [4.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.723, [13000.0] = 1.713, [14000.0] = 1.703, [15000.0] = 1.693, [16000.0] = 1.683},
	  [6.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.723, [12000.0] = 1.713, [13000.0] = 1.703, [14000.0] = 1.692, [15000.0] = 1.682, [16000.0] = 1.672},
	  [8.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.723, [11000.0] = 1.713, [12000.0] = 1.703, [13000.0] = 1.693, [14000.0] = 1.682, [15000.0] = 1.671, [16000.0] = 1.661},
	 [10.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.713, [11000.0] = 1.703, [12000.0] = 1.693, [13000.0] = 1.682, [14000.0] = 1.671, [15000.0] = 1.660, [16000.0] = 1.649},
	 [12.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.709, [10000.0] = 1.703, [11000.0] = 1.693, [12000.0] = 1.682, [13000.0] = 1.671, [14000.0] = 1.660, [15000.0] = 1.649, [16000.0] = 1.638},
	 [14.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.701, [10000.0] = 1.693, [11000.0] = 1.682, [12000.0] = 1.671, [13000.0] = 1.660, [14000.0] = 1.649, [15000.0] = 1.638, [16000.0] = 1.627},
	 [16.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.693, [9000.0] = 1.692, [10000.0] = 1.682, [11000.0] = 1.671, [12000.0] = 1.660, [13000.0] = 1.649, [14000.0] = 1.638, [15000.0] = 1.627, [16000.0] = 1.616},
	 [18.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.691, [9000.0] = 1.684, [10000.0] = 1.671, [11000.0] = 1.660, [12000.0] = 1.649, [13000.0] = 1.638, [14000.0] = 1.628, [15000.0] = 1.617, [16000.0] = 1.605},
	 [20.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.687, [7000.0] = 1.690, [8000.0] = 1.687, [9000.0] = 1.677, [10000.0] = 1.660, [11000.0] = 1.649, [12000.0] = 1.638, [13000.0] = 1.627, [14000.0] = 1.617, [15000.0] = 1.605, [16000.0] = 1.593},
	 [22.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.684, [6000.0] = 1.684, [7000.0] = 1.688, [8000.0] = 1.682, [9000.0] = 1.669, [10000.0] = 1.649, [11000.0] = 1.638, [12000.0] = 1.627, [13000.0] = 1.617, [14000.0] = 1.606, [15000.0] = 1.594, [16000.0] = 1.582},
	 [24.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.681, [6000.0] = 1.679, [7000.0] = 1.683, [8000.0] = 1.677, [9000.0] = 1.661, [10000.0] = 1.638, [11000.0] = 1.627, [12000.0] = 1.616, [13000.0] = 1.605, [14000.0] = 1.594, [15000.0] = 1.583, [16000.0] = 1.570},
	 [26.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.671, [5000.0] = 1.676, [6000.0] = 1.674, [7000.0] = 1.678, [8000.0] = 1.672, [9000.0] = 1.653, [10000.0] = 1.627, [11000.0] = 1.616, [12000.0] = 1.605, [13000.0] = 1.594, [14000.0] = 1.583, [15000.0] = 1.571, [16000.0] = 1.559},
	 [28.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.669, [5000.0] = 1.670, [6000.0] = 1.669, [7000.0] = 1.665, [8000.0] = 1.667, [9000.0] = 1.645, [10000.0] = 1.616, [11000.0] = 1.605, [12000.0] = 1.594, [13000.0] = 1.583, [14000.0] = 1.572, [15000.0] = 1.560, [16000.0] = 1.559},
	 [30.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.651, [4000.0] = 1.660, [5000.0] = 1.665, [6000.0] = 1.658, [7000.0] = 1.656, [8000.0] = 1.662, [9000.0] = 1.632, [10000.0] = 1.605, [11000.0] = 1.594, [12000.0] = 1.583, [13000.0] = 1.572, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [32.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.650, [4000.0] = 1.651, [5000.0] = 1.650, [6000.0] = 1.646, [7000.0] = 1.648, [8000.0] = 1.647, [9000.0] = 1.619, [10000.0] = 1.593, [11000.0] = 1.582, [12000.0] = 1.571, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [34.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.638, [4000.0] = 1.636, [5000.0] = 1.635, [6000.0] = 1.634, [7000.0] = 1.634, [8000.0] = 1.633, [9000.0] = 1.606, [10000.0] = 1.582, [11000.0] = 1.571, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [36.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.623, [3000.0] = 1.623, [4000.0] = 1.622, [5000.0] = 1.620, [6000.0] = 1.619, [7000.0] = 1.619, [8000.0] = 1.618, [9000.0] = 1.593, [10000.0] = 1.571, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [38.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.609, [2000.0] = 1.609, [3000.0] = 1.608, [4000.0] = 1.607, [5000.0] = 1.605, [6000.0] = 1.604, [7000.0] = 1.604, [8000.0] = 1.604, [9000.0] = 1.580, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [40.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.595, [1000.0] = 1.596, [2000.0] = 1.595, [3000.0] = 1.594, [4000.0] = 1.593, [5000.0] = 1.590, [6000.0] = 1.589, [7000.0] = 1.589, [8000.0] = 1.589, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [42.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.567, [0.0] = 1.583, [1000.0] = 1.582, [2000.0] = 1.581, [3000.0] = 1.580, [4000.0] = 1.577, [5000.0] = 1.574, [6000.0] = 1.573, [7000.0] = 1.574, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [44.0]	= {[-2000.0] = 1.540, [-1000.0] = 1.555, [0.0] = 1.569, [1000.0] = 1.569, [2000.0] = 1.567, [3000.0] = 1.564, [4000.0] = 1.561, [5000.0] = 1.558, [6000.0] = 1.558, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [46.0]	= {[-2000.0] = 1.528, [-1000.0] = 1.542, [0.0] = 1.556, [1000.0] = 1.553, [2000.0] = 1.552, [3000.0] = 1.549, [4000.0] = 1.545, [5000.0] = 1.542, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [48.0]	= {[-2000.0] = 1.515, [-1000.0] = 1.529, [0.0] = 1.538, [1000.0] = 1.537, [2000.0] = 1.536, [3000.0] = 1.533, [4000.0] = 1.529, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [50.0]	= {[-2000.0] = 1.502, [-1000.0] = 1.514, [0.0] = 1.523, [1000.0] = 1.522, [2000.0] = 1.520, [3000.0] = 1.517, [4000.0] = 1.513, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [52.0]	= {[-2000.0] = 1.490, [-1000.0] = 1.501, [0.0] = 1.508, [1000.0] = 1.507, [2000.0] = 1.505, [3000.0] = 1.501, [4000.0] = 1.513, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [54.0]	= {[-2000.0] = 1.479, [-1000.0] = 1.488, [0.0] = 1.493, [1000.0] = 1.492, [2000.0] = 1.489, [3000.0] = 1.501, [4000.0] = 1.513, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [56.0]	= {[-2000.0] = 1.467, [-1000.0] = 1.475, [0.0] = 1.479, [1000.0] = 1.476, [2000.0] = 1.489, [3000.0] = 1.501, [4000.0] = 1.513, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [58.0]	= {[-2000.0] = 1.456, [-1000.0] = 1.462, [0.0] = 1.464, [1000.0] = 1.476, [2000.0] = 1.489, [3000.0] = 1.501, [4000.0] = 1.513, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [60.0]	= {[-2000.0] = 1.445, [-1000.0] = 1.449, [0.0] = 1.464, [1000.0] = 1.476, [2000.0] = 1.489, [3000.0] = 1.501, [4000.0] = 1.513, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559},
	 [62.0]	= {[-2000.0] = 1.434, [-1000.0] = 1.449, [0.0] = 1.464, [1000.0] = 1.476, [2000.0] = 1.489, [3000.0] = 1.501, [4000.0] = 1.513, [5000.0] = 1.526, [6000.0] = 1.542, [7000.0] = 1.559, [8000.0] = 1.574, [9000.0] = 1.567, [10000.0] = 1.559, [11000.0] = 1.560, [12000.0] = 1.560, [13000.0] = 1.560, [14000.0] = 1.561, [15000.0] = 1.560, [16000.0] = 1.559}
}






--*************************************************************************************--
--** 					            LOCAL VARIABLES                 				 **--
--*************************************************************************************--



--*************************************************************************************--
--** 				             FIND X-PLANE DATAREFS            			    	 **--
--*************************************************************************************--

simDR_engines_running			= find_dataref("sim/flightmodel/engine/ENGN_running")
simDR_OAT 						= find_dataref("sim/cockpit2/temperature/outside_air_temp_degc")
simDR_TAT 						= find_dataref("sim/weather/aircraft/temperature_leadingedge_deg_c")
simDR_altitude_msl				= find_dataref("sim/cockpit2/gauges/indicators/altitude_ft_pilot")
simDR_engine_inlet_heat			= find_dataref("sim/cockpit2/ice/ice_inlet_heat_on_per_engine")
simDR_wing_surface_heat			= find_dataref("sim/cockpit2/ice/ice_surfce_heat_on")
simDR_duct_isol_valve_left		= find_dataref("sim/cockpit2/bleedair/actuators/isol_valve_left")
simDR_duct_isol_valve_right		= find_dataref("sim/cockpit2/bleedair/actuators/isol_valve_right")
simDR_engine_EPR 				= find_dataref("sim/flightmodel/engine/ENGN_EPR")
simDR_flex_temp					= find_dataref("sim/flightmodel/engine/ENGN_assumed_temp")

--*************************************************************************************--
--** 				             FIND X-PLANE COMMANDS                   	    	 **--
--*************************************************************************************--



--*************************************************************************************--
--** 				             FIND CUSTOM DATAREFS             			    	 **--
--*************************************************************************************--





--*************************************************************************************--
--** 				             FIND CUSTOM COMMANDS								**--
--*************************************************************************************--

A333DR_ecam_testNum				= find_dataref("laminar/A333/ecam/testNum")

A333DR_pack1_flow_ratio			= find_dataref("laminar/A333/pressurization/pack_flow1_ratio", "number")
A333DR_pack2_flow_ratio			= find_dataref("laminar/A333/pressurization/pack_flow2_ratio", "number")
A333DR_pack_isol_valve_pos		= find_dataref("laminar/A333/pressurization/knobs/pack_isol_valve_pos")
A333DR_pack_1_button_pos		= find_dataref("laminar/A333/buttons/pack_1_pos")
A333DR_pack_2_button_pos		= find_dataref("laminar/A333/buttons/pack_2_pos")
A333DR_apu_button_pos			= find_dataref("laminar/A333/buttons/apu_bleed_pos")
A333DR_eng1_bleed_button_pos	= find_dataref("laminar/A333/buttons/eng_bleed_1_pos")
A333DR_eng2_bleed_button_pos	= find_dataref("laminar/A333/buttons/eng_bleed_2_pos")

A333DR_trent700_n2_eng1			= find_dataref("laminar/A333/trent700/n2_eng1")
A333DR_trent700_n2_eng2			= find_dataref("laminar/A333/trent700/n2_eng2")

A333DR_trent700_n3_eng1			= find_dataref("laminar/A333/trent700/n3_eng1")
A333DR_trent700_n3_eng2			= find_dataref("laminar/A333/trent700/n3_eng2")




--*************************************************************************************--
--** 				        CREATE READ-ONLY CUSTOM DATAREFS               	         **--
--*************************************************************************************--

A333DR_epr_limit_to				= create_dataref("laminar/A333/engine/epr_limit_to", "array[3]")
A333DR_epr_limit_flex			= create_dataref("laminar/A333/engine/epr_limit_flex", "array[3]")
A333DR_epr_limit_mc				= create_dataref("laminar/A333/engine/epr_limit_mc", "array[3]")
A333DR_epr_limit_ga				= create_dataref("laminar/A333/engine/epr_limit_ga", "array[3]")



--*************************************************************************************--
--** 				       READ-WRITE CUSTOM DATAREF HANDLERS     	        	     **--
--*************************************************************************************--



--*************************************************************************************--
--** 				       CREATE READ-WRITE CUSTOM DATAREFS                         **--
--*************************************************************************************--



--*************************************************************************************--
--** 				            CUSTOM COMMAND HANDLERS            				     **--
--*************************************************************************************--



--*************************************************************************************--
--** 				             CREATE CUSTOM COMMANDS              			     **--
--*************************************************************************************--



--*************************************************************************************--
--** 				          X-PLANE WRAP COMMAND HANDLERS              	    	 **--
--*************************************************************************************--



--*************************************************************************************--
--** 				              WRAP X-PLANE COMMANDS                  	    	 **--
--*************************************************************************************--


--*************************************************************************************--
--** 				         X-PLANE REPLACE COMMAND HANDLERS              	    	 **--
--*************************************************************************************--



--*************************************************************************************--
--** 				            REPLACE X-PLANE COMMANDS                  	    	 **--
--*************************************************************************************--



--*************************************************************************************--
--** 					          OBJECT CONSTRUCTORS         		        		 **--
--*************************************************************************************--



--*************************************************************************************--
--** 				                 CREATE OBJECTS              	     			 **--
--*************************************************************************************--



--*************************************************************************************--
--** 				              FUNCTION DEFINITIONS         	    				 **--
--*************************************************************************************--

function rescale(in1, out1, in2, out2, x)

	if x < in1 then return out1 end
	if x > in2 then return out2 end
	if in2 - in1 == 0 then return out1 + (out2 - out1) * (x - in1) end
	return out1 + (out2 - out1) * (x - in1) / (in2 - in1)

end








function rescale2(in1, out1, in2, out2, x)

	if in2 - in1 == 0 then return 0.0 end
	return out1 + (out2 - out1) * (x - in1) / (in2 - in1)

end







--*************************************************************************************--
--** 				                   PROCESSING             	     	  			 **--
--*************************************************************************************--



--*************************************************************************************--
--** 				                 EVENT CALLBACKS           	    	 			 **--
--*************************************************************************************--

--function aircraft_load() end

--function aircraft_unload() end

--function flight_start() end

--function flight_crash() end

--function before_physics() end

--function after_physics() end

--function after_replay() end





--*************************************************************************************--
--** 				               SUB-SCRIPT LOADING             	     			 **--
--*************************************************************************************--

dofile("A333.engine02.lua")
--dofile("A333.engine03_bleed.lua")
dofile("A333.engine99.lua")





