<?xml version="1.0"?>

<PropertyList>

    <input>
        <keyboard include="Harrier-GR3-keyboard.xml"/>
    </input>
    
    <sim>

        <!-- Info -->
        <description>Hawker Siddeley Harrier GR3</description>
        <long-description>The Hawker Siddeley Harrier, developed in the 1960s, was the
    			first of the Harrier Jump Jet series of aircraft. It was the first
    			operational close-support and reconnaissance fighter aircraft with
    			vertical/short takeoff and landing (V/STOL) capabilities and the only
    			truly successful V/STOL design of the many that arose in that era.</long-description>
        <tags>
            <tag>fighter</tag>
            <tag>1970s</tag>
            <tag>1980s</tag>
            <tag>1990s</tag>
            <tag>high-wing</tag>
            <tag>retractable-gear</tag>
            <tag>stol</tag>
            <tag>vtol</tag>
            <tag>jet</tag>
            <tag>refuel</tag>
            <tag>single-engine</tag>
        </tags>
        <author>Petar Jedvaj, Andy Ross, Gary Brown, StuartC, Raptor, Brendan Black, Julian Smith, Ludovic Brenta</author>
        <aircraft-version>3.3.2</aircraft-version>
        <status>beta</status>
        <rating>
            <FDM type="int">4</FDM>
            <systems type="int">1</systems>
            <cockpit type="int">3</cockpit>
            <model type="int">5</model>
        </rating>

        <flight-model>yasim</flight-model>
        <aero>Harrier-GR3</aero>
        <fuel-fraction>1</fuel-fraction>

        <startup>
            <splash-texture>Aircraft/Harrier-GR3/Splash.png</splash-texture>
        </startup>
        
        <!-- Set properties that are saved to .fgfs/aircraft-data/harrier-gr3. -->
        <aircraft-data>
            <path>/sim/terrain-map</path>
            <path>/sim/weight[7]/selected</path>    <!-- refueling probe -->
        </aircraft-data>

        <!-- Models -->
        <model>
            <path>Aircraft/Harrier-GR3/Models/Harrier-GR3.xml</path>
            <!-- <fallback-model-index type="int">502</fallback-model-index> -->
        </model>

        <submodels>
            <serviceable type="bool">true</serviceable>
            <path>Aircraft/Harrier-GR3/Submodels.xml</path>
        </submodels>

        <state include="states/approach.xml"/>
        <state include="states/vto.xml"/>
        
        <systems>
            <electrical>
                <path>Aircraft/Generic/generic-electrical.xml</path>
            </electrical>
            <autopilot>
                <path>Aircraft/Harrier-GR3/Systems/Autopilot.xml</path>
            </autopilot>
        </systems>

        <sound>
            <path>Aircraft/Harrier-GR3/Sounds/Sound.xml</path>
        </sound>

        <flaps>
            <setting>0.0</setting>
            <setting>0.2</setting>
            <setting>0.4</setting>
            <setting>0.6</setting>
            <setting>0.8</setting>
            <setting>1.0</setting>
        </flaps>

        <!-- View Settings -->
        <virtual-cockpit archive="y">true</virtual-cockpit>
        <allow-toggle-cockpit archive="y">true</allow-toggle-cockpit>

        <view n="0">
            <internal archive="y">true</internal>
            <config>
                <x-offset-m archive="y">0.00</x-offset-m>
                <y-offset-m archive="y">0.50</y-offset-m>
                <z-offset-m archive="y">3.85</z-offset-m>
                <default-field-of-view-deg type="double">60.0</default-field-of-view-deg>
                <pitch-offset-deg archive="y">-15</pitch-offset-deg>
            </config>
        </view>

        <view n="1">
            <config>
                <target-z-offset-m archive="y">8</target-z-offset-m>
                <pitch-offset-deg archive="y">10</pitch-offset-deg>
            </config>
        </view>

        <view n="2">
            <config>
                <target-z-offset-m archive="y">8</target-z-offset-m>
                <pitch-offset-deg archive="y">10</pitch-offset-deg>
            </config>
        </view>

        <view n="3">
            <config>
                <target-z-offset-m archive="y">8</target-z-offset-m>
                <pitch-offset-deg archive="y">10</pitch-offset-deg>
            </config>
        </view>

        <view n="4">
            <config>
                <target-z-offset-m archive="y">8</target-z-offset-m>
                <pitch-offset-deg archive="y">10</pitch-offset-deg>
            </config>
        </view>

        <view n="5">
            <config>
                <target-z-offset-m archive="y">8</target-z-offset-m>
                <pitch-offset-deg archive="y">10</pitch-offset-deg>
            </config>
        </view>

        <view n="6">
            <config>
                <target-z-offset-m archive="y">8</target-z-offset-m>
                <pitch-offset-deg archive="y">10</pitch-offset-deg>
            </config>
        </view>

        <view n="7">
            <config>
                <target-z-offset-m archive="y">7.8</target-z-offset-m>
            </config>
        </view>

        <view n="100">
            <name>Camera pod</name>
            <type>lookfrom</type>
            <internal archive="y">true</internal>
            <config>
                <from-model type="bool">true</from-model>
                <from-model-idx type="int">0</from-model-idx>
                <ground-level-nearplane-m type="double">0.01f</ground-level-nearplane-m>
                <x-offset-m archive="y">0.00</x-offset-m>
                <y-offset-m archive="y">-1.50</y-offset-m>
                <z-offset-m archive="y">6.50</z-offset-m>
                <default-field-of-view-deg type="double">90.0</default-field-of-view-deg>
                <pitch-offset-deg archive="y">-90</pitch-offset-deg>
            </config>
        </view>

        <!-- HUD Settings -->
        <hud>
            <path n="1">Aircraft/Harrier-GR3/Hud/HUD.xml</path>
            <visibility n="0" type="bool">false</visibility>
            <visibility n="1" type="bool">true</visibility>
            <current-color>0</current-color>
            <color>
                <transparent type="bool">true</transparent>
                <antialiased type="bool">true</antialiased>
                <brightness type="float">1.0</brightness>
                <alpha type="float">0.7</alpha>
            </color>
            <palette>
                <color n="0">
                    <red type="float">0.5</red>
                    <green type="float">1.0</green>
                    <blue type="float">0.0</blue>
                </color>
                <color n="1">
                    <red type="float">1.0</red>
                    <green type="float">0.0</green>
                    <blue type="float">0.0</blue>
                </color>
            </palette>
            <clipping>
                <left type="double">-112</left>
                <right type="double">110</right>
                <top type="double">70</top>
                <bottom type="double">-210</bottom>
            </clipping>
        </hud>

        <!-- Help -->
        <help>
            <title>Hawker Siddeley Harrier GR3</title>
            <key>
                <name>m/M</name>
                <desc>Nozzles back/down</desc>
            </key>
            <key>
                <name>Alt-m</name>
                <desc>Nozzles hover-stop</desc>
            </key>
            <key>
                <name>k/j</name>
                <desc>Air Brake increase/decrease</desc>
            </key>
            <key>
                <name>h</name>
                <desc>Toggle HUD</desc>
            </key>
            <key>
                <name>e</name>
                <desc>Eject</desc>
            </key>
            <key>
                <name>f</name>
                <desc>Gun</desc>
            </key>
            <key>
                <name>d</name>
                <desc>Rockets</desc>
            </key>

            <key>
                <name>c</name>
                <desc>Toggle cockpit view</desc>
            </key>

            <key>
                <name>C</name>
                <desc>Toggle canopy</desc>
            </key>
            <key>
                <name>}</name>
                <desc>Engine</desc>
            </key>
            <key>
                <name>q</name>
                <desc>Flares</desc>
            </key>
            
            
            <key>
                <name>Alt-Page up/down</name>
                <desc>Auto-hover vertical: +/- target vertical speed</desc>
            </key>
            <key>
                <name>Alt-0</name>
                <desc>Auto-hover vertical: set target vertical speed to zero</desc>
            </key>
            <key>
                <name>Alt--</name>
                <desc>Auto-hover vertical: maintain current height</desc>
            </key>
            <key>
                <name>Alt-v</name>
                <desc>Auto-hover vertical: off</desc>
            </key>
            
            <key>
                <name>Alt-.</name>
                <desc>Auto-hover horizontal: Set target horizontal speed to zero</desc>
            </key>
            <key>
                <name>Alt-up/down</name>
                <desc>Auto-hover horizontal: +/- target forwards speed/location</desc>
            </key>
            <key>
                <name>Alt-right/left</name>
                <desc>Auto-hover horizontal: +/- target rightwards speed/location</desc>
            </key>
            <key>
                <name>Alt-a</name>
                <desc>Auto-hover horizontal: control air speed</desc>
            </key>
            <key>
                <name>Alt-g</name>
                <desc>Auto-hover horizontal: control ground speed (default)</desc>
            </key>
            <key>
                <name>Alt-h</name>
                <desc>Auto-hover horizontal: off</desc>
            </key>
            
            <key>
                <name>Alt-4/6</name>
                <desc>Auto-hover rotation: +/- rotation speed/heading</desc>
            </key>
            <key>
                <name>Alt-5</name>
                <desc>Auto-hover rotation: target current heading</desc>
            </key>
            <key>
                <name>Alt-r</name>
                <desc>Auto-hover rotation: off</desc>
            </key>
            
            <key>
                <name>Alt-Delete/Insert or Alt-x/z</name>
                <desc>Auto-hover aoa nozzles: +/- target angle of attack</desc>
            </key>
            <key>
                <name>Alt-o</name>
                <desc>Auto-hover aoa nozzles: off</desc>
            </key>
            
            <key>
                <name>Alt-,</name>
                <desc>Auto-hover horizontal target: next click sets target horizontal location.</desc>
            </key>
            
            <key>
                <name>Alt-/</name>
                <desc>Auto-hover horizontal target: target current horizontal location.</desc>
            </key>
            
            <key>
                <name>Alt-d</name>
                <desc>Auto-hover: cycle on-screen display format.</desc>
            </key>
            
            <key>
                <name>Alt-l</name>
                <desc>Toggle autopilot vspeed land</desc>
            </key>
            
            <key>
                <name>Alt-q</name>
                <desc>Reload auto-hover code</desc>
            </key>
            
            <key>
                <name>Alt-Q</name>
                <desc>Force load of auto-hover code</desc>
            </key>

            <text>
=== Auto-hover vertical ===
Uses throttle to control vertical height/speed.

If active, automatically overides to avoid crash into ground.

=== Auto-hover horizontal ===
Uses pitch and roll to control forwards/sideways speed.

=== Auto-hover rotation ===
Uses rudder to control rotation speed or heading.

=== Auto-hover AoA nozzles ===
Uses nozzels to control angle-of-attack; useful if there is not enough thrust
to hover - suitable target AoA results in as slow an approach speed as
possible.

=== Auto-hover horizontal target ===
Allows a click on landscape to set a target horizontal position, and moves
aircraft to this position, or targets current position. Does not affect
altitude.

=== Auto-hover display ===

Auto-hover settings are displayed on left of HUD. Alt-d can be used to show
information at the bottom-left of the flightgear window.

=== Auto-hover vspeed land ===

Uses autopilot vertical speed to control landing. When enabled (toggled with
Alt-l) we take control once vertical descent rate is greater than ideal value
for the current altitude. In HUD, 'L' means enabled, 'L E%' means we are
controlling vertical speed, where E is current percentage error in descent
rate.
            </text>

        </help>

        <!-- Game Menu -->
        <menubar>
            <default>
                <menu n="100">
                    <label>Harrier</label>
                    <enabled type="bool">true</enabled>
                    <item>
                        <label>Select Livery</label>
                        <binding>
                            <command>nasal</command>
                            <script>aircraft.livery.dialog.open()</script>
                        </binding>
                    </item>
                    <item>
                        <label>Toggle terrain-map</label>
                        <binding>
                            <command>property-cycle</command>
                            <property>/sim/terrain-map</property>
                            <value>0</value>
                            <value></value>
                        </binding>
                    </item>
                    <item>
                        <label>Instrument lighting</label>
                        <binding>
                            <command>dialog-show</command>
                            <dialog-name>instrument-lighting-dialog</dialog-name>
                        </binding>
                    </item>
                </menu>
            </default>
        </menubar>

        <!-- Weight Settings -->
        <weight n="0">
            <name>Left Outboard</name>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>Matra 155 SNEB 18x68mm Rocket Pack</name><lbs>700</lbs></opt>
        </weight>

        <weight n="1">
            <name>Left Inboard</name>
            <tank>1</tank>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>100 Gallon Fuel Tank</name><lbs>86</lbs><gals>120</gals></opt>
        </weight>

        <weight n="2">
            <name>Left Fuselage</name>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>ADEN 30mm Cannon</name><lbs>192</lbs></opt>
        </weight>

        <weight n="3">
            <name>Center Fuselage</name>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>Camera Reconnaissance Pod</name><lbs>134</lbs></opt>
        </weight>

        <weight n="4">
            <name>Right Fuselage</name>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>ADEN 30mm Cannon</name><lbs>192</lbs></opt>
        </weight>

        <weight n="5">
            <name>Right Inboard</name>
            <tank>2</tank>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>100 Gallon Fuel Tank</name><lbs>86</lbs><gals>120</gals></opt>
        </weight>

        <weight n="6">
            <name>Right Outboard</name>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>Matra 155 SNEB 18x68mm Rocket Pack</name><lbs>700</lbs></opt>
        </weight>

        <weight n="7">
            <name>Refueling probe</name>
            <weight-lb>0</weight-lb>
            <selected>none</selected>
            <opt><name>none</name><lbs>0</lbs></opt>
            <opt><name>Probe installed</name><lbs>35</lbs></opt>
        </weight>

        <!-- Game Multiplayer -->
        <multiplay>
            <generic>
                <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="/controls/engines/engine/mixture"/> <!-- animates nozzles -->
                <bool n="0" alias="/controls/eject"/>
            </generic>
        </multiplay>

    </sim>
 
    <systems>
        <refuel>
             <type>probe</type>
             <serviceable type="bool">true</serviceable>
             <max-fuel-transfer-lbs-min>3000</max-fuel-transfer-lbs-min>
             <offset-x-m>0</offset-x-m>
             <offset-y-m>0</offset-y-m>
             <offset-z-m>0</offset-z-m>
        </refuel>
    </systems>

    <!-- Fuel Settings -->
    <consumables>
        <fuel>
            <tank n="0">
                <tank-num type="int">0</tank-num>
                <level-gal_us archive="y">756</level-gal_us>
            </tank>
            <tank n="1">
                <tank-num type="int">1</tank-num>
                <level-gal_us archive="y">120</level-gal_us>
            </tank>
            <tank n="2">
                <tank-num type="int">2</tank-num>
                <level-gal_us archive="y">120</level-gal_us>
            </tank>
        </fuel>
    </consumables>


    <!-- Misc Settings -->
    <canopy>
        <position-norm type="double">0</position-norm>
    </canopy>

    <controls>
        <eject type="bool">false</eject>
        <gear>
            <tailwheel-lock>false</tailwheel-lock>
            <brake-parking>1</brake-parking>
        </gear>

        <armament>
            <trigger>0</trigger>
            <trigger1>0</trigger1>
            <trigger2>0</trigger2>
            <station n="0">
                <release type="bool">false</release>
            </station>
            <station n="1">
                <release type="bool">false</release>
            </station>
            <station n="2">
                <release type="bool">false</release>
            </station>
            <station n="3">
                <release type="bool">false</release>
            </station>
            <station n="4">
                <release type="bool">false</release>
            </station>
            <station n="5">
                <release type="bool">false</release>
            </station>
            <station n="6">
                <release type="bool">false</release>
            </station>
        </armament>
    </controls>

    <instrumentation>
        <enav>
            <selected type="int">3</selected>
        </enav>

        <efis>
            <ecam>
                <display-mode type="string">FUEL</display-mode>
            </ecam>
            <nd>
                <display-mode type="string">VOR</display-mode>
                <display-mode-knob type="int">2</display-mode-knob>
                <display-range type="int">40</display-range>
            </nd>
            <input>
                <vor-adf-1 type="int">1</vor-adf-1>
                <vor-adf-2 type="int">1</vor-adf-2>
                <CSTR type="bool">1</CSTR>
                <WPT type="bool">1</WPT>
                <VORD type="bool">1</VORD>
                <NDB type="bool">1</NDB>
                <ARPT type="bool">1</ARPT>
                <WX type="bool">1</WX>
                <TERR type="bool">1</TERR>
                <TRAF type="bool">1</TRAF>
                <taxi type="bool">1</taxi>
            </input>
        </efis>

        <radar>
            <range type="int" archive="y">20</range>
            <minimized type="bool" archive="y">false</minimized>
        </radar>

    </instrumentation>

    <!-- Nasal Scripts -->
    <nasal>
        <Harrier-GR3>
            <file>Aircraft/Harrier-GR3/Nasal/Liveries.nas</file>
            <file>Aircraft/Harrier-GR3/Nasal/HUD.nas</file>
            <file>Aircraft/Harrier-GR3/Nasal/Controls.nas</file>
        </Harrier-GR3>

        <lights>
        	<file>Aircraft/Harrier-GR3/Nasal/Lights.nas</file>
        </lights>

        <ENAV>
            <file>Aircraft/Harrier-GR3/Nasal/ENAV.nas</file>
        </ENAV>

        <controls>
            <file>Aircraft/Harrier-GR3/Nasal/Controls.nas</file>
        </controls>

        <Canopy>
            <file>Aircraft/Harrier-GR3/Nasal/Canopy.nas</file>
        </Canopy>

        <autohover>
            <file>Aircraft/Harrier-GR3/Nasal/autohover.nas</file>
        </autohover>

        <Eject>
            <file>Aircraft/Harrier-GR3/Nasal/eject.nas</file>
        </Eject>

        <Low>
            <file>Aircraft/Harrier-GR3/Nasal/Low.nas</file>
        </Low>

        <terrain-map>
            <file>Aircraft/Harrier-GR3/Nasal/terrain-map.nas</file>
        </terrain-map>

        <guns>
            <file>Aircraft/Harrier-GR3/Nasal/weapons.nas</file>
        </guns>

        <engines>
            <file>Aircraft/Harrier-GR3/Nasal/generic-yasim-engine.nas</file>
            <script>
                var engine1 = engines.Jet.new(0, 0, 0.01, 5.21, 3, 5, 1, 6);
                setlistener("sim/signals/fdm-initialized", func
                {
                engine1.init();
                }, 0, 0);
            </script>
        </engines>

        <aar>
            <file>Aircraft/Generic/aar.nas</file>
        </aar>
    </nasal>

</PropertyList>
