<?xml version="1.0"?>
<!-- $Id$ -->
<!--
  Fi-156 multiplayer passenger view.

  Copyright (C) 2009  Anders Gidenstam  (anders(at)gidenstam.org)
  This file is licensed under the GPL license version 2 or later.
-->
<!--
  Usage: fgfs - -prop:/sim/remote/pilot-callsign="remote pilot callsign" - -aircraft=Fi-156-passenger
-->
<PropertyList>

 <sim>

  <description>Fi-156-passenger multiplayer passenger</description>
  <author>Anders Gidenstam</author>
  <status>alpha</status>
  <aircraft-version>$Id$</aircraft-version>

  <flight-model>null</flight-model>
  <variant-of>Fi-156</variant-of>
  
  <presets>
   <onground type="bool">false</onground>
   <altitude-agl-ft type="double">30.0</altitude-agl-ft>
  </presets>

  <!-- 3d model -->
  <model>
   <path>Models/Geometry/null.ac</path>
  </model>

  <!-- Views -->
  <view n="0">
   <!-- Passenger's position. -->
   <name>Copilot View</name>
   <type>lookfrom</type>
   <config>
    <internal type="bool">true</internal>
    <from-model type="bool">false</from-model>
    <from-model-idx type="int">0</from-model-idx>
    <eye-lat-deg-path>/position/latitude-deg</eye-lat-deg-path>
    <eye-lon-deg-path>/position/longitude-deg</eye-lon-deg-path>
    <eye-alt-ft-path>/position/altitude-ft</eye-alt-ft-path>
    <eye-heading-deg-path>/orientation/heading-deg</eye-heading-deg-path>
    <eye-pitch-deg-path>/orientation/pitch-deg</eye-pitch-deg-path>
    <eye-roll-deg-path>/orientation/roll-deg</eye-roll-deg-path>

    <!-- x/y/z == right/up/back -->
    <x-offset-m type="double" archive="y"> 0.00</x-offset-m>
    <y-offset-m type="double" archive="y"> 0.6</y-offset-m>
    <z-offset-m type="double" archive="y"> 3.525</z-offset-m>
    <pitch-offset-deg>-15</pitch-offset-deg>
    <default-field-of-view-deg type="double">60.0</default-field-of-view-deg>
   </config>
  </view>
  <!-- Views -->
  <view n="100">
   <!-- Pilot's position. -->
   <name>Pilot View</name>
   <type>lookfrom</type>
   <config>
    <internal type="bool">true</internal>
    <from-model type="bool">false</from-model>
    <eye-lat-deg-path>/position/latitude-deg</eye-lat-deg-path>
    <eye-lon-deg-path>/position/longitude-deg</eye-lon-deg-path>
    <eye-alt-ft-path>/position/altitude-ft</eye-alt-ft-path>
    <eye-heading-deg-path>/orientation/heading-deg</eye-heading-deg-path>
    <eye-pitch-deg-path>/orientation/pitch-deg</eye-pitch-deg-path>
    <eye-roll-deg-path>/orientation/roll-deg</eye-roll-deg-path>

    <!-- x/y/z == right/up/back -->
    <x-offset-m type="double" archive="y"> 0.00</x-offset-m>
    <y-offset-m type="double" archive="y"> 0.6</y-offset-m>
    <z-offset-m type="double" archive="y"> 2.525</z-offset-m>
    <pitch-offset-deg>-15</pitch-offset-deg>
    <default-field-of-view-deg type="double">60.0</default-field-of-view-deg>
   </config>
  </view>

  <view n="1">
   <config>
    <at-model type="bool">false</at-model>
   </config>
  </view>
  <view n="2">
   <config>
    <at-model type="bool">false</at-model>
   </config>
  </view>
  <view n="3">
   <config>
    <at-model type="bool">false</at-model>
   </config>
  </view>
  <view n="4">
   <config>
    <at-model type="bool">false</at-model>
   </config>
  </view>
  <view n="5">
   <config>
    <at-model type="bool">false</at-model>
   </config>
  </view>
  <view n="6">
   <config>
    <at-model type="bool">false</at-model>
   </config>
  </view>

  <chase-distance-m type="double">-18.0</chase-distance-m>

  <sound>
   <audible>true</audible>
   <path>Aircraft/Storch/Fi-156-passenger-sound.xml</path>
  </sound>

  <!-- Aircraft specific help. -->
  <!-- help include="help.xml"/ -->

  <!-- systems>
   <electrical>
    <path/>
   </electrical>
  </systems>
  <instrumentation>
   <path/>
  </instrumentation -->

  <menubar>
   <default>
    <menu n="100">
     <label>Fi-156</label>
     <item>
      <label>Select MP-pilot</label>
      <binding>
       <command>nasal</command>
       <script>
        dual_control_tools.
          copilot_dialog.show(aircraft_dual_control.pilot_type);
       </script>
      </binding>
     </item>
    </menu>
   </default>
  </menubar>

 </sim>

 <nasal>
  <dual_control_tools>
   <file>Aircraft/Generic/DualControl/dual-control-tools.nas</file>
  </dual_control_tools>
  <aircraft_dual_control>
   <file>Aircraft/Storch/Nasal/Fi-156-dual-control.nas</file>
  </aircraft_dual_control>
  <dual_control>
   <file>Aircraft/Generic/DualControl/copilot-dual-control.nas</file>
  </dual_control>
 </nasal>

</PropertyList>
