<?xml version="1.0"?>
<!--

************************************************************************

Hurricane IIb simulation config. This files ties together all the components

used by FGFS to represent the aircraft. Components include the flight data 

model, instrument panel, sound, electrical and external 3D model.



May 2005 Vivian Meazza, vivian.meazza at lineone.net

************************************************************************

-->
<PropertyList>

	<engines>
		<engine>
			<rpm type="double">750</rpm>
			<rad-flap-norm type="double">0</rad-flap-norm>
			<primer type = "int">0</primer>
		</engine>
	</engines>
	<consumables>
		<fuel>
			<tank n="0">
				<name type="string">Port</name>
				<capacity-gal_imp>33.0</capacity-gal_imp>
				<level-gal_imp>32.5</level-gal_imp>
				<density-ppg>6.0</density-ppg>
				<selected type="bool">1</selected>
			</tank>
			<tank n="1">
				<name type="string">Stbd</name>
				<capacity-gal_imp>33.0</capacity-gal_imp>
				<level-gal_imp>32.5</level-gal_imp>
				<density-ppg>6.0</density-ppg>
				<selected type="bool">1</selected>
			</tank>
			<tank n="2">
				<name type="string">Reserve</name>
				<capacity-gal_imp>28.0</capacity-gal_imp>
				<level-gal_imp>27.5</level-gal_imp>
				<density-ppg>6.0</density-ppg>
				<selected type="bool">0</selected>
			</tank>
		</fuel>
		<oxygen>
			<tank n="0">
				<name type="string">1</name>
				<capacity-cu-ft type="double">0.4</capacity-cu-ft>
				<level-cu-ft type="double">54</level-cu-ft>
				<selected type="bool">1</selected>
			</tank>
		</oxygen>
		<air>
			<tank n="0">
				<name type="string">1</name>
				<capacity-cu-ft type="double">0.4</capacity-cu-ft>
				<level-cu-ft type="double">16.326</level-cu-ft>
				<selected type="bool">1</selected>
			</tank>
		</air>
	</consumables>
	<!-- set up control properties ... -->
	<controls>
		<fuel>
			<crossfeed type ="int">1</crossfeed>
		</fuel>
		<engines>
			<engine n="0">
				<mag-switch-left type="bool">0</mag-switch-left>
				<mag-switch-right type="bool">0</mag-switch-right>
				<magnetos>0</magnetos>
				<cutoff-pull-norm type="double">0</cutoff-pull-norm>
				<fuel-cock>
					<lever type="double">1</lever>
				</fuel-cock>
				<mixture-lever type="double">1</mixture-lever>
				<!--<primer type = "int">0</primer>-->
				<primer-pump type = "bool">0</primer-pump>
				<boost type= "double">0.633</boost>
				<cutout type= "bool">0</cutout>
				<rad-flap-norm type="double">0</rad-flap-norm>
			</engine>
		</engines>
		<gear>
			<brake-parking>1</brake-parking>
			<tailwheel-lock>false</tailwheel-lock>
			<antiskid>0</antiskid>
			<canopy>
				<position-norm type="double">1</position-norm>
			</canopy>
		</gear>
		<flight>
			<aileron-trim>-0.06</aileron-trim>
			<flaps-alternate-extension type="double">1</flaps-alternate-extension>
			<elevator-trim>0</elevator-trim>
			<door-position-norm type="double">1</door-position-norm>
			<wing-fold>1</wing-fold>
			<canopy-slide type="bool">1</canopy-slide>
		</flight>
		<hydraulic>
			<lever type="double">1</lever>
			<lever type="double">1</lever>
			<wheels type="double">1</wheels>
			<system>
				<engine-pump type="bool">true</engine-pump>
			</system>
		</hydraulic>
		<pneumatic>
			<lever type="double">0</lever>
			<lever type="double">0</lever>
			<lever type="double">0</lever>
			<system>
				<engine-pump type="bool">true</engine-pump>
			</system>
		</pneumatic>
		<switches>
			<fuel-gauge>0</fuel-gauge>
			<fuel-gauge-sel type="int">2</fuel-gauge-sel>
			<gun-sight-main>0</gun-sight-main>
			<gun-sight-dimmer>0</gun-sight-dimmer>
		</switches>
		<lighting>
			<nav-lights>false</nav-lights>
			<landing-light type="int">0</landing-light>
		</lighting>
	</controls>
	<gear>
		<gear n="0"
					type="double">1</gear>
		<gear n="1"
					type="double">1</gear>
		<gear n="2"
					type="double">1</gear>
	</gear>
	<surface-positions>
		<wing-fold-pos-norm type="double">1</wing-fold-pos-norm>
	</surface-positions>
	<systems>
		<hydraulic>
			<outputs>
				<gear n="1"
							type="double">1</gear>
				<gear n="2"
							type="double">1</gear>
			</outputs>
		</hydraulic>
	</systems>

	<sim include="help.xml">
		<description type="string">Hawker Hurricane IIb (Rembrandt)</description>
		<author type="string">Vivian Meazza</author>
		<status>production</status>
		<rating>
			<FDM type="int">5</FDM>
			<systems type="int">5</systems>
			<cockpit type="int">5</cockpit>
			<model type="int">5</model>
		</rating>
		<flight-model>yasim</flight-model>
		<aero>hurricaneIIb</aero>
		<startup>
			<splash-texture>Aircraft/Hurricane/Hurricane-splash.png</splash-texture>
		</startup>
		<fuel-fraction>1</fuel-fraction>
		<systems>
			<!--<autopilot>
				<path>Aircraft/Hurricane/Systems/hurricane-autopilot.xml</path>
			</autopilot>-->
			<electrical>
				<path>Aircraft/Hurricane/Systems/electrical.xml</path>
			</electrical>
			<vacuum>
				<serviceable>true</serviceable>
			</vacuum>
		</systems>
		<instrumentation>
			<path>Aircraft/Hurricane/Systems/instrumentation.xml</path>
		</instrumentation>
		<submodels>
			<serviceable type="bool">true</serviceable>
			<path>Aircraft/Hurricane/Models/hurricane-submodels.xml</path>
		</submodels>
		<virtual-cockpit archive="y">true</virtual-cockpit>
		<allow-toggle-cockpit archive="y">false</allow-toggle-cockpit>
		<sound>
			<audible>true</audible>
			<path>Aircraft/Hurricane/Sounds/hurricane-sound.xml</path>
		</sound>
		<hud>
			<path n="1">Aircraft/Hurricane/Systems/hurricane-sight.xml</path>
			<visibility n="1">true</visibility>
			<font>
				<size type="float">10.0</size>
			</font>
			<palette>
				<color n="0">
					<!-- day -->
					<red type="float">1.0</red>
					<green type="float">0.4</green>
					<blue type="float">0.0</blue>
				</color>
			</palette>
		</hud>
		<aim>
			<active type="bool">false</active>
			<tachy type="bool">false</tachy>
			<align type="bool">false</align>
			<radius type="float">1</radius>
			<speed-fps type="float">2755.9</speed-fps>
			<range-yds type="float">550</range-yds>
			<arc>
				<start-deg type="float">10</start-deg>
				<stop-deg type="float">270</stop-deg>
			</arc>
			<offsets>
				<x type="float">-15</x>
				<y type="float">-10</y>
			</offsets>
			<compression-factor type ="float">2</compression-factor>
		</aim>
		<panel>
			<path>Aircraft/Generic/Panels/generic-vfr-panel.xml</path>
			<visibility>false</visibility>
		</panel>
		<model>
			<path>Aircraft/Hurricane/Models/hurricane_model_r.xml</path>
		</model>

		<rendering>
			<camera-group>
				<znear type="double">0.1</znear>
			</camera-group>
		</rendering>
		<view n="0">
			<internal archive="y">true</internal>
			<!--3.75921	0.707925	0.0318054-->
			<config>
				<x-offset-m archive="y"
										type="double">0.0</x-offset-m>
				<y-offset-m archive="y"
										type="double">0.70</y-offset-m>
				<z-offset-m archive="y"
										type="double">3.76</z-offset-m>
				<pitch-offset-deg>-10</pitch-offset-deg>
				<limits>
					<enabled type="bool">true</enabled>
					<left>
						<heading-max-deg type="double">145</heading-max-deg>
						<x-offset-max-m type="double">0.16</x-offset-max-m>
						<x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
					</left>
					<right>
						<heading-max-deg type="double">145</heading-max-deg>
						<x-offset-max-m type="double">0.16</x-offset-max-m>
						<x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
					</right>
				</limits>
			</config>
		</view>
		<view n="1">
			<config>
				<target-z-offset-m archive="y"
													 type="double">3.4</target-z-offset-m>
			</config>
		</view>
		<view n="2">
			<config>
				<target-z-offset-m archive="y"
													 type="double">3.4</target-z-offset-m>
			</config>
		</view>
		<view n="3">
			<config>
				<target-z-offset-m archive="y"
													 type="double">3.4</target-z-offset-m>
			</config>
		</view>
		<view n="4">
			<config>
				<target-z-offset-m archive="y"
													 type="double">3.4</target-z-offset-m>
			</config>
		</view>
		<view n="5">
			<config>
				<target-z-offset-m archive="y"
													 type="double">3.4</target-z-offset-m>
			</config>
		</view>
		<view n="6">
			<config>
				<target-z-offset-m archive="y"
													 type="double">3.4</target-z-offset-m>
			</config>
		</view>

		<flaps>
			<setting>0.00</setting>
			<setting>1.00</setting>
		</flaps>

		<alarms>
			<gear-warn type="double">0</gear-warn>
		</alarms>

		<tutorials>
			<tutorial include="Tutorials/startup_tutorial.xml"/>
		</tutorials>

		<menubar>
			<default>
				<menu n="10">
					<label>Hurricane</label>
					<enabled type="bool">true</enabled>
					<item>
						<label>Toggle pilot model</label>
						<binding>
							<command>property-toggle</command>
							<property>sim/model/hurricane/show-pilot</property>
						</binding>
					</item>
					<item>
						<label>Flashlight</label>
						<binding>
							<command>property-toggle</command>
							<property>controls/lighting/flashlight</property>
						</binding>
					</item>
				</menu>
			</default>
		</menubar>

		<hurricane>
			<show-pilot archive="y"
									type="bool">true</show-pilot>
		</hurricane>

		<multiplay>
			<generic>
				<string n="0"
								alias="/sim/submodels/path"/>
				<int n="0"
						 alias="/engines/engine[0]/running"/>
				<int n="1"
						 alias="/gear/gear[0]/tyre-smoke"/>
				<int n="2"
						 alias="/gear/gear[1]/tyre-smoke"/>
				<int n="3"
						 alias="/gear/gear[2]/tyre-smoke"/>
				<int n="4"
						 alias="/controls/lighting/nav-lights"/>
				<int n="5"
						 alias="/controls/armament/trigger"/>
				<int n="6"
						 alias="/controls/lighting/landing-light"/>
				<float n="0"
							 alias="/gear/gear[0]/sprayspeed-ms"/>
				<float n="1"
							 alias="/gear/gear[1]/sprayspeed-ms"/>
				<float n="2"
							 alias="/gear/gear[2]/sprayspeed-ms"/>
				<float n="3"
							 alias="/gear/gear[0]/spray-density"/>
				<float n="4"
							 alias="/gear/gear[1]/spray-density"/>
				<float n="5"
							 alias="/gear/gear[2]/spray-density"/>
				<float n="6"
							 alias="/position/altitude-agl-ft"/>
				<float n="7"
							 alias="/gear/gear/caster-angle-deg"/>
				<float n="8"
							 alias="/controls/engines/engine[0]/throttle"/>
				<float n="9"
							 alias="/gear/canopy/position-norm"/>
				<float n="10"
							 alias="/controls/flight/door-position-norm"/>
				<float n="11"
							 alias="/sim/time/hobbs/engine[0]"/>
				<float n="12"
							 alias="/engines/engine/rad-flap-norm"/>
			</generic>
		</multiplay>

	</sim>


	<!-- ================ map keyboard ================ -->
	<input>
		<keyboard>
			<key n="2">
				<name>Ctrl-B</name>
				<desc>Toggle engine boost.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.toggleBoost();
					</script>
				</binding>
			</key>

			<!-- map keys for rudder trim -->
			<key n="60">
				<name>&lt;</name>
				<desc>Rudder Trim Left</desc>
				<repeatable>true</repeatable>
				<binding>
					<command>property-adjust</command>
					<property>/controls/flight/rudder-trim</property>
					<min type="double">-3.0</min>
					<step type="double">-0.01</step>
				</binding>
			</key>

			<key n="62">
				<name>&gt;</name>
				<desc>Rudder Trim Right</desc>
				<repeatable>true</repeatable>
				<binding>
					<command>property-adjust</command>
					<property>/controls/flight/rudder-trim</property>
					<max type="double">3.0</max>
					<step type="double">0.01</step>
				</binding>
			</key>

			<!--map keys for foot/handhold open/close -->
			<key n="68">
				<name>D</name>
				<desc>Door Fold Down.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.openDoor(1);
					</script>
				</binding>
			</key>
			<key n="100">
				<name>d</name>
				<desc>Door Fold Up.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.openDoor(0);
					</script>
				</binding>
			</key>
			<key n="4">
				<name>CTRL D</name>
				<desc>Door Fold Toggle.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.toggleDoor();
					</script>
				</binding>
			</key>

			<key n="6">
				<name>Ctrl-F</name>
				<desc>Toggle Wingfold.</desc>
				<binding>
					<command>property-toggle</command>
					<property>controls/flight/wing-fold</property>
				</binding>

			</key>
			<key n="12">
				<name>Ctrl-L</name>
				<desc>Toggle Tailwheel Lock.</desc>
				<binding>
					<command>property-toggle</command>
					<property>controls/gear/tailwheel-lock</property>
				</binding>
			</key>
			<!--     map keys for wing fold - used for canopy control -->
			<key n="70">
				<name>F</name>
				<desc>Close Canopy.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.openCanopy(1);
					</script>
				</binding>
			</key>
			<key n="102">
				<name>f</name>
				<desc>Close Canopy.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.openCanopy(0);
					</script>
				</binding>
			</key>

			<!-- map keys for radiator flap -->
			<key n="72">
				<name>H</name>
				<desc>Radiator Flap down.</desc>
				<binding>
					<command>property-assign</command>
					<property>controls/engines/engine/rad-flap-norm</property>
					<value type="double">0.334</value>
				</binding>
			</key>
			<key n="104">
				<name>h</name>
				<desc>Radiator Flap Up.</desc>
				<binding>
					<command>property-assign</command>
					<property>controls/engines/engine/rad-flap-norm</property>
					<value type="double">0.0</value>
				</binding>
			</key>

			<!-- map keys for Cancel Gear Warning  -->
			<key n="107">
				<name>k</name>
				<desc>Gear Warn Toggle.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.toggleGearWarn();
					</script>
				</binding>
			</key>
			<key n="75">
				<name>K</name>
				<desc>Gear Warn Toggle.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.toggleGearWarn();
					</script>
				</binding>
			</key>

			<!-- map keys for seat vertical adjust -->
			<key n="21">
				<name>CTRL-U</name>
				<desc>Seat Default.</desc>
				<binding>
					<command>property-assign</command>
					<property>/controls/seat/vertical-adjust</property>
					<value type="double">0</value>
				</binding>
				<binding>
					<condition>
						<equals>
							<property>sim/current-view/view-number</property>
							<value>0</value>
						</equals>
					</condition>
					<command>property-assign</command>
					<property>sim/current-view/y-offset-m</property>
					<value type="double">0.70</value>
				</binding>
			</key>
			<key n="85">
				<name>U</name>
				<desc>Seat Down.</desc>
				<binding>
					<command>property-adjust</command>
					<property>/controls/seat/vertical-adjust</property>
					<step type="double">-0.01</step>
					<min type="double">-0.05</min>
					<max type="double">0.05</max>
				</binding>
				<binding>
					<condition>
						<equals>
							<property>sim/current-view/view-number</property>
							<value>0</value>
						</equals>
					</condition>
					<command>property-adjust</command>
					<property>sim/current-view/y-offset-m</property>
					<step type="double">-0.01</step>
					<min type="double">0.64</min>
					<max type="double">0.74</max>
				</binding>
			</key>
			<key n="117">
				<name>u</name>
				<desc>Seat Up.</desc>
				<binding>
					<command>property-adjust</command>
					<property>controls/seat/vertical-adjust</property>
					<step type="double">0.01</step>
					<min type="double">-0.05</min>
					<max type="double">0.05</max>
				</binding>
				<binding>
					<condition>
						<equals>
							<property>sim/current-view/view-number</property>
							<value>0</value>
						</equals>
					</condition>
					<command>property-adjust</command>
					<property>sim/current-view/y-offset-m</property>
					<step type="double">0.01</step>
					<min type="double">0.64</min>
					<max type="double">0.74</max>
				</binding>
			</key>
			
			<!-- map keys for mag switches  -->
			<key n="123">
				<name>{</name>
				<desc>Mag Switch Left Toggle.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.toggleleftMagswitch();
					</script>
				</binding>
			</key>
			<key n="125">
				<name>}</name>
				<desc>Mag Switch Right Toggle.</desc>
				<binding>
					<command>nasal</command>
					<script>
						hurricane.togglerightMagswitch();
					</script>
				</binding>
			</key>

			<!-- map keys for fuel cocks  -->
			<key n="40">
				<name>(</name>
				<desc>Fuel Cock Close.</desc>
				<binding>
					<command>nasal</command>
					<script>
						fuel.openCock(-1);
					</script>
				</binding>
			</key>
			<key n="41">
				<name>)</name>
				<desc>Fuel Cock Open.</desc>
				<binding>
					<command>nasal</command>
					<script>
						fuel.openCock(1);
					</script>
				</binding>
			</key>

			<!-- map keys for priming pump -->
			<key n="73">
				<name>I</name>
				<desc>Operate Priming Pump.</desc>
				<binding>
					<command>nasal</command>
					<script>
						fuel.pumpPrimer(1);
					</script>
				</binding>
				<mod-up>
					<binding>
						<command>nasal</command>
						<script>
							fuel.pumpPrimer(0);
						</script>
					</binding>
				</mod-up>
			</key>

			<!-- map keys for catapult launch Sea hurrcane to come someday-->
			<key n="67">
				<name>C</name>
				<desc>Catapult Launch Command.</desc>
				<binding>
					<command>property-toggle</command>
					<property>/controls/gear/catapult-launch-cmd</property>
				</binding>
			</key>
			
			<!-- map keys for launch-bar -->
			<key n="76">
				<name>L</name>
				<desc>Launch-bar engage.</desc>
				<binding>
					<command>property-toggle</command>
					<property>/controls/gear/launchbar</property>
				</binding>
			</key>
			
			<!-- map keys for arrester hook -->
			<key n="79">
				<name>O</name>
				<desc>Hook down.</desc>
				<binding>
					<command>property-assign</command>
					<property>controls/gear/tailhook</property>
					<value type="double">1.0</value>
				</binding>
			</key>

		</keyboard>
	</input>
	
	<!-- instruments -->
	<instrumentation>
		<fuel>
			<serviceable type="bool">1</serviceable>
		</fuel>
	</instrumentation>
	
	<!-- weights -->
	<yasim>
		<weights>
			<pilot-lb type="double">200</pilot-lb>
			<round-lb type="double">0.33</round-lb>
		</weights>
	</yasim>
	
	<!-- nasal stuff -->
	<nasal>
		<hurricane-fuel>
			<module>fuel</module>
			<file>Aircraft/Hurricane/Systems/fuel.nas</file>
		</hurricane-fuel>
		<hurricane>
			<file>Aircraft/Hurricane/Nasal/hurricane.nas</file>
		</hurricane>
		<input-filter>
			<file>Aircraft/Hurricane/Nasal/input.nas</file>
		</input-filter>
		<oxygen>
			<file>Aircraft/Generic/Oxygen/oxygen.nas</file>
		</oxygen>
		<pneumatic>
			<file>Aircraft/Hurricane/Systems/pneumatic.nas</file>
		</pneumatic>
		<hydraulic>
			<file>Aircraft/Hurricane/Systems/hydraulic.nas</file>
		</hydraulic>
		<!--<recoil>
					<file>Aircraft/Hurricane/Models/recoil.nas</file>
				</recoil>-->
	</nasal>
</PropertyList>
