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

<PropertyList>

  <sim                  include="views.xml">

    <fuel-fraction>1</fuel-fraction>

    <startup>
      <splash-texture>Aircraft/Piaggio-P166/p166-splash.png</splash-texture>
    </startup>

    <sound>
      <audible>true</audible>
      <path>Aircraft/Piaggio-P166/Sounds/p166-sound.xml</path>
    </sound>

    <model>
      <path>Aircraft/Piaggio-P166/Models/p166.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-radar       type="bool"/>
      <show-yoke        type="bool"/>
      <show-underrudder type="bool"/>
      <show-console     type="bool"/>
      <show-copilot     type="bool"/>
      <show-passenger   type="bool"/>
      <RadarMode        type="int">0</RadarMode>
      <turret           n="0">
        <heading        type="double">0</heading>
        <pitch          type="double">-5</pitch>
      </turret>
    </model>

    <systems            include="rules.xml"/>

    <instrumentation    include="initialisation.xml"/>

    <multiplay>
      <chat_display>1</chat_display>
      <generic>
        <!-- -->
        <int    n="0"  type="int"/>
        <int    n="1"  type="int"/>
        <int    n="2"  type="int"/>
        <int    n="3"  type="int"/>
        <int    n="4"  type="int"/>
        <int    n="5"  type="int"/>
        <!-- -->
        <bool   n="0"  alias="/sim/model/show-radar"/>
        <bool   n="1"  alias="/sim/model/show-yoke"/>
        <bool   n="2"  alias="/sim/rendering/hdr/hdr-enabled"/>
        <bool   n="3"  alias="/gear/gear[0]/wow"/>
        <bool   n="4"  alias="/gear/gear[1]/wow"/>
        <bool   n="5"  alias="/gear/gear[2]/wow"/>
        <bool   n="6"  alias="/sim/model/show-searchlight"/>
        <bool   n="7"  alias="/sim/model/show-flir"/>
        <!-- -->
        <bool   n="8"  alias="/controls/engines/engine[0]/cutoff"/>
        <bool   n="9"  alias="/controls/engines/engine[1]/cutoff"/>
        <!-- Lights -->
        <bool   n="10" alias="/controls/lighting/search-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="/sim/model/show-underrudder"/>
        <bool   n="18" alias="/sim/model/show-console"/>
        <bool   n="19" alias="/sim/model/show-copilot"/>
        <bool   n="20" alias="/sim/model/show-passenger"/>
        <!-- Doors -->
        <float  n="0"  alias="/sim/model/door-positions/crew/position-norm"/>
        <float  n="1"  alias="/sim/model/door-positions/passenger/position-norm"/>
        <!-- -->
        <float  n="2"  alias="/position/gear-agl-m">0</float>
        <float  n="3"  alias="/position/altitude-ft">0</float>
        <!-- -->
        <float  n="4"  alias="/engines/engine[0]/n1"/>
        <float  n="5"  alias="/engines/engine[1]/n1"/>
        <!-- Doors -->
        <float  n="6"  alias="/controls/engines/engine[0]/propeller-pitch"/>
        <float  n="7"  alias="/controls/engines/engine[0]/propeller-pitch"/>
        <!-- -->
        <float  n="8"  alias="/gear/gear[0]/rollspeed-ms"/>
        <float  n="9"  alias="/gear/gear[1]/rollspeed-ms"/>
        <float  n="10" alias="/gear/gear[2]/rollspeed-ms"/>
        <!-- Doors -->
        <float  n="11" alias="/sim/model/door-positions/cargo/position-norm"/>
        <!-- -->
        <float  n="13" alias="/gear/gear[0]/compression-norm"/>
        <float  n="14" alias="/gear/gear[1]/compression-norm"/>
        <float  n="15" alias="/gear/gear[2]/compression-norm"/>
        <!-- -->
        <float  n="16" alias="/sim/model/turret[0]/heading"/>
        <float  n="17" alias="/sim/model/turret[0]/pitch"/>
        <!-- -->
        <float  n="18" alias="/gear/gear[0]/caster-angle-deg"/>
        <!-- -->
        <string n="1"  alias="/sim/model/livery/texture"/>
        <!-- For Bombable -->
        <int    n="10" alias="/controls/armament/trigger"/>
        <string n="9"  type="string"/>
      </generic>
    </multiplay>

    <help               include="help.xml"/>

    <flaps              include="flaps.xml"/>

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

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

  </sim>

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

  <controls             include="controls.xml"/>

  <engines              include="engines.xml"/>

  <consumables          include="consumables.xml"/>

  <systems              include="systems.xml"/>

  <autopilot            include="autopilot.xml"/>

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

  <nasal>
    <doors>
      <file>Aircraft/Piaggio-P166/Nasal/doors.nas</file>
    </doors>
    <p166>
      <file>Aircraft/Piaggio-P166/Nasal/hdr.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/liveries.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/light.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/dialogs.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/fuel-pump.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/convert.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/Electrical.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/map.nas</file>
    </p166>
    <kr87>
      <file>Aircraft/Piaggio-P166/Models/Interior/Panel/Instruments/kr87-adf/kr87.nas</file>
    </kr87>
    <radar>
      <file>Aircraft/Piaggio-P166/Nasal/radar.nas</file>
    </radar>
    <terrain-map>
      <file>Aircraft/Piaggio-P166/Nasal/terrain-map.nas</file>
    </terrain-map>
    <turrets>
      <file>Aircraft/Piaggio-P166/Nasal/turrets.nas</file>
      <script>
      </script>
    </turrets>
    <engines>
      <file>Aircraft/Generic/Engines/generic-yasim-engine.nas</file>
      <file>Aircraft/Piaggio-P166/Nasal/engines-yasim.nas</file>
    </engines>

    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>
