<?xml version="1.0"?>

<PropertyList>

  <sim>
    <description> MRJ90-STD (JSBSim) </description>
    <author>Tatsuhiro Nishioka</author>
    <version>$Rev: $</version>
    <status>development</status>
    
    <flight-model>jsb</flight-model>
    <aero>MRJ90-STD</aero>

    <startup>
      <splash-texture>Aircraft/MRJ/splash.png</splash-texture>
    </startup>

    <sound>
      <path>Aircraft/MRJ/MRJ-sound.xml</path>
    </sound>

    <!-- virtual-cockpit archive="y">true</virtual-cockpit -->

    <model>
      <path>Aircraft/MRJ/Models/MRJ90.xml</path>
      <livery>
	<file type="string">Prototype</file>
      </livery>
      <MRJ>
	<klu type="bool">false</klu>
	<us type="bool">true</us>
      </MRJ>
    </model>

    <chase-distance-m type="double" archive="y">-36.0</chase-distance-m>

    <view>
      <config>
	<pitch-offset-deg>-8.8</pitch-offset-deg>
	<default-field-of-view-deg>60</default-field-of-view-deg>
      </config>
    </view>

    <view n="0">
      <name>Cockpit View</name>
      <type>lookfrom</type>
      <internal archive="y">true</internal>
      <config> <!-- x/y/z=right/up/back -->
        <x-offset-m archive="y"> -0.50</x-offset-m>
        <y-offset-m archive="y">  1.59</y-offset-m>
        <z-offset-m archive="y">-15.20</z-offset-m>
        <pitch-offset-deg>-5</pitch-offset-deg>
        <default-field-of-view-deg>80.0</default-field-of-view-deg>
      </config>
    </view>

    <view n="100">
      <name>Cabin View</name>
      <type>lookfrom</type>
      <internal archive="y">true</internal>
      <config> <!-- x/y/z=right/up/back -->
        <from-model type="bool">true</from-model>
        <ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
        <x-offset-m archive="y">  0.00</x-offset-m>
        <y-offset-m archive="y">  1.79</y-offset-m>
        <z-offset-m archive="y">-11.00</z-offset-m>
        <pitch-offset-deg>-5</pitch-offset-deg>
        <yaw-offset-deg>180</yaw-offset-deg>
        <default-field-of-view-deg>80.0</default-field-of-view-deg>
        <dynamic-view type="bool">true</dynamic-view>
      </config>
    </view>

    <view n="101">
      <name>Rear Cabin View</name>
      <type>lookfrom</type>
      <internal archive="y">true</internal>
      <config> <!-- x/y/z=right/up/back -->
        <from-model type="bool">true</from-model>
        <ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
        <x-offset-m archive="y">  0.00</x-offset-m>
        <y-offset-m archive="y">  1.79</y-offset-m>
        <z-offset-m archive="y">  6.40</z-offset-m>
        <pitch-offset-deg>-5</pitch-offset-deg>
        <yaw-offset-deg>180</yaw-offset-deg>
        <default-field-of-view-deg>80.0</default-field-of-view-deg>
        <dynamic-view type="bool">true</dynamic-view>
      </config>
    </view>

    <view n="102">
      <name>Passenger Seat View</name>
      <type>lookfrom</type>
      <internal archive="y">true</internal>
      <config> <!-- x/y/z=right/up/back -->
        <from-model type="bool">true</from-model>
        <ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
        <x-offset-m archive="y"> -1.43</x-offset-m>
        <y-offset-m archive="y">  1.26</y-offset-m>
        <z-offset-m archive="y">  0.47</z-offset-m>
        <pitch-offset-deg>-5</pitch-offset-deg>
        <yaw-offset-deg>180</yaw-offset-deg>
        <default-field-of-view-deg>80.0</default-field-of-view-deg>
        <dynamic-view type="bool">true</dynamic-view>
      </config>
    </view>

    <menubar>
      <default>
	<menu n="100">
	  <label>MRJ</label>
	  <enabled type="bool">true</enabled>
	  <item>
            <label>Select Livery</label>
            <binding>
              <command>nasal</command>
              <script>aircraft.livery.dialog.open()</script>
            </binding>
	  </item>
	</menu>
      </default>
    </menubar>

    <help>
      <key>
	<name>Ctrl-Shift-M</name>
	<desc>Activate Performance Monitor</desc>
      </key>
    </help>
  </sim>

  <input>
    <keyboard>
      <!--
	  <key n="4">
            <name>Ctrl-D</name>
            <desc>Open/close canopy</desc>
            <binding>
              <command>property-toggle</command>
              <property>controls/canopy/opened</property>
            </binding>
	  </key>
	  -->
    </keyboard>
  </input>

  <engines>
    <engine n="0">
      <running>true</running>
    </engine>
    <engine n="1">
      <running>true</running>
    </engine>
  </engines>

  <payload>
    <weight>
      <name type="string">Pilot</name>
      <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[0]"/>
      <min-lb type="double">0.0</min-lb>
      <max-lb type="double">200</max-lb>
    </weight>

    <weight>
      <name type="string">Co pilot</name>
      <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[1]"/>
      <min-lb type="double">0.0</min-lb>
      <max-lb type="double">200</max-lb>
    </weight>

    <weight>
      <name type="string">Passengers</name>
      <weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[2]"/>
      <min-lb type="double">0.0</min-lb>
      <max-lb type="double">12266</max-lb>
    </weight>
  </payload>

  <consumables>
    <fuel>
      <tank n="0">
	<level-gal_us archive="y">1450</level-gal_us>
      </tank>
      <tank n="1">
	<level-gal_us archive="y">1450</level-gal_us>
      </tank>
    </fuel>
  </consumables>

  <!-- for adjusting Lift and Drag on the fly. Development use only -->
  <fdm>
    <jsbsim>
      <aero>
	<ACLflap-coeff>1.0</ACLflap-coeff>
	<ACDflap-coeff>1.0</ACDflap-coeff>
	<ACLalpha-coeff>1.0</ACLalpha-coeff>
	<ACD0-coeff>1.0</ACD0-coeff>
	<Aelevator-deflection-coeff>1.0</Aelevator-deflection-coeff>
      </aero>
    </jsbsim>
  </fdm>

  <nasal>
    <MRJ>
      <file>Aircraft/MRJ/Nasal/lighting.nas</file>
      <file>Aircraft/MRJ/Nasal/dialog.nas</file>
      <file>Aircraft/MRJ/Nasal/keyhandler.nas</file>
      <file>Aircraft/MRJ/Nasal/performance.nas</file>
      <file>Aircraft/MRJ/Nasal/liveries.nas</file>
      <file>Aircraft/MRJ/Nasal/advroutemgr.nas</file>
    </MRJ>
  </nasal>
</PropertyList>

