<?xml version="1.0" encoding="UTF-8"?>

<!--
 Cap10C-set.xml  - Cap10C by PAF team  - http://equipe-flightgear.forumactif.com

 Written by Flavien BLANC
 Modified by PAF team  - April 2012

 Copyright (C) 2011-2012  Flavien BLANC  - http://equipe-flightgear.forumactif.com/u56
 Copyright (C) 2012  Clément DE L'HAMAIDE  - http://equipe-flightgear.forumactif.com/u115


 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as
 published by the Free Software Foundation; either version 2 of the
 License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not see <http://www.gnu.org/licenses/>.
-->

<PropertyList include="cap10-base.xml">

  <sim>

    <description>Cap10C Copilot (JSBSim)</description>
    <author>Flavien BLANC, PAF team</author>
    <flight-model archive="y">null</flight-model>

    <model>
      <path archive="y">Aircraft/Cap10C/Models/Cap10C-copilot.xml</path>
    </model>

    <variant-of>cap10c</variant-of>

    <multiplay>
      <chat_display>1</chat_display>
      <generic>
        <int n="0" type="int">  0 </int>  <!-- RESERVED FOR DUAL CONTROL (Boolean Switch)-->
        <int n="9" type="int">  0 </int>  <!-- RESERVED FOR DUAL CONTROL (Boolean Light Switch)-->
        <int n="6" alias="/controls/switches/smoke">0</int> <!-- 6 smoke -->
        <int n="7">0</int>  <!-- 7 color -->

        <float n="3" alias="/controls/flight/elevator-trim"/>
        <float n="10" alias="/controls/engines/engine[0]/throttle"/>
        <float n="11" alias="/controls/engines/engine[0]/mixture"/>
        <float n="12" alias="/controls/gear/brake-left"/>
        <float n="13" alias="/controls/gear/brake-right"/>
        <float n="14" alias="/controls/flight/elevator"/>
        <float n="15" alias="/controls/flight/rudder"/>
        <float n="16" alias="/controls/flight/aileron"/>

        <string n="0" type="string"></string> <!-- RESERVED FOR DUAL CONTROL (Analog Switch - TDM)-->
      </generic>
    </multiplay>

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

    <view n="100">
      <name>Tail Camera View</name>
      <type>lookfrom</type>
      <internal archive="y">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.01f</ground-level-nearplane-m>
        <default-field-of-view-deg type="double">30</default-field-of-view-deg>
        <pitch-offset-deg>-5</pitch-offset-deg>
        <x-offset-m archive="y"> 0.000 </x-offset-m> <!--Right-->
        <y-offset-m archive="y"> 1.850 </y-offset-m> <!--Up-->
        <z-offset-m archive="y"> 4.180 </z-offset-m> <!--Back-->
      </config>
    </view>

    <view n="0">
      <internal archive="y">true</internal>
      <config>
        <x-offset-m archive="y"> 0.24 </x-offset-m>	<!-- Right -->
        <y-offset-m archive="y"> 0.43 </y-offset-m>	<!-- Up    -->
        <z-offset-m archive="y"> 0.27 </z-offset-m>	<!-- Back  -->
        <default-field-of-view-deg>60</default-field-of-view-deg>
        <pitch-offset-deg>-15</pitch-offset-deg>
      </config>
    </view>

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

    <view n="1">
      <config>
        <target-z-offset-m archive="y" type="double">0</target-z-offset-m>
      </config>
    </view>

    <view n="2">
      <config>
        <target-z-offset-m archive="y" type="double">0</target-z-offset-m>
      </config>
    </view>

    <view n="3">
      <config>
        <target-z-offset-m archive="y" type="double">0</target-z-offset-m>
      </config>
    </view>

    <view n="4">
      <config>
        <target-z-offset-m archive="y" type="double">0</target-z-offset-m>
      </config>
    </view>

    <view n="5">
      <config>
        <target-z-offset-m archive="y" type="double">0</target-z-offset-m>
      </config>
    </view>

    <!--<view n="6">
      <config>
        <target-z-offset-m archive="y" type="double">0</target-z-offset-m>
      </config>
    </view>-->

    <viewer>
      <eye>
        <latitude-deg type="double">0</latitude-deg>
        <longitude-deg type="double">0</longitude-deg>
        <altitude-ft type="double">0</altitude-ft>
        <heading-deg type="double">0</heading-deg>
        <pitch-deg type="double">0</pitch-deg>
        <roll-deg type="double">0</roll-deg>
      </eye>
      <target>
        <latitude-deg type="double">0</latitude-deg>
        <longitude-deg type="double">0</longitude-deg>
        <altitude-ft type="double">0</altitude-ft>
        <heading-deg type="double">0</heading-deg>
        <pitch-deg type="double">0</pitch-deg>
        <roll-deg type="double">0</roll-deg>
      </target>
    </viewer>

  </sim>

  <nasal>
    <!-- ############################### -->
    <!-- ######## DUAL CONTROL ######### -->
    <dual_control_tools>
      <file>Aircraft/Generic/DualControl/dual-control-tools.nas</file>
    </dual_control_tools>
    <aircraft_dual_control>
      <file>Aircraft/Cap10C/Nasal/Cap10C-dual-control.nas</file>
    </aircraft_dual_control>
    <dual_control>
      <file>Aircraft/Generic/DualControl/copilot-dual-control.nas</file>
    </dual_control>
    <!-- ######## DUAL CONTROL ######### -->
    <!-- ############################### -->

    <Cap10C>
      <file>Aircraft/Cap10C/Nasal/Cap10C-copilot.nas</file>
    </Cap10C>
  </nasal>

</PropertyList>
