<?xml version="1.0" encoding="UTF-8" ?>

<PropertyList>

	<sim>
		
		<author>Joshua Davidson (it0uchpods/411)</author>
		<status>beta</status>

		<model>
			<pushback>
				<kp type="double">1000</kp>
				<ki type="double">0</ki>
				<kd type="double">0</kd>
				<position-norm type="double">0</position-norm>
			</pushback>
		</model>

		<startup>
			<splash-texture>Aircraft/A320Family/splash.png</splash-texture>
		</startup>

		<systems>
			<!-- Disable the generic electrical system and use the Nasal system -->
			<electrical>
				<path></path>
			</electrical>
			<!--autopilot>
				<path>Aircraft/A320Family/Systems/it-autoflight.xml</path>
			</autopilot-->
			<!-- Uses slightly modified IT-AUTOFLIGHT Thrust controller. -->
            <autopilot>
                <path>Aircraft/A320Family/Systems/custom-autothrust.xml</path>
            </autopilot>
            <autopilot>
                <path>Aircraft/A320Family/Systems/thrust.xml</path>
            </autopilot>
            <autopilot>
                <name>Custom engine values system</name>
                <path>Aircraft/A320Family/Systems/engine-timing.xml</path>
            </autopilot>
			<autopilot>
				<name>Autobrake</name>
				<path>Aircraft/A320Family/Systems/a320-autobrake.xml</path>
			</autopilot>
			<autopilot>
				<name>Spoilers</name>
				<path>Aircraft/A320Family/Systems/a320-spoilers.xml</path>
			</autopilot>
			<property-rule n="101">
				<path>Systems/fl2070_sound.xml</path>
			</property-rule>
			<property-rule n="102">
				<path>Systems/pfd.xml</path>
			</property-rule>
		</systems>

		<chase-distance-m>-85</chase-distance-m>

		

		<instrumentation>
			<path>Aircraft/A320Family/Systems/instrumentation.xml</path>
		</instrumentation>

		<alarms>
			<master-caution type="bool">false</master-caution>
		</alarms>

		<menubar>
			<default>
				<menu n="3">
					<item>
						<name>autopilot</name>
						<label>Autopilot Settings</label>
						<binding>
							<command>nasal</command>
							<script>
							 var autopilot = gui.Dialog.new("sim/gui/dialogs/autopilot/dialog", "Aircraft/A320Family/Systems/autopilot-dlg.xml");
							 autopilot.open();
							</script>
						</binding>
					</item>
				</menu>
				<menu n="100">
					<enabled type="bool">true</enabled>
					<item>
						<name>autostart</name>
						<label>Autostart</label>
						<binding>
							<command>property-toggle</command>
							<property>sim/model/start-idling</property>
						</binding>
					</item>
					<item>
						<label>Select Livery</label>
						<binding>
							<command>nasal</command>
							<script>
							 aircraft.livery.dialog.open();
							</script>
						</binding>
					</item>
					<item>
						<name>pushback</name>
						<label>Pushback</label>
						<binding>
							<command>dialog-show</command>
							<dialog-name>pushback</dialog-name>
						</binding>
					</item>
				</menu>
			</default>
		</menubar>

		<!-- Multiplayer properties -->
		<multiplay>
			<generic>
				<float n="0" alias="/controls/lighting/dome-norm" />
				<float n="1" alias="/controls/lighting/interior" />
				<int n="2" alias="/controls/lighting/landing-lights[0]" />
				<int n="3" alias="/controls/lighting/landing-lights[1]" />
				<int n="4" alias="/controls/lighting/landing-lights[2]" />
				<int n="5" alias="/sim/model/lights/nav-lights" />
				<int n="6" alias="/sim/model/lights/logo-lights" />
				<int n="7" alias="/sim/model/lights/strobe/state" />
				<int n="8" alias="/controls/lighting/wing-lights" />
				<int n="9" alias="/sim/model/lights/beacon/state" />
				<int n="10" alias="/engines/engine[0]/contrail" />
				<int n="11" alias="/engines/engine[1]/contrail" />
			</generic>
		</multiplay>
	</sim>

	<consumables>
		<fuel>
			<tank n="0">
				<name>Left Wing Vent</name>
			</tank>
			<tank n="1">
				<name>Left Wing Outer</name>
			</tank>
			<tank n="2">
				<name>Left Wing Inner</name>
			</tank>
			<tank n="3">
				<name>Center</name>
			</tank>
			<tank n="4">
				<name>Right Wing Inner</name>
			</tank>
			<tank n="5">
				<name>Right Wing Outer</name>
			</tank>
			<tank n="6">
				<name>Right Wing Vent</name>
			</tank>
			<tank n="7">
				<name>Left Pipes</name>
			</tank>
			<tank n="8">
				<name>Right Pipes</name>
			</tank>
		</fuel>
	</consumables>
	
<it-autoflight>
	<settings>
		<altitude-dial-mode>0</altitude-dial-mode>
		<no-generics>1</no-generics>
		<roll>
			<umin>-0.40</umin>
			<umax>0.40</umax>
			<kp>0.06</kp>
			<kp-vorloc>0.07</kp-vorloc>
			<ti>0.0001</ti>
			<ti-vorloc>0.0001</ti-vorloc>
		</roll>
		<pitch>
			<umin>-0.18</umin>
			<umax>0.18</umax>
			<kp>-0.05</kp>
			<ti>0.0001</ti>
		</pitch>
		<flch>
			<umin>-0.18</umin>
			<umax>0.18</umax>
			<kp>-0.05</kp>
			<ti>0.0001</ti>
		</flch>
		<gs>
			<kp>0.10</kp>
		</gs>
	</settings>
</it-autoflight>

	<payload>
		<weight n="0">
			<name>Crew</name>
			<weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[0]" />
			<min-lb type="double">120</min-lb>
			<max-lb type="double">600</max-lb>
		</weight>
		<weight n="1">
			<name>PAX</name>
			<weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[1]" />
		</weight>
	</payload>

	<autopilot>
		<autobrake>
			<config>
				<idle-throttle type="double">0.1</idle-throttle>
				<pilot-input type="double">0</pilot-input>
			</config>
			<step type="int">0</step>
		</autobrake>
	</autopilot>

	<controls>
		<APU>
			<fire-switch type="bool">false</fire-switch>
			<master-switch type="bool">false</master-switch>
			<starter type="bool">false</starter>
		</APU>
		<electric>
			<avionics-switch type="bool">true</avionics-switch>
		</electric>
		<engines>
			<engine-start-switch type="int">1</engine-start-switch>
			<engine n="0">
				<cutoff type="bool">true</cutoff>
				<cutoff-switch type="bool">true</cutoff-switch>
				<starter type="bool">false</starter>
				<starter-switch type="bool">false</starter-switch>
				<max-athr-thrust type="float">0.94</max-athr-thrust>
			</engine>
			<engine n="1">
				<cutoff type="bool">true</cutoff>
				<cutoff-switch type="bool">true</cutoff-switch>
				<starter type="bool">false</starter>
				<starter-switch type="bool">false</starter-switch>
				<max-athr-thrust type="float">0.94</max-athr-thrust>
			</engine>
			<detents>
				<current type="string">none</current>
				<throttle type="float">0</throttle>
				<rev type="float">-0.59</rev>
				<idle type="float">0</idle>
				<clb type="float">0.72</clb>
				<flex type="float">0.98</flex>
				<toga type="float">1</toga>
			</detents>
		</engines>
		<flight>
			<ground-spoilers-armed type="bool">false</ground-spoilers-armed>
			<speedbrake-lever type="double">0</speedbrake-lever>
		</flight>
		<gear>
			<brake-parking type="bool">true</brake-parking>
            <tiller-cmd-norm type="double">0</tiller-cmd-norm>
			<tiller-enabled type="bool">false</tiller-enabled>
		</gear>
		<lighting>
			<beacon type="bool">false</beacon>
			<interior type="double">0</interior>
			<cockpit type="bool">false</cockpit>
			<cones type="bool">true</cones>
			<dome-norm type="double">0</dome-norm>
			<landing-lights n="0" type="bool">false</landing-lights>
			<landing-lights n="1" type="bool">false</landing-lights>
			<landing-lights n="2" type="bool">false</landing-lights>
			<nav-lights-switch type="int">0</nav-lights-switch>
			<overhead-panel-norm type="double">0.8</overhead-panel-norm>
			<main-panel-pedestal-norm type="double">0.8</main-panel-pedestal-norm>
			<strobe type="bool">false</strobe>
		</lighting>
		<switches>
			<!-- Smoking is bad :P -->
			<no-smoking-sign type="bool">true</no-smoking-sign>
			<seatbelt-sign type="bool">false</seatbelt-sign>
		</switches>
	</controls>
	
	<engines>
		<apu>
			<rpm type="double">0</rpm>
			<on-fire type="bool">false</on-fire>
			<running type="bool">false</running>
			<serviceable type="bool">true</serviceable>
		</apu>
		<engine n="0">
			<on-fire type="bool">false</on-fire>
			<reverser-pos-norm type="double">0</reverser-pos-norm>
			<running type="bool">false</running>
		</engine>
		<engine n="1">
			<on-fire type="bool">false</on-fire>
			<reverser-pos-norm type="double">0</reverser-pos-norm>
			<running type="bool">false</running>
		</engine>
	</engines>

	<gear>
		<gear n="0">
			<tyre-smoke type="int">0</tyre-smoke>
			<sprayspeed-ms type="double">0</sprayspeed-ms>
			<spray-density type="double">0</spray-density>
			<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
		</gear>
		<gear n="1">
			<tyre-smoke type="int">0</tyre-smoke>
			<sprayspeed-ms type="double">0</sprayspeed-ms>
			<spray-density type="double">0</spray-density>
			<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
		</gear>
		<gear n="2">
			<tyre-smoke type="int">0</tyre-smoke>
			<sprayspeed-ms type="double">0</sprayspeed-ms>
			<spray-density type="double">0</spray-density>
			<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
		</gear>
	</gear>

	<instrumentation>
	
		<efis n="0">

			<ecam>
					<display-mode type="string">FCTL</display-mode>
			</ecam>
			
		</efis>
	
		<efis n="1">

			<ecam>
					<display-mode type="string">FCTL</display-mode>
			</ecam>

		</efis>
		
		<tcas><!-- http://wiki.flightgear.org/index.php/TCAS -->
			<serviceable type="bool">true</serviceable><!-- TCAS ENABLE -->
			<inputs>
				<mode type="int">3</mode><!-- 0=off, 1=standby, 2=TA-only, 3=auto(TA/RA) -->
			</inputs>
			<voice>
				<file-prefix type="string">Sounds/tcas/female/</file-prefix>
				<!-- sound file path and prefix -->
			</voice>
			<speaker><!-- Speaker Configuration -->
				<max-dist> 2 </max-dist><!-- Max. distance where speaker is heard -->
				<reference-dist> 1 </reference-dist> <!-- Distance to pilot -->
				<volume> 0.8 </volume> <!-- Volume at reference distance -->
			</speaker>
		</tcas>
		<nav-compass>
			<nav-display n="0" type="int">0</nav-display>
			<nav-display n="1" type="int">0</nav-display>
		</nav-compass>

		<!-- See http://wiki.flightgear.org/index.php/GPWS -->
		<mk-viii>
			<serviceable type="bool">true</serviceable>
			<configuration-module>
				<category-1 type="int">255</category-1>
				<category-3 type="int">2</category-3>
				<category-4 type="int">13</category-4>
				<category-5 type="int">0</category-5>
				<category-6 type="int">1</category-6>
				<category-7 type="int">124</category-7>
				<category-8 type="int">2</category-8>
				<category-9 type="int">3</category-9> 
				<category-10 type="int">6</category-10>
				<category-13 type="int">7</category-13>
				<category-14 type="int">0</category-14>
			</configuration-module>
			<inputs>
				<arinc429>
					<decision-height-ncd type="bool">false</decision-height-ncd>
					<decision-height type="double">250</decision-height>
				</arinc429>
			</inputs>
			<speaker>
				<max-dist type="double">2</max-dist>
				<reference-dist type="double">1</reference-dist>
				<volume type="double">0.2</volume>
			</speaker>
			<voice>
				<file-prefix>Aircraft/A320Family/Sounds/GPWS</file-prefix>
			</voice>
		</mk-viii>
		
		<groundradar>
			<range type="double">1.0</range>
		</groundradar>
		
		<chrono n="0">
			<started type="bool">false</started>
			<paused type="bool">false</paused>
			<text type="string">0' 00'</text>
			<started-at type="int">0</started-at>
			<elapsed-time type="int">0</elapsed-time>
		</chrono>

		<chrono n="1">
			<started type="bool">false</started>
			<paused type="bool">false</paused>
			<text type="string">0' 00'</text>
			<started-at type="int">0</started-at>
			<elapsed-time type="int">0</elapsed-time>
		</chrono>
		
	</instrumentation>
	
	<modes>
		<altimeter>
			<inhg>0</inhg>
		</altimeter>
		<pfd>
			<minimums-mode>DH</minimums-mode>
			<ILS1>false</ILS1>
			<ILS2>false</ILS2>
			<fma>
				<athr-box>O  </athr-box>
			</fma>
		</pfd>
	</modes>

	<input>
		<keyboard>
			<key n="127">
				<name>Delete</name>
				<desc>Toggle thrust reversers</desc>
				<binding>
					<command>nasal</command>
					<script>
					 A320.engine1.reverse_thrust();
					 A320.engine2.reverse_thrust();
					</script>
				</binding>
			</key>
			<key n="2">
				<name>Ctrl-b</name>
				<desc>Cycle speedbrake setting</desc>
				<binding>
					<command>property-cycle</command>
					<property>controls/flight/speedbrake-lever</property>
					<value>0</value>
					<value>0.5</value>
					<value>1</value>
				</binding>
			</key>
		</keyboard>
	</input>

	<aircraft>
		<door n="0">
			<x-m>16.582</x-m>
			<y-m>9.702</y-m>
			<z-m>3.642</z-m>
		</door>
		<jetway-hood-deg type="double">3</jetway-hood-deg>
	</aircraft>

</PropertyList>