<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <sim                            include="views.xml">

    <startup>
      <splash-texture>Aircraft/V22-Osprey/v22-splash.png</splash-texture>
    </startup>

    <sound>
      <path>Aircraft/V22-Osprey/Sounds/v22-sound.xml</path>
    </sound>

    <model>
      <path                       archive="y">Aircraft/V22-Osprey/Models/v22.xml</path>
      <livery>
        <file                     type="string"/>
        <specular>
          <red                    type="float">0.03</red>
          <green                  type="float">0.03</green>
          <blue                   type="float">0.03</blue>
        </specular>
      </livery>
      <show-particles             type="bool">true</show-particles>
      <show-countermeasures       type="bool"/>
      <show-antennas              type="bool"/>
      <show-radome                type="bool"/>
      <show-flir                  type="bool"/>
      <show-probe                 type="bool"/>
      <v22>
        <state                    type="int">0</state>
        <wing_state               type="int">0</wing_state>
        <blade_folding            type="float">0</blade_folding>
        <wing_rotation            type="float">0</wing_rotation>
        <tilt                     type="float">0</tilt>
        <animation_tilt           type="float">0</animation_tilt>
        <inputflaps               type="float">0</inputflaps>
        <inputtilt                type="float">0</inputtilt>
        <wingfoldincidence        type ="float">0</wingfoldincidence>
        <effects>
          <particles>
            <rotorwash>
              <enabled            type="bool">true</enabled>
              <redcombinedstart   type="float">0.3</redcombinedstart>
              <greencombinedstart type="float">0.3</greencombinedstart>
              <bluecombinedstart  type="float">0.3</bluecombinedstart>
              <redcombinedend     type="float">0.5</redcombinedend>
              <greencombinedend   type="float">0.5</greencombinedend>
              <bluecombinedend    type="float">0.5</bluecombinedend>
            </rotorwash>
            <enabled              type="bool">true</enabled>
            <redcombined          type="float">0</redcombined>
            <greencombined        type="float">0</greencombined>
            <bluecombined         type="float">0</bluecombined>
          </particles>
        </effects>
        <wing>
          <elevator               type="float">0</elevator>
          <aileron                type="float">0</aileron>
          <rudder                 type="float">0</rudder>
          <flap                   type="float">0</flap>
        </wing>
        <rotor>
          <left>
            <elevator             type="float">0</elevator>
            <collective           type="float">0</collective>
          </left>
          <right>
            <elevator             type="float">0</elevator>
            <collective           type="float">0</collective>
          </right>
        </rotor>
        <engine_right             type="float">0.0</engine_right>
        <engine_left              type="float">0.0</engine_left>
        <rotor-step-deg           type="float">-1.0</rotor-step-deg>
        <solver_throttle          type="float">0</solver_throttle>
        <wing_rotation_speed      type="float">0</wing_rotation_speed>
        <flap_speed               type="float">0</flap_speed>
        <blade_folding_speed      type="float">0</blade_folding_speed>
        <animation_tilt_speed     type="float">0</animation_tilt_speed>
        <flight_computer>
          <roll>
            <p                    type="float">1</p>
            <i                    type="float">0</i>
            <d                    type="float">1</d>
            <target_abs           type="float">0.004</target_abs>
            <target_rate          type="float">0.0015</target_rate>
            <max_i                type="float">0.5</max_i>
            <out                  type="float">0</out>
            <enabled              type="int">1</enabled>
            <last_delta           type="float">0</last_delta>
            <integral             type="float">0</integral>
          </roll>
          <pitch>
            <p                    type="float">1</p>
            <i                    type="float">0</i>
            <d                    type="float">130</d>
            <target_abs           type="float">-0.01</target_abs>
            <target_rate          type="float">0.0001</target_rate>
            <max_i                type="float">0.5</max_i>
            <out                  type="float">0</out>
            <enabled              type="int">1</enabled>
            <last_delta           type="float">0</last_delta>
            <integral             type="float">0</integral>
          </pitch>
        </flight_computer>
      </v22>
    </model>

    <systems                      include="rules.xml"/>

    <instrumentation              include="initialisation.xml"/>

    <submodels>
      <serviceable                type="bool">true</serviceable>
      <path>Aircraft/V22-Osprey/Models/Effects/Weapons/release.xml</path>
    </submodels>

    <multiplay>
      <chat_display>1</chat_display>
      <generic>
        <!-- Immat -->
        <int    n="0"  type="int">0</int>
        <int    n="1"  type="int">0</int>
        <int    n="2"  type="int">0</int>
        <int    n="3"  type="int">0</int>
        <int    n="4"  type="int">0</int>
        <int    n="5"  type="int">0</int>
        <int    n="6"  alias="/sim/model/v22/state"/>
        <!-- -->
        <bool   n="0"  alias="/sim/model/show-particles"/>
        <bool   n="1"  alias="/sim/model/show-countermeasures"/>
        <bool   n="2"  alias="/sim/rendering/hdr/hdr-enabled"/>
        <bool   n="3"  alias="/sim/model/show-antennas"/>
        <bool   n="4"  alias="/sim/model/show-radome"/>
        <bool   n="5"  alias="/sim/freeze/clock"/>
        <bool   n="6"  alias="/sim/crashed"/>
        <bool   n="7"  alias="/sim/model/show-flir"/>
        <bool   n="8"  alias="/sim/model/show-probe"/>
        <!-- Lights -->
        <bool   n="11" alias="/controls/lighting/beacon"/>
        <bool   n="12" alias="/sim/model/lights/beacon/state"/>
        <bool   n="13" alias="/controls/lighting/strobe"/>
        <bool   n="14" alias="/sim/model/lights/sbc1/state"/>
        <bool   n="15" alias="/controls/lighting/nav-lights"/>
        <bool   n="16" alias="/controls/lighting/landing-lights"/>
        <bool   n="17" alias="/controls/probe/position-extended"/>
        <bool   n="18" alias="/controls/jump-signal"/>
        <!-- -->
        <float  n="0"  alias="/rotors/main/roll-deg"/>
        <float  n="1"  alias="/rotors/main/yaw-deg"/>
        <float  n="2"  alias="/rotors/main/rpm"/>
        <float  n="3"  alias="/rotors/main/blade[0]/position-deg"/>
        <float  n="4"  alias="/rotors/main/blade[0]/incidence-deg"/>
        <float  n="5"  alias="/rotors/main/blade[1]/incidence-deg"/>
        <float  n="6"  alias="/rotors/main/blade[2]/incidence-deg"/>
        <float  n="7"  alias="/position/gear-agl-m"/>
        <float  n="8"  alias="/orientation/pitch-deg"/>
        <float  n="9"  alias="/orientation/roll-deg"/>
        <!-- -->
        <float  n="10" alias="/sim/model/v22/rotor/left/collective"/>
        <float  n="11" alias="/sim/model/v22/rotor/right/collective"/>
        <float  n="12" alias="/sim/model/v22/animation_tilt"/>
        <float  n="13" alias="/sim/model/v22/wing_rotation"/>
        <float  n="14" alias="/sim/model/v22/animation_tilt"/>
        <!-- -->
        <float  n="15" alias="/sim/model/v22/effects/particles/rotorwash/redcombinedstart"/>
        <float  n="16" alias="/sim/model/v22/effects/particles/rotorwash/greencombinedstart"/>
        <float  n="17" alias="/sim/model/v22/effects/particles/rotorwash/bluecombinedstart"/>
        <float  n="18" alias="/sim/model/v22/effects/particles/rotorwash/redcombinedend"/>
        <float  n="19" alias="/sim/model/v22/effects/particles/rotorwash/greencombinedend"/>
        <float  n="20" alias="/sim/model/v22/effects/particles/rotorwash/bluecombinedend"/>
        <!-- -->
        <float  n="21" alias="/sim/model/v22/blade_folding"/>
        <!-- -->
        <float  n="22" alias="/gear/gear[0]/rollspeed-ms"/>
        <float  n="23" alias="/gear/gear[1]/rollspeed-ms"/>
        <float  n="24" alias="/gear/gear[2]/rollspeed-ms"/>
        <!-- Doors -->
        <float  n="25" alias="/sim/model/door-positions/crew/position-norm"/>
        <float  n="26" alias="/sim/model/door-positions/passenger/position-norm"/>
        <float  n="27" alias="/sim/model/door-positions/steps/position-norm"/>
        <float  n="28" alias="/controls/probe/position-extended-pos"/>
        <!-- -->
        <float  n="29" alias="/sim/model/turret[0]/heading"/>
        <float  n="30" alias="/sim/model/turret[0]/pitch"/>
        <!-- -->
        <float  n="31" alias="/controls/engines/engine[0]/throttle"/>
        <!-- For Bombable -->
        <int    n="10" type="int"  alias="controls/armament/trigger"/>
        <int    n="11" type="bool" alias="controls/armament/flares-release"/>
        <string n="9"  type="string"/>
      </generic>
    </multiplay>

    <help                         include="help.xml"/>

    <flaps                        include="flaps.xml"/>

    <menubar                      include="../Dialogs/v22-menu.xml"/>

    <aircraft-data                include="aircraft-data.xml"/>

  </sim>

  <constants>
    <zero                         type="int">0</zero>
    <un                           type="int">1</un>
  </constants>

  <input                          include="v22-keyboard.xml"/>

  <controls                       include="controls.xml"/>

  <rotors                         include="rotors.xml"/>

  <surface-positions              include="surface-positions.xml"/>

  <instrumentation                include="instrumentation.xml">
    <gsdi>
      <serviceable                type="bool">true</serviceable>
      <enabled                    type="bool">true</enabled>
    </gsdi>
  </instrumentation>

  <nasal>
    <doors>
      <file>Aircraft/V22-Osprey/Nasal/doors.nas</file>
    </doors>
    <v22>
      <file>Aircraft/V22-Osprey/Nasal/hdr.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/v22.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/light.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/liveries.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/dialog.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/interpolate.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/convert.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/Electrical.nas</file>
      <file>Aircraft/V22-Osprey/Nasal/map.nas</file>
    </v22>
    <radar>
      <file>Aircraft/V22-Osprey/Nasal/radar.nas</file>
    </radar>
    <terrain-map>
      <file>Aircraft/V22-Osprey/Nasal/terrain-map.nas</file>
    </terrain-map>
    <turrets>
      <file>Aircraft/V22-Osprey/Nasal/turrets.nas</file>
      <script>
      </script>
    </turrets>
    <zkv1000>
      <file>Aircraft/V22-Osprey/Models/Interior/Panel/Instruments/zkv1000/zkv1000.nas</file>
    </zkv1000>

    aircraft.data.add(

      "instrumentation/nav[0]/power-btn",
      "instrumentation/nav[0]/audio-btn",
      "instrumentation/nav[0]/frequencies/selected-mhz",
      "instrumentation/nav[0]/frequencies/standby-mhz",
      "instrumentation/nav[0]/to-flag",
      "instrumentation/nav[0]/from-flag",
      "instrumentation/nav[0]/radials/selected-deg",
      "instrumentation/nav[0]/gs-needle-deflection",
      "instrumentation/nav[0]/heading-needle-deflection",
      "instrumentation/nav[0]/in-range",
      "instrumentation/comm[0]/volume",
      "instrumentation/comm[0]/frequencies/selected-mhz",
      "instrumentation/comm[0]/frequencies/standby-mhz",
      "instrumentation/comm[0]/test-btn",

      "instrumentation/nav[1]/power-btn",
      "instrumentation/nav[1]/audio-btn",
      "instrumentation/nav[1]/frequencies/selected-mhz",
      "instrumentation/nav[1]/frequencies/standby-mhz",
      "instrumentation/nav[1]/to-flag",
      "instrumentation/nav[1]/from-flag",
      "instrumentation/nav[1]/radials/selected-deg",
      "instrumentation/nav[1]/gs-needle-deflection",
      "instrumentation/nav[1]/heading-needle-deflection",
      "instrumentation/nav[1]/in-range",
      "instrumentation/comm[1]/volume",
      "instrumentation/comm[1]/frequencies/selected-mhz",
      "instrumentation/comm[1]/frequencies/standby-mhz",
      "instrumentation/comm[1]/test-btn",

    );

  </nasal>

</PropertyList>
