<?xml version="1.0"?>
<!--
############
Robinson R-22 Beta II
Syd Adams
############
-->

<PropertyList>

    <sim>
        <description>Robinson R22 Beta II</description>
        <author>Syd Adams, Maik Justus</author>
        <flight-model>yasim</flight-model>
        <aero>R22BetaII</aero>
        <fuel-fraction>0.5</fuel-fraction>
        <startup>
            <splash-texture>Aircraft/R22/splash.png</splash-texture>
        </startup>

        <tutorials>
        <tutorial include="Tutorials/startup_tutorial.xml"/>
        </tutorials>

        <model>
            <path>Aircraft/R22/Models/R22.xml</path>
            <variant type="int">0</variant>
            <sound>
                <volume type="double">0</volume>
                <click type="bool">0</click>
            </sound>

            <livery>
                <file type="string">Red</file>
            </livery>
        </model>

        <hud>
            <enable3d>false</enable3d>
        </hud>

        <systems>
            <electrical>
                <path></path>
            </electrical>
        </systems>

        <instrumentation>
            <path>Aircraft/R22/instrumentation.xml</path>
        </instrumentation>

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

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

        <view>
            <internal archive="y">true</internal>
            <config>
                <x-offset-m archive="y">-0.20</x-offset-m>
                <y-offset-m archive="y">-1.04</y-offset-m>
                <z-offset-m archive="y">-0.4</z-offset-m>
                <pitch-offset-deg>-12</pitch-offset-deg>
                <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
            </config>
        </view>

    <view n="1">
        <config>
            <target-y-offset-m archive="y" type="double">-1.2</target-y-offset-m>
            <target-z-offset-m archive="y" type="double">-0.5</target-z-offset-m>
            <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
        </config>
    </view>
        
    <view n="2">
        <config>
            <target-y-offset-m archive="y" type="double">-1.2</target-y-offset-m>
            <target-z-offset-m archive="y" type="double">-0.5</target-z-offset-m>
            <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
        </config>
    </view>
    
        
    <view n="4">
        <config>
            <target-y-offset-m archive="y" type="double">-1.2</target-y-offset-m>
            <target-z-offset-m archive="y" type="double">-1</target-z-offset-m>
            <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
        </config>
    </view>
        
        
    <view n="6">
        <config>
            <target-y-offset-m archive="y" type="double">-1.2</target-y-offset-m>
            <target-z-offset-m archive="y" type="double">-0.5</target-z-offset-m>
            <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
        </config>
    </view>

    <view n="100">
        <name>Panel View</name>
        <type>lookfrom</type>
        <internal type="bool">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.5f</ground-level-nearplane-m>
            <default-field-of-view-deg type="double">33.0</default-field-of-view-deg>
            <default-pitch-deg type="double">0</default-pitch-deg>
            <default-heading-deg type="double">0</default-heading-deg>
            <front-direction-deg type="double">0</front-direction-deg>
            <front-left-direction-deg type="double">45</front-left-direction-deg>
            <left-direction-deg type="double">90</left-direction-deg>
            <back-left-direction-deg type="double">135</back-left-direction-deg>
            <back-direction-deg type="double">180</back-direction-deg>
            <back-right-direction-deg type="double">225</back-right-direction-deg>
            <right-direction-deg type="double">270</right-direction-deg>
            <front-right-direction-deg type="double">315</front-right-direction-deg>
            <x-offset-m archive="y">-0.2</x-offset-m>
            <y-offset-m archive="y">-1.2</y-offset-m>
            <z-offset-m archive="y">-0.55</z-offset-m>
            <heading-offset-deg>345.5</heading-offset-deg>
            <pitch-offset-deg>-25.5</pitch-offset-deg>
        </config> 
    </view>

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

    <weight n="0">
            <name>Pilot</name>
            <weight-lb>180</weight-lb>
            <max-lb>240</max-lb>
            <min-lb>140</min-lb>
        </weight>

        <weight n="1">
            <name>Pax/Baggage</name>
            <weight-lb>180</weight-lb>
            <max-lb>240</max-lb>
            <min-lb>0</min-lb>
        </weight>

        <help>
            <title>Robinson R-22</title>
            <line></line>
            <key>
                <name>y</name>
                <desc>Toggle yokes on / off</desc>
            </key>
            <key>
                <name>{</name>
                <desc>Turn ignition key off</desc>
            </key>
            <key>
                <name>}</name>
                <desc>Turn ignition key on</desc>
            </key>
            <key>
                <name>s</name>
                <desc>Engage starter</desc>
            </key>
            <key>
                <name>N</name>
                <desc>toggle rotor brake</desc>
            </key>
        </help>

    <yokes-visible type="bool">1</yokes-visible>

    <menubar>
        <default>
            <menu n="10">
                <label>R22</label>
                <enabled type="bool">true</enabled>
                <item>
                    <label>Autostart</label>
                    <binding>
                        <command>property-toggle</command>
                        <property>sim/model/start-idling</property>
                    </binding>
                </item>
                <item>
                    <label>Toggle T-Bar</label>
                    <binding>
                        <command>property-toggle</command>
                        <property>sim/yokes-visible</property>
                    </binding>
                </item>
                <item>
                    <label>Select Livery</label>
                    <binding>
                        <command>nasal</command>
                        <script>aircraft.livery.dialog.toggle()</script>
                    </binding>
                </item>
            </menu>
        </default>
    </menubar>

    </sim>

    <engines>
        <engine>
            <rpm type="double">0</rpm>
            <running type="bool">false</running>
            <clutch-engaged type="bool">false</clutch-engaged>
        </engine>
    </engines>

    <controls>
        <engines>
            <engine>
                <throttle>1.0</throttle>
                <clutch type="bool">0</clutch>
                <clutchguard type="bool">0</clutchguard>
            </engine>
        </engines>
        <flight>
            <aileron-trim>0</aileron-trim>
            <elevator-trim>0</elevator-trim>
        </flight>
        <gear>
            <brake-parking>1</brake-parking>
        </gear>
        <electric>
            <key type="int">0</key>
            <battery-switch>0</battery-switch>
            <engine>
                <generator>0</generator>
            </engine>
        </electric>
        <rotor>
            <engine-throttle type="double">1.0</engine-throttle>
            <brake>0</brake>
        </rotor>
    </controls>

    <instrumentation>
        <gsdi>
            <serviceable type="bool">true</serviceable>
        </gsdi>
            <inst-vertical-speed-indicator>
                <serviceable type="bool">true</serviceable>
            </inst-vertical-speed-indicator>
    </instrumentation>

    <input>
        <keyboard>
        <key n="121">
        <name>y</name>
        <desc>Toggle yokes</desc>
        <binding>
        <command>property-toggle</command>
        <property>/sim/yokes-visible</property>
        </binding>
        </key>

        <key n="123">
        <name>{</name>
        <desc>key off</desc>
        <binding>
            <command>property-adjust</command>
            <property>controls/electric/key</property>
            <step>-1</step>
            <min>0</min>
            <max>3</max>
            <wrap>0</wrap>
        </binding>
        </key>

        <key n="125">
        <name>}</name>
        <desc>key on</desc>
        <binding>
            <command>property-adjust</command>
            <property>controls/electric/key</property>
            <step>1</step>
            <min>0</min>
            <max>3</max>
            <wrap>0</wrap>
        </binding>
        </key>

<!--
        <key n="360">
        <name>PageUp</name>
        <desc>Increase engine throttle</desc>
        <binding>
            <command>property-adjust</command>
            <property>controls/rotor/engine-throttle</property>
            <step>0.02</step>
            <min>0.30</min>
            <max>1.00</max>
            <wrap>0</wrap>
        </binding>
        </key>

        <key n="361">
        <name>PageDown</name>
        <desc>Decrease engine throttle</desc>
        <binding>
            <command>property-adjust</command>
            <property>controls/rotor/engine-throttle</property>
            <step>-0.02</step>
            <min>0.30</min>
            <max>1.00</max>
            <wrap>0</wrap>
        </binding>
        </key>
-->

        <key n="78">
        <name>N</name>
        <desc>Toggle rotor brake</desc>
        <binding>
            <command>property-toggle</command>
            <property>controls/rotor/brake</property>
        </binding>
        </key>

</keyboard>
    </input>

    <nasal>
        <R22>
            <file>Aircraft/R22/Nasal/Electrical.nas</file>
            <file>Aircraft/R22/Nasal/R22.nas</file>
        </R22>
    </nasal>

</PropertyList>
