Board index FlightGear Development Aircraft

Westland Lynx AH7

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: Westland Lynx AH7

Postby cobe571 » Mon Jun 03, 2019 8:26 am

Given that the project is almost at the end; it seems to me a total waste not to carry it out. I spent too many months and sleepless nights to see this project die in total desolation.
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Mon Jun 03, 2019 8:55 am

I really need to understand something. From what I remember the 3D models into FlightGear needs a single texture associated with a single material. We assume that the material is called Defaul-White. Should this material have associated transparency characteristics? Glasses that by their nature use a transparent material, can they also make use of a transparent texture or is it really as disastrous as I was told ?
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby legoboyvdlp » Mon Jun 03, 2019 9:06 am

You want to set the transparency attribute. Notice in the (plaintext) .ac file in the material definition there is "trans X.XXXX". If you want transparent, you put that to 1.0.

There should be a setting to adjust transparency in blender renderer materials. You would need to have one material for transparent objects and one for non-transparent objects.
User avatar
legoboyvdlp
 
Posts: 6846
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Westland Lynx AH7

Postby cobe571 » Mon Jun 03, 2019 9:29 am

I would like to explain myself better: the 3D model of the fuselage has the Default-White material set in this way. As had been suggested to me at the time. Into the simulator, however, we see the shadow of the interior projected to the ground. Which seems very strange to me. For sure i'm doing something wrong.

Look at this settings:

Image

Image

Image
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby legoboyvdlp » Mon Jun 03, 2019 9:43 am

Alpha is set to 1 in the last panel - what happens when you set it to zero?
User avatar
legoboyvdlp
 
Posts: 6846
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Westland Lynx AH7

Postby cobe571 » Mon Jun 03, 2019 10:20 am

To be honest I always thought that opaque materials should never have any transparency. But so I was suggested and I therefore accepted that suggestion as good. Also because I no longer deal with the creation of FG planes for a very long time (4 years I think) and certainly many things have changed. This afternoon I will make new tests by making changes to the Default-White material.
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Fri Jun 07, 2019 11:17 am

I believe I am not yet ready and enough prepared to apply the right effects. In the meantime I managed to place the tail rotor in the right position.

Image
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Fri Jun 07, 2019 11:38 pm

Attempting to place the main rotor but Isn't absolutely perfect. Still I have to fight how to place it and make it functional.

Image
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby WoodSTokk » Sat Jun 08, 2019 3:34 am

On your pictures i see you have modeled the main rotor in a extra blend file.
Have you insert it in the main blend file or will it stay in a extra blend file?
If i have the blend files i can you say exactly how to place and animate the main rotor.
WoodSTokk
 
Posts: 234
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Re: Westland Lynx AH7

Postby cobe571 » Sat Jun 08, 2019 8:43 am

Still workin on the main rotor. Full code for every folder inside the project will follow.

Image
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Sat Jun 08, 2019 10:07 am

The root directory 'Westland_Lynx-AH7' contains two extremely important files. Let's see:

Image

the file 'westland_lynx-ah7-set.xml'

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<!--************************************************************************
                 Westland Lynx AH7 simulation config file

    License: CC-BY-NC-SA 4.0                         
    Author:  Patrizio Melis (3D-Model/UVMap/Texture/FDM)
    Author:  StuartC (FDM/Nasal)
    Author:  Garry Brown (LIVERIES Paintwork)
    Author:  Melchior FRANZ (Nasal)
    Author:  G-EED (Nasal)
    Author:  Tomaskom (Nasal)
    Author:  GRTux (In memory of)
 
        Strictly NOT allowed commercial projects with these files

************************************************************************-->

<PropertyList>

   <sim>
   
        <description>Westland Lynx AH7</description>

        <tags>
          <tag>WESTLAND</tag>
          <tag>LynxAH7</tag>
          <tag>two-engine</tag>
          <tag>double-turbine</tag>
        </tags>
       
       
   <author>Patrizio Melis (3D/UVMap/Texture/FDM), StuartC (FDM/Nasal), Garry Brown (LIVERIES Paintwork), Melchior FRANZ - G-EED - Tomaskom (Nasal)</author>
   <status>alpha</status>
   <license>CC-BY-NC-ND 4.0</license>
   <aircraft-version>0.1</aircraft-version>   
   
        <flight-model>yasim</flight-model>
        <!-- YASim start file -->
   <aero>westland_lynx-ah7-yasim</aero>
   <fuel-fraction>1</fuel-fraction>
   
    <model>
      <path>Aircraft/Westland_Lynx-AH7/Models/westland_lynx-ah7.xml</path>
      <livery>
        <file type="string">default</file>
      </livery>
      <door-positions>
        <crew>
          <position-norm>
            <value> 1 </value>
          </position-norm>
        </crew>
      </door-positions>
    </model>

    <sound>
      <path>Aircraft/Westland_Lynx-AH7/Sounds/sound.xml</path>
    </sound>

    <menubar>
     <default>
      <menu n="10">
       <label>Westland Lynx AH7</label>
        <enabled type="bool">true</enabled>
       
        <item>
         <label>Autostart</label>
         <binding>
         <command>nasal</command>
         <script>westland_lynx-ah7.startup();</script>
         </binding>
        </item>

        <item>
         <label>Autoshutdown</label>
         <binding>
         <command>nasal</command>
         <script>westland_lynx-ah7.shutdown();</script>
         </binding>
        </item>

        <item>
         <label>Select Livery</label>
         <binding>
         <command>nasal</command>
         <script>aircraft.livery.dialog.toggle();</script>
         </binding>
        </item>

      </menu>
     </default>
    </menubar>

    <!-- <menubar>
     <default>
      <menu n="100">
        <label>LIVERIES</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> -->

    <startup>
     <splash-texture>Aircraft/Westland_Lynx-AH7/splash.jpg</splash-texture>
    </startup>
   
    <systems>

      <electrical>
        <path>Aircraft/Generic/generic-electrical.xml</path>
      </electrical>
    
      <autopilot>
        <path>Aircraft/Westland_Lynx-AH7/Systems/autopilot-H.xml</path>
      </autopilot>
   
      <autopilot n="101">
        <path>Aircraft/Westland_Lynx-AH7/Systems/glass-rain.xml</path>
      </autopilot>

      <instrumentation>
        <path>Aircraft/Westland_Lynx-AH7/Systems/instrumentation.xml</path>
      </instrumentation>

    </systems>   

    <flight-recorder include="Systems/flight-recorder.xml"/>
      
    <hud>
     <path n="1">Aircraft/Westland_Lynx-AH7/Hud/hud.xml</path>
      <visibility n="1">true</visibility>
       <palette>
        <color n="0">
         <alpha type="float">0.85</alpha>
         <antialiased type="bool">true</antialiased>
         <brightness type="float">0.85</brightness>
         <transparent type="bool">true</transparent>
         <red type="float">0.38</red>
         <green type="float">1.0</green>
         <blue type="float">0.22</blue>
        </color>
        <color n="1">
         <alpha type="float">0.85</alpha>
         <antialiased type="bool">true</antialiased>
         <brightness type="float">0.85</brightness>
         <transparent type="bool">true</transparent>
         <red type="float">1.0</red>
         <green type="float">0.2</green>
         <blue type="float">0.0</blue>
        </color>
       </palette>
    </hud>

    <multiplay>
     <generic>
     <!-- Nav lights on -->
     <int n="0" alias="/controls/switches/nav-lights-switch" />
     <!-- Beacon on -->
     <int n="1" alias="/controls/switches/beacon-switch" />
     <!-- Landing lights on -->
     <int n="2" alias="/controls/switches/landing-lights-switch" />
     <!-- Taxi light on -->
     <int n="3" alias="/controls/switches/strobe-switch" />
     <!-- rotor particles -->
     <int n="6" alias="/gear/gear/ground-is-solid"/>
     <!-- Crashed -->
     <int n="7" alias="/sim/crashed" />
         
     <float n="0" alias="/sim/model/westland_lynx-ah7/doors/door[0]/position-norm"/>
     <float n="1" alias="/sim/model/westland_lynx-ah7/doors/door[1]/position-norm"/>
     <float n="2" alias="/sim/model/westland_lynx-ah7/doors/door[2]/position-norm"/>
     <float n="3" alias="/sim/model/westland_lynx-ah7/doors/door[3]/position-norm"/>
     <float n="4" alias="/sim/model/westland_lynx-ah7/doors/door[4]/position-norm"/>
     <float n="5" alias="/sim/model/westland_lynx-ah7/doors/door[5]/position-norm"/>
     <float n="6" alias="/orientation/pitch-deg"/> <!-- rotor particles -->
     <float n="7" alias="/position/gear-agl-m"/> <!-- rotor particles -->
     <float n="8" alias="/orientation/roll-deg"/><!-- rotor particles -->
     <float n="9" alias="/rotors/main/torque"/>   <!-- rotor particles -->
     <float n="10" alias="/controls/wiper/posp"/> <!--wiper over MP -->

     <!-- Dual Control -->

     <float n="14" alias="/instrumentation/airspeed-indicator/indicated-speed-kt"/> <!-- ASI-->
     <float n="15" alias="/instrumentation/altimeter/indicated-altitude-ft"/> <!-- ALT -->
     <float n="16" alias="/instrumentation/altimeter/setting-hpa"/> <!-- ALT hpa digits-->
     <float n="17" alias="/position/altitude-agl-ft"/> <!-- Radar Alt.-->

     <string n="1" alias="/sim/weight[5]/selected" /> <!-- Payload over multiplayer -->
            
     </generic>
    </multiplay>

    <model>
     <path archive="y">Aircraft/Westland_Lynx-AH7/Models/westland_lynx-ah7.xml</path>
     <config>
     </config>

    <westland_lynx-ah7>
      <tail-angle-deg type="int" archive="y">0</tail-angle-deg>
      <state type="int">0</state>
      <rotor-step-deg type="float">-1.0</rotor-step-deg>

      <particles>
        <enabled type="bool">true</enabled>
      </particles>

      <doors>
       <door>
        <position-norm type="double">0.0</position-norm>
         <name type="string">pilot's door</name>
      </door>

      <door>
       <position-norm type="double">0.0</position-norm>
        <name type="string">copilot's door</name>
      </door>

      <door>
       <position-norm type="double">0.0</position-norm>
        <name type="string">right backdoor</name>
      </door>

      <door>
       <position-norm type="double">0.0</position-norm>
        <name type="string">left backdoor</name>
      </door>

      <door>
       <position-norm type="double">0.0</position-norm>
        <name type="string">right reardoor</name>
      </door>

      <door>
       <position-norm type="double">0.0</position-norm>
        <name type="string">left reardoor</name>
      </door>
     </doors>

    </westland_lynx-ah7>

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

    </model>
   
    <rendering>
      <refl_correction type="string">-0.41</refl_correction>
    </rendering>

    <airport>
        <runways>
            <start-offset-m>3.3</start-offset-m>
        </runways>
    </airport>      

    <!-- Views -->

    <view n="0">
     <name>Cockpit</name>
      <type>lookfrom</type>
       <internal type="bool">true</internal>
        <config>
         <x-offset-m type="double">0.55</x-offset-m><!--left-->
         <y-offset-m type="double">0.44</y-offset-m><!--up-->
         <z-offset-m type="double">-2.35</z-offset-m><!--back-->
         <pitch-offset-deg>-14</pitch-offset-deg>
        <default-field-of-view-deg type="double">86.0</default-field-of-view-deg>
       </config>
    </view>

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

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

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

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

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

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

    <view n="100">
     <name>Pilot cam</name>
      <internal archive="y">false</internal>
       <config>
        <from-model type="bool">true</from-model>
        <from-model-idx type="int">0</from-model-idx>
        <x-offset-m type="double">0.0</x-offset-m> <!--left-->
        <y-offset-m type="double">0.45</y-offset-m> <!--up-->
        <z-offset-m type="double">-2.9</z-offset-m> <!--back-->
        <pitch-offset-deg>-8</pitch-offset-deg>
        <heading-offset-deg>199</heading-offset-deg>
        <default-field-of-view-deg>110</default-field-of-view-deg>
       </config>
    </view>

    <view n="101">
     <name>Over the shoulder</name>
      <internal archive="y">false</internal>
       <config>
        <from-model type="bool">true</from-model>
        <from-model-idx type="int">0</from-model-idx>
        <x-offset-m archive="y">0.52</x-offset-m> <!--right-->
        <y-offset-m archive="y">0.4</y-offset-m> <!--up-->
        <z-offset-m archive="y">-1.0</z-offset-m> <!--back-->
        <pitch-offset-deg>-14</pitch-offset-deg>
        <heading-offset-deg>10</heading-offset-deg>
        <default-field-of-view-deg>65</default-field-of-view-deg>
        </config>
    </view>      

    <view n="102">
     <name>TILAD</name>
      <internal archive="y">false</internal>
       <config>
        <from-model type="bool">true</from-model>
        <from-model-idx type="int">0</from-model-idx>
        <x-offset-m type="double">-0.55</x-offset-m> <!--left-->
        <y-offset-m type="double">1.2</y-offset-m> <!--up-->
        <z-offset-m type="double">-2.75</z-offset-m> <!--back-->
        <pitch-offset-deg>0</pitch-offset-deg>
        <heading-offset-deg>0</heading-offset-deg>
        <default-field-of-view-deg>65</default-field-of-view-deg>
        <limits>
         <enabled type="bool">true</enabled>
          <left>
           <heading-max-deg type="double">110</heading-max-deg>
           <x-offset-max-m type="double">0.20</x-offset-max-m>
           <x-offset-threshold-deg type="double">25</x-offset-threshold-deg>
          </left>
          <right>
           <heading-max-deg type="double">110</heading-max-deg>
           <x-offset-max-m type="double">0.20</x-offset-max-m>
           <x-offset-threshold-deg type="double">25</x-offset-threshold-deg>
          </right>
        </limits>
       </config>
      <flir type="bool">true</flir>
    </view>

    <weight n="0">
     <name>Pilot</name>
      <weight-lb>180</weight-lb>
      <max-lb>300</max-lb>
    </weight>

    <weight n="1">
     <name>Co-Pilot</name>
      <weight-lb>0</weight-lb>
      <max-lb>300</max-lb>
    </weight>

      <weight n="2">
         <name>Not used1</name>
         <weight-lb>0</weight-lb>
         <max-lb>0</max-lb>
      </weight>

      <weight n="3">
         <name>Not used2</name>
         <weight-lb>0</weight-lb>
         <max-lb>0</max-lb>
      </weight>

      <weight n="4">
         <name>Not used3</name>
         <weight-lb>0</weight-lb>
         <max-lb>300</max-lb>
      </weight>   

        <weight n="5">
            <name>Configuration</name>
            <weight-lb>0</weight-lb>
        <selected>Transport</selected>
          <opt>
           <name>Transport</name>
           <lbs>0</lbs>
          </opt>

          <opt>
           <name>Scout</name>
           <lbs>75</lbs>
          </opt>

          <opt>
           <name>Anti_Tank</name>
           <lbs>1200</lbs>
          </opt>
        </weight>

        <flir>
         <view type="int">102</view>
          <weight type="int">5</weight>
            <options>
             <name>Anti_Tank</name>
             <name>Scout</name>
            </options>
        </flir>

        <help>
   
        </help>

  </sim>

  <environment>
    <turbulence>
      <use-cloud-turbulence>true</use-cloud-turbulence>
    </turbulence>
        <precipitation-control>
            <clip-distance type="double">3.75</clip-distance>
        </precipitation-control>
  </environment>

   <consumables>
      <fuel>
         <tank>
            <name>Main</name>
            <selected type="bool" write="n">1</selected>
            <density-ppg type="double" write="n">6.682</density-ppg>
         </tank>

         <tank>
            <name>Supply</name>
            <selected type="bool" write="n">1</selected>
            <density-ppg type="double" write="n">6.682</density-ppg>
         </tank>
      </fuel>
   </consumables>

   <controls>
        <wiper>
         <side type="bool">0</side>
         <pos type="bool">0</pos>
        </wiper>
   
      <flight>
         <aileron-trim>-0.00000</aileron-trim>
         <rudder-trim>-0.0000</rudder-trim>
         <wing-fold>0</wing-fold>
      </flight>

        <engine n="0">
            <magnetos>1</magnetos>
            <propeller-pitch alias="/controls/engines/power-trim"/>
            <mixture alias="/controls/engines/power-balance"/>
        </engine>
         
        <engine n="1">
            <magnetos>1</magnetos>
            <propeller-pitch alias="/controls/engines/power-trim"/>
            <mixture alias="/controls/engines/power-balance"/>
            <throttle alias="/controls/engines/engine[0]/throttle"/>
        </engine>
         
        <power-trim type="double">0</power-trim>

        <power-balance type="double">0</power-balance>
      
        <gear>
            <brake-parking type="double">1.0</brake-parking>
            <wheel n="0"><heading>1</heading></wheel>
            <wheel n="1"><heading>1</heading></wheel>
            <wheel n="2"><heading>0</heading></wheel>
        </gear>
      
      <rotor>
          <brake>1</brake>
          <fold-pos>0</fold-pos>
          <folded>0</folded>
      </rotor>

      <electric>
            <master-switch>false</master-switch>
            <battery-switch>false</battery-switch>
        </electric>
      
        <switches>
          <landing-lights-switch type="bool">false</landing-lights-switch>
        </switches>
      
        <lighting>
          <instruments-norm type="double">0.4</instruments-norm>
        </lighting>

    </controls>

    <instrumentation>
        <mk-viii>                             <!-- http://wiki.flightgear.org/index.php/GPWS -->
           <serviceable>true</serviceable>    <!-- EGPWS_ENABLE -->
           <configuration-module>
              <category-1>   3 </category-1>  <!-- AIRCRAFT_MODE_TYPE_SELECT -->
              <category-8>                    <!-- RADIO_ALTITUDE_INPUT_SELECT -->
                 3 <!-- YASim -->
              </category-8>
           </configuration-module>
           <inputs>                           <!-- Module I/O -->
            <arinc429>
               <decision-height-ncd> true </decision-height-ncd>
               <decision-height> 150 </decision-height>
            </arinc429>
           </inputs>
           <speaker>
              <volume>0</volume>
           </speaker>
        </mk-viii>

        <tcas>
            <serviceable type="bool">true</serviceable>
            <inputs>
                <mode type="int">3</mode>       <!-- 0=off, 1=standby, 2=TA-only, 3=auto(TA/RA) -->
            </inputs>
            <!--voice>
                <file-prefix type="string">Sounds/tcas/</file-prefix>
            </voice-->
            <speaker>                           <!-- Speaker Configuration -->
                <max-dist type="double">7</max-dist>        <!-- Max. distance where speaker is heard -->
                <reference-dist type="double">5</reference-dist> <!-- Distance to pilot -->
                <volume type="double"> 1 </volume>          <!-- Volume at reference distance -->
            </speaker>
            <range type="int">6</range>
        </tcas>

        <nd>
            <radar-texture-path type="string">Aircraft/Westland_Lynx-AH7/Models/Instruments/MFD/radar.png</radar-texture-path>
            <symbol-texture-path type="string">Aircraft/Westland_Lynx-AH7/Models/Instruments/MFD/symbols.png</symbol-texture-path>
            <font>
                <color>
                    <red type="float">0.7</red>
                    <green type="float">0.7</green>
                    <blue type="float">0.7</blue>
                    <alpha type="float">1</alpha>
                </color>
                <name type="string">helvetica_bold.txf</name>
                <size type="float">14</size>
                <line-spacing type="float">0.01</line-spacing>
            </font>
            <serviceable type="bool">true</serviceable>
            <range type="int" archive="y">100</range>
            <aircraft-heading-up type="bool">true</aircraft-heading-up>
            <heading-up-deg type="float">0.01</heading-up-deg>
            <x-center type="float">0.5</x-center>
            <y-center type="float">0.5</y-center>
            <display>
                <arpt type="bool">1</arpt>
                <vor type="bool">1</vor>
                <fix type="bool">0</fix>
                <tcas type="bool">0</tcas>
            </display>
            <line-width type="double">3</line-width>
        </nd>

        <tcas-display>
            <radar-texture-path type="string">Aircraft/Westland_Lynx-AH7/Models/Instruments/MFD/tcas-display.png</radar-texture-path>
            <symbol-texture-path type="string">Aircraft/Westland_Lynx-AH7/Models/Instruments/MFD/symbols.png</symbol-texture-path>
            <font>
                <color>
                    <red type="float">0.7</red>
                    <green type="float">0.7</green>
                    <blue type="float">0.7</blue>
                    <alpha type="float">1</alpha>
                </color>
                <name type="string">helvetica_bold.txf</name>
                <size type="float">14</size>
                <line-spacing type="float">0.01</line-spacing>
            </font>
            <serviceable type="bool">true</serviceable>
            <range type="int" archive="y">6</range>
            <aircraft-heading-up type="bool">true</aircraft-heading-up>
            <heading-up-deg type="float">0.01</heading-up-deg>
            <x-center type="float">0.5</x-center>
            <y-center type="float">0.5</y-center>
            <display>
            </display>
            <line-width type="double">3</line-width>
        </tcas-display>

        <alerts>
            <gear-horn type="bool">0</gear-horn>
            <master-warning type="bool">1</master-warning>
            <master-caution type="bool">1</master-caution>
        </alerts>

        <rmu>
         <unit n="0">
            <serviceable type="bool">1</serviceable>
            <selected type="int">0</selected>
            <selected-xoffset type="int">0</selected-xoffset>
            <selected-yoffset type="int">0</selected-yoffset>
            <com-num type="int">0</com-num>
            <nav-num type="int">0</nav-num>
            <adf-num type="int">0</adf-num>
         </unit>
       
         <unit n="1">
            <serviceable type="bool">1</serviceable>
            <selected type="int">0</selected>
            <selected-xoffset type="int">0</selected-xoffset>
            <selected-yoffset type="int">0</selected-yoffset>
            <com-num type="int">1</com-num>
            <nav-num type="int">1</nav-num>
            <adf-num type="int">1</adf-num>
         </unit>
        </rmu>

       <airspeed-indicator>
        <index n="0" type="double">100</index>
        <index n="1" type="double">120</index>
        <ias-limit>160.0</ias-limit>
        <mach-limit>0.85</mach-limit>
        <alt-threshold>7000.0</alt-threshold>
       </airspeed-indicator>

       <kr-87>
        <inputs>
            <audio-btn>0</audio-btn>
        </inputs>
       </kr-87>

       <primus2000>
        <dc840>
         <hsi type="bool">0</hsi>
         <wx type="bool">0</wx>
         <et type="bool">0</et>
         <tcas type="bool">0</tcas>
         <acft-sys type="bool">0</acft-sys>
         <mfd-map type="bool">1</mfd-map>
         <mfd-wx type="bool">0</mfd-wx>
         <norm type="bool">0</norm>
         <abn type="bool">0</abn>
         <emer type="bool">0</emer>
         <skp type="bool">0</skp>
         <pag type="bool">0</pag>
         <rcl type="bool">0</rcl>
         <ent type="bool">0</ent>
        </dc840>

        <sc840>
         <nav1ptr type="double">0</nav1ptr>
         <nav2ptr type="double">0</nav2ptr>
        </sc840>

        <eicas>
         <serviceable type="bool">1</serviceable>
        </eicas>
   
        <mfd>
         <menu-num type="int">0</menu-num>
        </mfd>

        <pfd>
        </pfd>
       </primus2000>

       <cdu>
        <display>IDENT</display>
        <ident>
        <model>A159 Wildcat</model>
        <engines>-80C2B1F</engines>
        </ident>
        <input type="string"/>
        <serviceable type="bool">true</serviceable>
       </cdu>
 
       <gsdi>
        <serviceable type="bool">true</serviceable>
       </gsdi>
      
       <hsi>
        <serviceable type="bool" archive="y">true</serviceable>
       </hsi>

       <efis>
        <ecam>
         <display-mode type="string">FUEL</display-mode>
        </ecam>

        <nd>
         <display-mode type="string">VOR</display-mode>
         <display-mode-knob type="int">2</display-mode-knob>
         <display-range type="int">20</display-range>
        </nd>
         <!--<input>
            <vor-adf-1 type="int">1</vor-adf-1>
            <vor-adf-2 type="int">1</vor-adf-2>
            <CSTR type="bool">1</CSTR>
            <WPT type="bool">1</WPT>
            <VORD type="bool">1</VORD>
            <NDB type="bool">1</NDB>
            <ARPT type="bool">1</ARPT>
            <WX type="bool">1</WX>
            <TERR type="bool">1</TERR>
            <TRAF type="bool">1</TRAF>
            <taxi type="bool">1</taxi>
         </input>-->
        </efis>   
    </instrumentation>

    <input>
     <keyboard>
      <key n="82">
       <name>R</name>
        <desc>Toggle rotor brake</desc>
        <binding>
        <command>nasal</command>
        <script>
        var p = "/controls/rotor/brake";
        setprop(p, !getprop(p));
        </script>
       </binding>
      </key>

      <key n="114">
       <name>r</name>
        <desc>Apply rotor brake</desc>
        <binding>
        <command>nasal</command>
        <script>interpolate("/controls/rotor/brake", 1.0, 2)</script>
        </binding>
       
        <mod-up>
        <binding>
        <command>nasal</command>
        <script>interpolate("/controls/rotor/brake", 0.0, 2)</script>
        </binding>
        </mod-up>
      </key>

      <key n="123">
       <name>{</name>
       <desc>Shutdown Engines</desc>
        <binding>
         <command>nasal</command>
          <script>westland_lynx-ah7.shutdown()</script>
           <condition>
            <property>/sim/signals/fdm-initialized</property>
           </condition>
        </binding>
      </key>

      <key n="125">
       <name>}</name>
       <desc>Start Engines</desc>
        <binding>
         <command>nasal</command>
          <script>westland_lynx-ah7.startup()</script>
         <condition>
          <property>/sim/signals/fdm-initialized</property>
         </condition>
        </binding>
      </key>
     </keyboard>
    </input>

    <nasal>
     <westland_lynx-ah7>
      <file>Aircraft/Westland_Lynx-AH7/Nasal/westland_lynx-ah7.nas</file>
      <file>Aircraft/Westland_Lynx-AH7/Nasal/liveries.nas</file>
      <file>Aircraft/Westland_Lynx-AH7/Nasal/wiper.nas</file>
      <file>Aircraft/Westland_Lynx-AH7/Nasal/engines.nas</file>
      <file>Aircraft/Westland_Lynx-AH7/Nasal/ralt.nas</file>
     </westland_lynx-ah7>
   
     <init-electrical>
      <file>Aircraft/Westland_Lynx-AH7/Systems/init_electrical.nas</file>
     </init-electrical>

     <lights>
      <file>Aircraft/Westland_Lynx-AH7/Nasal/Lights.nas</file>
     </lights>

     <flir>
      <file>Aircraft/Westland_Lynx-AH7/Nasal/flir.nas</file>
     </flir>
    </nasal>

    <rotors>
     <main>
      <rpm type="double">0</rpm>
     </main>
    </rotors>

</PropertyList>


the file 'westland_lynx-ah7-yasim.xml'

Code: Select all
   <?xml version="1.0" encoding="UTF-8"?>

<!--*****************************************************
   
  WESTLAND LYNX AH7 YASim file

  License: CC-BY-NC-SA 4.0                         
  Author:  Patrizio Melis (3D-Model/UVMap/Texture/FDM)
  Author:  StuartC (FDM/Nasal)
  Author:  Garry Brown (LIVERIES Paintwork)
  Author:  Melchior FRANZ (Nasal)
  Author:  G-EED (Nasal)
  Author:  Tomaskom (Nasal)
  Author:  GRTux (In memory of)
 
  Strictly NOT allowed commercial projects with these files

  Country of Origin   UK
  Builder   WESTLAND
  Role  Utility, attack, antitank
  Rotor diameter   42 ft (12.8 m)
  Dimensions (External)
  Overall Length Rotors Turning  15. 16 m
  Fuselage Length  13. 33 m
  Width (excluding rotor)  2. 94 m
  Overall Height  3. 48 m
  Folded Length  10. 85 m
  Folded Width  2. 94 m
  Folded Height  3. 25 m
  Main Rotor Diameter  12. 80 m
  Tail Rotor Diameter  2. 36 m

  Dimensions (Internal)
  Cabin Length  2. 05 m
  Cabin Width  1. 78 m
  Cabin Height  1. 42 m

  Accommodation
  Cockpit  Pilot and Co-Pilot or Observer
  Cabin  Up to 9 passengers

  Rotor System
  Main Rotor Type  Semi-rigid
  Main Rotor Blades  4 composite blades
  Tail Rotor Type  Fully articulated
  Tail Rotor Blades  4 composite blades

  Weights
  Empty weight 3150 kg
  Maximum All Up Mass  5330 kg
  Cargo Hook Capacity  1360 kg
  Standard Fuel  786 kg
  Auxiliary Fuel Tank  353 kg each

  Engines
  Number  2  2
  Make  Rolls Royce  LHTEC
  Model  Gem 42-1  CTS800-4N
  Type  Triple-shaft two-spool turboshaft
  Length  43.4 in (1090 mm)
  Diameter  23.5 in (590 mm)
  Dry weight: 414 lb (187 kg)
  Compressor  4-stage axial LP, single-stage centrifugal HP
  Turbine  2-stage power turbine, single-stage LP, single-stage HP
  Maximum power output  1,000 shp (746 kW)
  Overall pressure ratio  12:1
  Air mass flow  7 lb/sec
  Take-Off Rating  746 kW each  1015 kW each
  Maximum Continuous  664 kW each  945 kW each

  Performance
  Cruise Speed  137 knots
  Maximum Range (with auxiliary fuel)  530 nm
  Endurance (with auxiliary fuel)  5. 4 hours

  Blade airfoil NPL 9618 or NPL 9615, the model here is with BERP blade.

  Thickness:    11.3%
  Camber:    1.0%
  Trailing edge angle:    18.3o
  Lower flatness:    35.4%
  Leading edge radius:    1.8%
  Max CL:    1.018
  Max CL angle:    15.0
  Max L/D:    36.561
  Max L/D angle:    5.0
  Max L/D CL:    0.679
  Stall angle:    0.0
  Zero-lift angle:    -0.5 
 
  Maximum speed   256 km/h
  Ceiling 2 700 m
 
  Climbing speed 606 m/min
  Walking distance 545 km
  Conveying distance 1 045 km
 
NOTE
This model was created using publicly available data, publicly available
technical reports, textbooks, and guesses. It contains no proprietary or
restricted data. It has been validated only to the extent that it seems
to "fly right", and possibly to comply to published, publicly known,
performance data (maximum speed, endurance, etc.). Thus, this model
is meant for educational and entertainment purposes only.
This simulation model is not endorsed by the manufacturer.

  *****************************************************-->

<!-- <airplane mass="7755">            -->
<!-- -ve Elevator Cyclic is Back stick -->
<!-- -ve aileron Cyclic is right stick -->

<airplane mass="7755" version="YASIM_VERSION_CURRENT">

<approach speed="47" aoa="12">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="0.3"/>
</approach>

<cruise speed="137" alt="0">
  <control-setting axis="/controls/engines/engine[0]/throttle" value="1.0"/>
</cruise>

<rotor name="main" x="0.0" y="0" z="1.47" nx="0" ny="0" nz="1.0" fx="1" fy="0" fz="0" ccw="1"
  maxcollective="20" mincollective="-3"
mincyclicele="-6.9" maxcyclicele="10"
mincyclicail="-4" maxcyclicail="4.5"
diameter="12.8" numblades="4" weightperblade="75"
  relbladecenter="0.5"
  dynamic="0.82"
  rpm="383"
  rellenflaphinge="0.18"
  delta3="0"
  phi0="45"
  delta=".125"
  pitch-a="10"
  pitch-b="15"
  flapmin="-15"
  flapmax="15"
  flap0="-5"
  flap0factor="0"
  notorque="0"
  dragfactor="0.30"
  translift-ve="20"
  translift-maxfactor="1.5"
  ground-effect-constant="0.1"
  twist="-10"
  taper="1"
  chord="0.32"
  number-of-segments="8"
  number-of-parts="8"
  rel-len-where-incidence-is-measured="0.7"
  rel-len-blade-start="0.076"

  airfoil-lift-coefficient="4.6"
  airfoil-drag-coefficient0="0.0074"
  airfoil-drag-coefficient1="0.05"
  incidence-stall-zero-speed="16"
  incidence-stall-half-sonic-speed="15.5"
  lift-factor-stall="0.18"
  stall-change-over="5.5"
  drag-factor-stall="2.0"
  cyclic-factor="0.8"
  rotor-correction-factor="0.95"
  downwashfactor="0.6"
 balance="0.98">

<control-input axis="/controls/flight/aileron-trim" control="CYCLICAIL"/>
  <control-input axis="/controls/flight/aileron" control="CYCLICAIL"
                 src0="-1.0" src1="1.0"
                 dst0="-1.0" dst1="1.0"/>
  <control-input axis="/controls/flight/elevator-trim" control="CYCLICELE"/>
  <control-input axis="/controls/flight/elevator" control="CYCLICELE"
                 src0="-1.0" src1="1.0"
                 dst0="-1.0" dst1="1.0"/>
  <control-input axis="/controls/engines/engine[0]/throttle" control="COLLECTIVE"
                 src0="0.0" src1="1.0"
                 dst0="1.0" dst1="-1.0"/>
</rotor>

<!--  Left pedal is +, Right pedal is -ve -->
<rotor name="tail" x="-7.64" y="0.38" z="1.37" nx="0.0" ny="-1" nz="0.0" fx="1" fy="0" fz="0" ccw="1"
  maxcollective="17.7" mincollective="-14"
  phi0="110"
  diameter="2.36" numblades="4" weightperblade="2.5" relbladecenter="0.7"
  dynamic="1" rpm="1780" rellenflaphinge="0.0" delta3="1" translift="0" delta="0.5"
  sharedflaphinge="1"
  flap0="-0.5"
  pitch-a="10"
  pitch-b="15"
  airfoil-lift-coefficient="6.4"
  airfoil-drag-coefficient0="0.0035"
  airfoil-drag-coefficient1="0.10"
  notorque="0"
  taper="1"
  chord="0.25"
  number-of-segments="5"
  number-of-parts="4"
  rel-len-blade-start="0.33"
  incidence-stall-zero-speed="9"
  incidence-stall-half-sonic-speed="18"
  lift-factor-stall="0.18"
  stall-change-over="5.5"
  drag-factor-stall="8"
  rotor-correction-factor="0.9"
>

   <control-input axis="/controls/flight/rudder-trim" control="COLLECTIVE" invert="true"/>
  <control-input axis="/controls/flight/rudder" control="COLLECTIVE" invert="true"
                 src0="-1.0" src1="1.0"
                 dst0="-1.0" dst1="1.0"/>
</rotor>


<rotorgear
  max-power-engine="2534"
  max-power-rotor-brake="100"
  rotorgear-friction="7.5"
  engine-prop-factor="0.005"
  engine-accel-limit="4"
  yasimdragfactor="16"
  yasimliftfactor="140"
>

 <control-input axis="/controls/engines/engine[0]/magnetos" control="ROTORGEARENGINEON"/>
  <control-input axis="/controls/rotor/brake" control="ROTORBRAKE"
                 src0="0.0" src1="1.0"
                 dst0="0.0" dst1="1.0"/>
  <control-input axis="/controls/rotor/reltarget" control="ROTORRELTARGET"
                 src0="0.0" src1="2.0"
                 dst0="0.0" dst1="2.0"/>
  <control-input axis="/controls/rotor/maxreltorque" control="ROTORENGINEMAXRELTORQUE"
                 src0="0.0" src1="2.0"
                 dst0="0.0" dst1="2.0"/>
</rotorgear>


<cockpit x="2" y=".45" z="0"/>

<fuselage ax="4.3" ay="0" az="0" bx="-3.35" by="0" bz="0"
          width="2.1" taper="1" midpoint="0.5" idrag="0" cx="0.35" cy="0.7" cz="0.7"/>

<fuselage ax="-3.35" ay="0" az="-0.28" bx="-7.60" by="0" bz=".0.62"
          width="0.40" taper="0.3" midpoint="0.5" idrag="0" cx="0.20" cy="0.4" cz="0.4"/>






<vstab x="-7.9" y="-0.5" z="1.3" taper="0.3" length="1.33" chord="0.74" sweep="0" incidence="2.8" dihedral="0" >
      <stall aoa="16" width="4" peak="1.5"/>
</vstab>

<vstab x="-7.9" y="0" z="0.62" taper="0.6" length="1.46" chord="1.1" sweep="30" incidence="0">
      <stall aoa="16" width="4" peak="1.5"/>
</vstab>


<!-- left skid -->
<gear x="2.2" y="+1.40" z="-1.72" skid="1" compression="0.07" spring="0.5" sfric="0.5" dfric="0.4"/>
<gear x="-1" y="+1.40" z="-1.67" skid="1" compression="0.35" spring="12" sfric="1" dfric="0.4"/>


<!-- right skid -->
<gear x="2.2" y="-1.40" z="-1.72" skid="1" compression="0.07" spring="0.5" sfric="0.5" dfric="0.4"/>
<gear x="-1" y="-1.40" z="-1.67" skid="1" compression="0.35" spring="12" sfric="1" dfric="0.4"/>

<!-- due ti issues  with skids,  hidden wheels are also used -->

<!-- left -->
<gear x="2.2" y="+1.40" z="-1.72" compression="0.35" spring="12" sfric="1" dfric="0.4">
<control-input axis="/controls/gear/brake-left" control="BRAKE" split="false"/>
<control-input axis="/controls/gear/brake-parking" control="BRAKE" split="false"/>
</gear>

<!-- right -->
<gear x="2.2" y="-1.40" z="-1.72" compression="0.35" spring="12" sfric="1" dfric="0.4">
<control-input axis="/controls/gear/brake-right" control="BRAKE" split="false"/>
<control-input axis="/controls/gear/brake-parking" control="BRAKE" split="false"/>
</gear>
 

<!-- tail skid -->
<gear x="-7.032" y="+0.00" z="-0.48" skid="1" compression="0.01" spring="0.1" sfric="1" dfric="1"/>

<!-- Left Door -->
<gear x="0" y="0" z="0" retract-time="4" compression="0">
<control-input axis="/controls/doors/left-door" control="EXTEND"/>
<control-speed control="EXTEND" transition-time="4"/>
<control-output control="EXTEND" prop="/surface-positions/left-door-position"/>
</gear>

<!-- Right Door -->
<gear x="0" y="0" z="0" retract-time="4" compression="0">
<control-input axis="/controls/doors/right-door" control="EXTEND"/>
<control-speed control="EXTEND" transition-time="4"/>
<control-output control="EXTEND" prop="/surface-positions/right-door-position"/>
</gear>


<!-- MASSES charge maxi 4000 lbs -->

<tank x="-1.0" y="0" z="-.8" capacity="1500"/> <!-- main:   580 l (570 l usable) @ 6.682 ppg (H3EU.pdf) -->
<tank x="-1.0" y="0" z=".0" capacity="256.84"/> <!-- supply: 93 l (usable?) -->





<ballast x="2.78" y="+1.40" z="-1.9" mass="500"/>
<ballast x="2.78" y="-1.40" z="-1.9" mass="500"/>
<ballast x="-1" y="+1.40" z="-1.67" mass="750"/>
<ballast x="-1" y="-1.40" z="-1.67" mass="750"/>

<weight x="2.5" y="-0.5"  z="0" mass-prop="/sim/weight[0]/weight-lb"/>   <!-- pilot -->
<weight x="2.5" y="0.5" z="0" mass-prop="/sim/weight[1]/weight-lb"/>   <!-- co-pilot -->
<weight x="0" y="0"  z="1" mass-prop="/sim/weight[2]/weight-lb"/>   <!-- right passenger -->
<weight x="0" y="0"    z="1" mass-prop="/sim/weight[3]/weight-lb"/>   <!-- middle passenger -->
<weight x="0" y="0" z="1" mass-prop="/sim/weight[4]/weight-lb"/>   <!-- left passenger -->
<weight x="0" y="0"    z="0" mass-prop="/sim/weight[5]/weight-lb"/>   <!-- configuration -->


<thruster x="-2.55" y="0.0" z="1.55" vx="1" vy="0" vz="0" thrust="4000">
  <control-input axis="/rotors/main/vibration/longitudinal" src0="-1" src1="1" dst0="-1" dst1="1" control="THROTTLE"/>
</thruster>

<thruster x="-2.55" y="0.0" z="1.55" vx="0" vy="1" vz="0" thrust="4000">
  <control-input axis="/rotors/main/vibration/lateral" src0="-1" src1="1" dst0="-1" dst1="1" control="THROTTLE"/>
</thruster>

</airplane>
   
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Sat Jun 08, 2019 10:20 am

Dialogs folder include

Image

the file 'lynx-menu.xml'

Code: Select all
 
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <default>
    <menu n="10">
      <label>Westland Lynx AH7</label>
      <enabled type="bool">true</enabled>
      <item>
        <label>Select Livery</label>
        <binding>
          <command>nasal</command>
          <script>aircraft.livery.dialog.toggle()</script>
        </binding>
      </item>
<!--
      <item>
        <label>Immatriculation</label>
        <binding>
          <command>nasal</command>
          <script>xf11.immat_dialog.toggle()</script>
        </binding>
      </item>
-->
    </menu>
  </default>

</PropertyList>
 
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Sat Jun 08, 2019 10:29 am

Hud folder includes

Image

the file 'hud.xml'

Code: Select all
<?xml version="1.0"?>

<PropertyList>
<name>(Military) helicopter HUD</name>

<enable3d>false</enable3d>




<!-- Tilad stuff -->

   <label>
      <name>top box line</name>
      <x>0</x>
      <y>-5</y>
      <width>20</width>
      <height>200</height>
      <format>________________________________________________________________</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line1</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>194</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line2</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>183</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line3</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>172</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line4</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>161</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line5</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>150</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line6</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>139</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line7</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>128</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line8</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>117</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line9</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>106</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line10</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>95</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line11</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>84</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line12</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>73</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line13</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>62</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line14</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>51</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line15</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>40</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
      <label>
      <name>left box line16</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>29</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line17</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>18</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line18</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>7</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line19</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-4</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line20</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-15</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line21</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-26</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line22</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-37</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line22</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-48</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line23</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-59</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
      <label>
      <name>left box line24</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-70</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line25</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-81</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line25</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-92</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line26</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-103</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line27</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-114</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line28</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-125</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line29</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-136</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line30</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-147</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line31</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-158</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line32</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-169</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line33</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-180</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>left box line34</name>
      <x>-162</x>
      <y>-5</y>
      <width>20</width>
      <height>-191</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   
   <label>
      <name>right box line1</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>194</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
      <label>
      <name>right box line2</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>183</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line3</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>172</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line4</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>161</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line5</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>150</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line6</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>139</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line7</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>128</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line8</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>117</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line9</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>106</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line10</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>95</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line11</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>84</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line12</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>73</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line13</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>62</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line14</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>51</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>rght box line15</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>40</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
      <label>
      <name>right box line16</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>29</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line17</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>18</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line18</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>7</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line19</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-4</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line20</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-15</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line21</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-26</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line22</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-37</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line22</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-48</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line23</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-59</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
      <label>
      <name>right box line24</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-70</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line25</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-81</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line25</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-92</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line26</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-103</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line27</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-114</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line28</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-125</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line29</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-136</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line30</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-147</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line31</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-158</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line32</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-169</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line33</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-180</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   <label>
      <name>right box line34</name>
      <x>162</x>
      <y>-5</y>
      <width>20</width>
      <height>-191</height>
      <format>I</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>
   
   
   
   <label>
      <name>bottom box line</name>
      <x>0</x>
      <y>-5</y>
      <width>20</width>
      <height>-195</height>
      <format>_______________________________________________________________</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>


   <tape>
      <name>Gyrocompass2</name>
      <input>
         <property>/orientation/heading-deg</property>
         <factor>0.1</factor>
      </input>
      <x>-90</x>
      <y>110</y>
      <width>200</width>
      <height>25</height>
      <display-span>4.0</display-span>
      <modulo>36</modulo>
      <option>top</option>
      <label-gap-width>22</label-gap-width>
      <major-divisions>1</major-divisions>
      <minor-divisions>0.5</minor-divisions>
      <tick-bottom>true</tick-bottom>
      <tick-top>true</tick-top>
      <tick-right>true</tick-right>
      <tick-left>true</tick-left>
      <cap-bottom>true</cap-bottom>
      <cap-top>true</cap-top>
      <cap-right>true</cap-right>
      <cap-left>true</cap-left>
      <marker-offset>0</marker-offset>
      <enable-pointer>true</enable-pointer>
      <pointer-type>fixed</pointer-type>
      <tick-type>line</tick-type>
      <tick-length>variable</tick-length>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </tape>

   <aiming-reticle>
      <x>5</x>
      <y>-9</y>
      <width>18</width>
      <height>18</height>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </aiming-reticle>
   
   <label>
      <name>mils</name>
      <x>4</x>
      <y>-5</y>
      <width>20</width>
      <height>10</height>
      <format>+-----+----- -----+-----+</format>
      <halign>center</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>

   
   <label>
      <name>Pitch2</name>
      <x>180</x>
      <y>-23</y>
      <width>28</width>
      <height>8</height>
       <box>true</box>
        <option>left</option>
      <input>
         <property>sim/current-view/pitch-offset-deg</property>
      </input>
      <format>%4.2f</format>
      <halign>right</halign>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </label>    
   
     <label>
        <name>lat</name>
        <x>180</x>
        <y>5</y>
        <width>45</width>
        <height>10</height>
        <input>
            <property>instrumentation/gps/indicated-latitude-deg</property>
        </input>
        <format>%3.3f</format>
        <halign>left</halign>
        <box>true</box>
        <option>left</option>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
    </label>
   
   <label>
        <name>long</name>
        <x>180</x>
        <y>-10</y>
        <width>45</width>
        <height>10</height>
        <input>
            <property>instrumentation/gps/indicated-longitude-deg</property>
        </input>
        <format>%3.3f</format>
        <halign>left</halign>
        <box>true</box>
        <option>left</option>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
    </label>
   

   <tape>
      <name>view-heading</name>
      <x>-80</x>
      <y>-130</y>
      <width>200</width>
      <height>20</height>
      <input>
         <property>sim/current-view/heading-offset-deg</property>
         <factor>0.1</factor>
         <max>85</max>
         <min>0</min>
      </input>
      <major-divisions>1</major-divisions>
      <minor-divisions>0.5</minor-divisions>
      <display-span>3.5</display-span>
      <option>left</option>
      <option>horizontal</option>
      <tick-bottom>true</tick-bottom>
      <tick-top>true</tick-top>
      <tick-right>false</tick-right>
      <tick-left>true</tick-left>
      <cap-bottom>true</cap-bottom>
      <cap-top>true</cap-top>
      <cap-right>true</cap-right>
      <cap-left>true</cap-left>
      <marker-offset>5</marker-offset>
      <enable-pointer>false</enable-pointer>
      <pointer-type>fixed</pointer-type>
       <condition>
            <equals>
                 <property>/sim/current-view/name</property>
                  <value>TILAD</value>
            </equals>
        </condition>
   </tape>


</PropertyList>

"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Sat Jun 08, 2019 10:49 am

Models directory includes many folders; the 3D model itself, the texture and the animation file

Image

the file 'westland_lynx-ah7.xml'

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

  <!-- ************************************************************************

  Westland Lynx AH7 animation file for Flightgear

  License: CC-BY-NC-SA 4.0                         
  Author:  Patrizio Melis (3D-Model/UVMap/Texture/FDM)
  Author:  StuartC (FDM/Nasal)
  Author:  Garry Brown (LIVERIES Paintwork)
  Author:  Melchior FRANZ (Nasal)
  Author:  G-EED (Nasal)
  Author:  Tomaskom (Nasal)
  Author:  GRTux (In memory of)

  Strictly NOT allowed commercial projects with these files

  ************************************************************************ -->

<PropertyList>

     <path>westland_lynx-ah7.ac</path>

     <offsets>
       <pitch-deg>0</pitch-deg>
       <z-m>0.05</z-m>
       <x-m>0</x-m>
     </offsets>

<!--  Multiplayer Sound Call -->

     <sound>
       <path>Aircraft/Westland_Lynx-AH7/Sounds/mp-sound.xml</path>
     </sound>

<!--  Nasal Code -->

  <nasal>

    <load>
        var livery_update = aircraft.livery_update.new("Aircraft/Westland_Lynx-AH7/Models/Liveries", 10);

        var self = cmdarg();
    
        var aliases = [];
         for (var i = 0; i &lt; 6; i += 1) {
            var door = self.getNode("sim/model/bo105/doors/door[" ~ i ~ "]/position-norm", 1);
            var generic = self.getNode("sim/multiplay/generic/float[" ~ i ~ "]", 1);
            door.alias(generic);
            append(aliases, door);
         }
    
        <![CDATA[
        var root = cmdarg();
        var rootindex = root.getIndex();
        var mpPath = "/ai/models/multiplayer["~ rootindex ~"]/";
        var lightsPath = mpPath~"lightpack/"; #path to the property node, where all internal values are placed

        props.globals.initNode(mpPath~"sim/is-MP-Aircraft", 1, "BOOL");
        srand();
        #wherever you want to add randomization of time, use something like:  + rand()*0.05-0.025 (included by default where appropriate)

        #list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
        #IMPORTANT: don't put / on the start of the string, it's already included in the mpPath property
        var navSwitch = mpPath~"controls/lighting/nav-lights-switch";
        var beaconSwitch = mpPath~"controls/lighting/beacon-switch";
        var strobeSwitch = mpPath~"controls/lighting/strobe-switch";
        var landingSwitch = mpPath~"controls/lighting/landing-lights-switch";
        var taxiSwitch = mpPath~"controls/lighting/taxi-light-switch";
        var probeSwitch = mpPath~"controls/lighting/probe-light-switch";
        var whiteSwitch = mpPath~"controls/lighting/white-light-switch";

        #switch this from 1 to 0 if you want to use advanced cyclical fading animation of the the nav lights instead of being stable on when the switch is on
        navStillOn = 1;

        #I need to set listener on some MP transferred properties; this doesn't seem to work well sometimes, so I mirror them to the original location on any change
        #This also simplifies work as I can use almost the same code for MP as is the local Nasal. Furthermore, I can use meaningful property names in the model XML files instead of referencing the MP properties.
        var mpVar = {
        new: func(propIn, propOut) {
        var m = { parents: [mpVar] };
        m.propIn = propIn;
        m.propOut = propOut;
        if(propIn==nil or propOut==nil) return m;
        m.value = getprop(propIn);
        setprop(propOut, m.value);
        return m;
        },
        check: func {
        if(me.propIn==nil or me.propOut==nil) return;
        var newValue = getprop(me.propIn);
        if(newValue != me.value) {
        setprop(me.propOut, newValue);
            me.value = newValue;
            #print("value of "~me.propOut~" changed: "~newValue);
              }
            },
         };
        #init any property copy object needed in this array (anything you need to transfer over MP, but you are using the original paths in your xmls)
        #also used for properties you are using a listener on, or properties which you maybe want to manipulate during the <unload>
        #if you're just using the pack, change the values according to the MP bindings in the -set.xml file
        #you don't need to delete the entries if the path is nil - it gets skipped automatically and the MP path is just ignored
        var mirrorValues = [
         mpVar.new(mpPath~"sim/multiplay/generic/int[7]", mpPath~"sim/crashed"),
         mpVar.new(mpPath~"sim/multiplay/generic/int[0]", navSwitch),
         mpVar.new(mpPath~"sim/multiplay/generic/int[1]", beaconSwitch),
         mpVar.new(mpPath~"sim/multiplay/generic/int[1]", strobeSwitch),
         mpVar.new(mpPath~"sim/multiplay/generic/int[2]", landingSwitch),
         mpVar.new(mpPath~"sim/multiplay/generic/int[3]", taxiSwitch),
         mpVar.new(mpPath~"sim/multiplay/generic/int[3]", probeSwitch),
         mpVar.new(mpPath~"sim/multiplay/generic/int[0]", whiteSwitch),
        ];
        #loop at the default MP transfer frequency (10Hz)
        var mirrorTimer = maketimer(0.1, func {
        foreach(var mir; mirrorValues) {
        mir.check();
          }
        });
        mirrorTimer.start();

        #### NAV LIGHTS ####

        #class for a periodic fade in/out animation - for flashing, use rather standard aircraft.light.new(), as in Beacon and Strobe section
        var lightCycle = {
        #constructor
        new: func(propSwitch, propOut) {
        m = { parents: [lightCycle] };
        props.globals.initNode(propOut, 0, "DOUBLE");
        props.globals.initNode(propSwitch, 1, "BOOL");
        m.fadeIn = 0.4 + rand()*0.05-0.025; #fade in time
        m.fadeOut = 0.4 + rand()*0.05-0.025; #fade out time
        m.stayOn = 1.5 + rand()*0.05-0.025; #stable on period
        m.stayOff = 1 + rand()*0.05-0.025; #stable off period
        m.turnOff = 0.12; #fade out time when turned off
        m.phase = 0; #phase to be run on next timer call: 0 -> fade in, 1 -> stay on, 2 -> fade out, 3 -> stay off
        m.cycleTimer = maketimer(0.1, func {
         if(getprop(propSwitch)) {
            if(m.phase == 0) {
               interpolate(propOut, 1, m.fadeIn);
               m.phase = 1;
               m.cycleTimer.restart(m.fadeIn);
            }
            else if(m.phase == 1){
               m.phase = 2;
               m.cycleTimer.restart(m.stayOn);
            }
            else if(m.phase == 2){
               interpolate(propOut, 0, m.fadeOut);
               m.phase = 3;
               m.cycleTimer.restart(m.fadeOut);
            }
            else if(m.phase == 3){
               m.phase = 0;
               m.cycleTimer.restart(m.stayOff);
            }
         }
         else {
            interpolate(propOut, 0, m.turnOff); #kills any currently ongoing interpolation
            m.phase = 0;
         }
      });
      m.cycleTimer.singleShot = 1;
      if(propSwitch==nil) {
         m.listen = nil;
         return m;
      }
      m.listen = setlistener(propSwitch, func{m.cycleTimer.restart(0);}); #handle switch changes
      m.cycleTimer.restart(0); #start the looping
      return m;
        },
       #destructor
        del: func {
        if(me.listen!=nil) removelistener(me.listen);
        me.cycleTimer.stop();
         },
        };

        #By default, the switch property is initialized to 1 (only if no value is already assigned). Don't change the class implementation! To override this, set the property manually. You don't need to care if any other code already does it for you.
        var navLights = nil;
        if(!navStillOn) {
       navLights = lightCycle.new(navSwitch, lightsPath~"nav-lights-intensity");
       ### Uncomment and tune those to customize times ###
       #navLights.fadeIn = 0.4; #fade in time
       #navLights.fadeOut = 0.4; #fade out time
       #navLights.stayOn = 3 + rand()*0.05-0.025; #stable on period
       #navLights.stayOff = 0.6; #stable off period
       #navLights.turnOff = 0.12; #fade out time when turned off
        }

        ### BEACON ###
        var beacon = nil;
        if(beaconSwitch!=nil) {
       props.globals.initNode(beaconSwitch, 1, "BOOL");
        beacon = aircraft.light.new(lightsPath~"beacon-state",
        [0.0, 1.0 + rand()*0.05-0.025], beaconSwitch);
        }

        ### STROBE ###
        var strobe = nil;
        if(strobeSwitch!=nil) {
        props.globals.initNode(strobeSwitch, 1, "BOOL");
        strobe = aircraft.light.new(lightsPath~"strobe-state",
        [0.0, 0.87 + rand()*0.05-0.025], strobeSwitch);
        }

        ### LIGHT FADING ###

        #class for controlling fade in/out behavior - propIn is a control property (handled as a boolean) and propOut is interpolated
        #all light brightness animations in xmls depend on propOut (Rembrandt brightness, material emission, flares transparency, ...)
        var lightFadeInOut = {
        #constructor
        new: func(propSwitch, propOut) {
        m = { parents: [lightFadeInOut] };
        m.fadeIn = 0.3; #some sane defaults
        m.fadeOut = 0.4;
      if(propSwitch==nil) {
         m.listen = nil;
         return m;
      }
      props.globals.initNode(propSwitch, 1, "BOOL");
      m.isOn = getprop(propSwitch);
      props.globals.initNode(propOut, m.isOn, "DOUBLE");
      m.listen = setlistener(propSwitch,
         func {
            if(m.isOn and !getprop(propSwitch)) {
               interpolate(propOut, 0, m.fadeOut);
               m.isOn = 0;
                }
            if(!m.isOn and getprop(propSwitch)) {
               interpolate(propOut, 1, m.fadeIn);
               m.isOn = 1;
                    }
                }
            );
        return m;
        },
        #destructor
        del: func {
        if(me.listen!=nil) removelistener(me.listen);
           },
        };

        fadeLanding = lightFadeInOut.new(landingSwitch, lightsPath~"landing-lights-intensity");
        fadeTaxi = lightFadeInOut.new(taxiSwitch, lightsPath~"taxi-light-intensity");
        fadeProbe = lightFadeInOut.new(probeSwitch, lightsPath~"probe-light-intensity");
        fadeWhite = lightFadeInOut.new(whiteSwitch, lightsPath~"white-light-intensity");
        if(navStillOn) {
        navLights = lightFadeInOut.new(navSwitch, lightsPath~"nav-lights-intensity");
        navLights.fadeIn = 0.1;
        avLights.fadeOut = 0.12;
        }
        #manipulate times if defaults don't fit your needs:
        #fadeLanding.fadeIn = 0.5;
        #fadeLanding.fadeOut = 0.8;

        ### the rest of your model load embedded Nasal code ###

        ]]>
    </load>

    <unload>
      #prevent multiple timers and listeners from running and fighting on next connect
      #cleanly destroy MP property mirroring
      mirrorTimer.stop();
      mirrorTimer = nil;
      mirrorValues = nil;
     
      #cleanly destroy nav lights
      if(navStillOn) {
         navLights.del();
      }
      else {
         if(navSwitch!=nil) setprop(navSwitch, 0);
         navLights.del();
         if(navSwitch!=nil) navLights.cycleTimer = nil;
         navLights = nil;
      }
     
      #cleanly destroy beacon
      if(beaconSwitch!=nil) setprop(beaconSwitch, 0);
      beacon.del();
      beacon = nil;
     
      #cleanly destroy strobe
      if(strobeSwitch!=nil) setprop(strobeSwitch, 0);
      strobe.del();
      strobe = nil;
     
      #cleanly destroy light fade in/out animation objects
      fadeLanding.del();
      fadeTaxi.del();
      fadeProbe.del();
      fadeWhite.del();
     
      ### the rest of your model unload embedded Nasal code ###
      livery_update.stop();
      crew_door.unalias();
      passenger_door.unalias();
      foreach (var a; aliases)
            a.unalias();
    </unload>

  </nasal>

<!-- Objects Full List -->

  <animation>
    <!-- Opaque Objects List -->
    <object-name>DOOR-GARNISH-OUT-L</object-name>
    <object-name>DOOR-GARNISH-OUT-R</object-name>
    <object-name>DOOR-HANDLE-L</object-name>
    <object-name>DOOR-HANDLE-R</object-name>
    <object-name>DOOR-MID-L</object-name>
    <object-name>DOOR-MID-R</object-name>
    <object-name>DOOR-OUT-L</object-name>
    <object-name>DOOR-OUT-R</object-name>
    <object-name>EXAUST.001</object-name>
    <object-name>EXAUST.002</object-name>
    <object-name>EXAUST.003</object-name>
    <object-name>EXAUST.004</object-name>
    <object-name>FUSELAGE-BODY.000</object-name>
    <object-name>FUSELAGE-BODY.001</object-name>
    <object-name>FUSELAGE-BODY.002</object-name>
    <object-name>FUSELAGE-BODY.003</object-name>
    <object-name>FUSELAGE-BODY.004</object-name>
    <object-name>FUSELAGE-BODY.005</object-name>
    <object-name>FUSELAGE-BODY.006</object-name>
    <object-name>FUSELAGE-BODY.007</object-name>
    <object-name>FUSELAGE-BODY.008</object-name>
    <object-name>HATCH-GARNISH-OUT-L</object-name>
    <object-name>HATCH-GARNISH-OUT-R</object-name>
    <object-name>HATCH-HANDLE-L.000</object-name>
    <object-name>HATCH-HANDLE-R.000</object-name>
    <object-name>HATCH-MID-L</object-name>
    <object-name>HATCH-MID-R</object-name>
    <object-name>HATCH-OUT-L</object-name>
    <object-name>HATCH-OUT-R</object-name>
    <object-name>INLETS-IN.000</object-name>
    <object-name>INLETS-IN.001</object-name>
    <object-name>INLETS-IN.002</object-name>
    <object-name>INLETS-IN.003</object-name>
    <object-name>INLETS-OUT.000</object-name>
    <object-name>INLETS-OUT.001</object-name>
    <object-name>INLETS-OUT.002</object-name>
    <object-name>INLETS-OUT.003</object-name>
    <object-name>LANDING-GEAR.000</object-name>
    <object-name>LANDING-GEAR.001</object-name>
    <object-name>LANDING-GEAR.002</object-name>
    <object-name>LIGHT-BOTTOM-BASE</object-name>
    <object-name>LIGHT-BOTTOM-MIRROR</object-name>
    <object-name>LIGHT-BOTTOM-RED</object-name>
    <object-name>LIGHT-BOTTOM-TWO</object-name>
    <object-name>LIGHT-GREEN-SUPPORT</object-name>
    <object-name>LIGHT-NOSE-BASE</object-name>
    <object-name>LIGHT-NOSE-MIRROR</object-name>
    <object-name>LIGHT-RED-SUPPORT</object-name>
    <object-name>LIGHT-SIDE-GREEN</object-name>
    <object-name>LIGHT-SIDE-RED</object-name>
    <object-name>LIGHT-TAIL-BASE</object-name>
    <object-name>LIGHT-TAIL-MIRROR</object-name>
    <object-name>LIGHT-TAIL-SUPPORT</object-name>
    <object-name>LIGHT-TAIL-WHITE</object-name>
    <object-name>MIRROR-UPPER-CAVITY.000</object-name>
    <object-name>MIRROR-UPPER-CAVITY.001</object-name>
    <object-name>NOSE-GARNISH</object-name>
    <object-name>RIVETS</object-name>
    <object-name>RUNG</object-name>
    <object-name>SENSORS</object-name>
    <object-name>T-ROTOR.000</object-name>
    <object-name>T-ROTOR.001</object-name>
    <object-name>T-ROTOR.002</object-name>
    <object-name>TAIL.000</object-name>
    <object-name>TAIL.001</object-name>
    <object-name>TAIL.002</object-name>
    <object-name>TAIL.003</object-name>
    <object-name>TAIL.004</object-name>
    <object-name>TAIL.005</object-name>
    <object-name>TAIL.006</object-name>
    <object-name>TAIL.007</object-name>
    <object-name>TURBINE.000</object-name>
    <object-name>TURBINE.001</object-name>
    <object-name>WIND-SHIELD-L.000</object-name>
    <object-name>WIND-SHIELD-L.001</object-name>
    <object-name>WIND-SHIELD-R.000</object-name>
    <object-name>WIND-SHIELD-R.001</object-name>
    <!-- Trasparent Objects List -->
    <object-name>DOOR-GLASS-OUT-L.000</object-name>
    <object-name>DOOR-GLASS-OUT-L.001</object-name>
    <object-name>DOOR-GLASS-OUT-R.000</object-name>
    <object-name>DOOR-GLASS-OUT-R.001</object-name>
    <object-name>GLASS-HATCH-OUT-L</object-name>
    <object-name>GLASS-HATCH-OUT-R</object-name>
    <object-name>GLASS-NOSE-OUT</object-name>
    <object-name>GLASS-TOP-OUT</object-name>
    <object-name>GLASS-UPPER-OUT</object-name>
    <object-name>GLASS-WSCREEN-OUT</object-name>
    <object-name>LIGHT-BOTTOM-GLASS</object-name>
    <object-name>LIGHT-GREEN-GLASS</object-name>
    <object-name>LIGHT-RED-GLASS</object-name>
    <object-name>LIGHT-TAIL-GLASS</object-name>

  </animation>

<!-- Objects Linked To The Main Texture -->

  <animation>
    <type>material</type>
    <object-name>DOOR-GARNISH-OUT-L</object-name>
    <object-name>DOOR-GARNISH-OUT-R</object-name>
    <object-name>DOOR-HANDLE-L</object-name>
    <object-name>DOOR-HANDLE-R</object-name>
    <object-name>DOOR-MID-L</object-name>
    <object-name>DOOR-MID-R</object-name>
    <object-name>DOOR-OUT-L</object-name>
    <object-name>DOOR-OUT-R</object-name>
    <object-name>EXAUST.001</object-name>
    <object-name>EXAUST.002</object-name>
    <object-name>EXAUST.003</object-name>
    <object-name>EXAUST.004</object-name>
    <object-name>FUSELAGE-BODY.000</object-name>
    <object-name>FUSELAGE-BODY.001</object-name>
    <object-name>FUSELAGE-BODY.002</object-name>
    <object-name>FUSELAGE-BODY.003</object-name>
    <object-name>FUSELAGE-BODY.004</object-name>
    <object-name>FUSELAGE-BODY.005</object-name>
    <object-name>FUSELAGE-BODY.006</object-name>
    <object-name>FUSELAGE-BODY.007</object-name>
    <object-name>FUSELAGE-BODY.008</object-name>
    <object-name>HATCH-GARNISH-OUT-L</object-name>
    <object-name>HATCH-GARNISH-OUT-R</object-name>
    <object-name>HATCH-HANDLE-L.000</object-name>
    <object-name>HATCH-HANDLE-R.000</object-name>
    <object-name>HATCH-MID-L</object-name>
    <object-name>HATCH-MID-R</object-name>
    <object-name>HATCH-OUT-L</object-name>
    <object-name>HATCH-OUT-R</object-name>
    <object-name>INLETS-IN.000</object-name>
    <object-name>INLETS-IN.001</object-name>
    <object-name>INLETS-IN.002</object-name>
    <object-name>INLETS-IN.003</object-name>
    <object-name>INLETS-OUT.000</object-name>
    <object-name>INLETS-OUT.001</object-name>
    <object-name>INLETS-OUT.002</object-name>
    <object-name>INLETS-OUT.003</object-name>
    <object-name>LANDING-GEAR.000</object-name>
    <object-name>LANDING-GEAR.001</object-name>
    <object-name>LANDING-GEAR.002</object-name>
    <object-name>LIGHT-BOTTOM-BASE</object-name>
    <object-name>LIGHT-BOTTOM-MIRROR</object-name>
    <object-name>LIGHT-BOTTOM-RED</object-name>
    <object-name>LIGHT-BOTTOM-TWO</object-name>
    <object-name>LIGHT-GREEN-SUPPORT</object-name>
    <object-name>LIGHT-NOSE-BASE</object-name>
    <object-name>LIGHT-NOSE-MIRROR</object-name>
    <object-name>LIGHT-RED-SUPPORT</object-name>
    <object-name>LIGHT-SIDE-GREEN</object-name>
    <object-name>LIGHT-SIDE-RED</object-name>
    <object-name>LIGHT-TAIL-BASE</object-name>
    <object-name>LIGHT-TAIL-MIRROR</object-name>
    <object-name>LIGHT-TAIL-SUPPORT</object-name>
    <object-name>LIGHT-TAIL-WHITE</object-name>
    <object-name>MIRROR-UPPER-CAVITY.000</object-name>
    <object-name>MIRROR-UPPER-CAVITY.001</object-name>
    <object-name>NOSE-GARNISH</object-name>
    <object-name>RIVETS</object-name>
    <object-name>RUNG</object-name>
    <object-name>SENSORS</object-name>
    <object-name>T-ROTOR.000</object-name>
    <object-name>T-ROTOR.001</object-name>
    <object-name>T-ROTOR.002</object-name>
    <object-name>TAIL.000</object-name>
    <object-name>TAIL.001</object-name>
    <object-name>TAIL.002</object-name>
    <object-name>TAIL.003</object-name>
    <object-name>TAIL.004</object-name>
    <object-name>TAIL.005</object-name>
    <object-name>TAIL.006</object-name>
    <object-name>TAIL.007</object-name>
    <object-name>TURBINE.000</object-name>
    <object-name>TURBINE.001</object-name>
    <object-name>WIND-SHIELD-L.000</object-name>
    <object-name>WIND-SHIELD-L.001</object-name>
    <object-name>WIND-SHIELD-R.000</object-name>
    <object-name>WIND-SHIELD-R.001</object-name>

  <property-base>sim/model/livery</property-base>
    <texture-prop>texture</texture-prop>
    <texture>texture.jpg</texture>
    <!-- <specular>
      <red-prop>specular/red</red-prop>
      <green-prop>specular/green</green-prop>
      <blue-prop>specular/blue</blue-prop>
    </specular> -->
  </animation>

<!-- Effects - Reflect -->

  <effect>
    <inherits-from>Aircraft/Westland_Lynx-AH7/Effects/Reflect/foo_reflect</inherits-from>
    <object-name>DOOR-GARNISH-OUT-L</object-name>
    <object-name>DOOR-GARNISH-OUT-R</object-name>
    <object-name>DOOR-HANDLE-L</object-name>
    <object-name>DOOR-HANDLE-R</object-name>
    <object-name>DOOR-MID-L</object-name>
    <object-name>DOOR-MID-R</object-name>
    <object-name>DOOR-OUT-L</object-name>
    <object-name>DOOR-OUT-R</object-name>
    <object-name>EXAUST.001</object-name>
    <object-name>EXAUST.002</object-name>
    <object-name>EXAUST.003</object-name>
    <object-name>EXAUST.004</object-name>
    <object-name>FUSELAGE-BODY.000</object-name>
    <object-name>FUSELAGE-BODY.001</object-name>
    <object-name>FUSELAGE-BODY.002</object-name>
    <object-name>FUSELAGE-BODY.003</object-name>
    <object-name>FUSELAGE-BODY.004</object-name>
    <object-name>FUSELAGE-BODY.005</object-name>
    <object-name>FUSELAGE-BODY.006</object-name>
    <object-name>FUSELAGE-BODY.007</object-name>
    <object-name>FUSELAGE-BODY.008</object-name>
    <object-name>HATCH-GARNISH-OUT-L</object-name>
    <object-name>HATCH-GARNISH-OUT-R</object-name>
    <object-name>HATCH-HANDLE-L.000</object-name>
    <object-name>HATCH-HANDLE-R.000</object-name>
    <object-name>HATCH-MID-L</object-name>
    <object-name>HATCH-MID-R</object-name>
    <object-name>HATCH-OUT-L</object-name>
    <object-name>HATCH-OUT-R</object-name>
    <object-name>INLETS-IN.000</object-name>
    <object-name>INLETS-IN.001</object-name>
    <object-name>INLETS-IN.002</object-name>
    <object-name>INLETS-IN.003</object-name>
    <object-name>INLETS-OUT.000</object-name>
    <object-name>INLETS-OUT.001</object-name>
    <object-name>INLETS-OUT.002</object-name>
    <object-name>INLETS-OUT.003</object-name>
    <object-name>LANDING-GEAR.000</object-name>
    <object-name>LANDING-GEAR.001</object-name>
    <object-name>LANDING-GEAR.002</object-name>
    <object-name>LIGHT-BOTTOM-BASE</object-name>
    <object-name>LIGHT-BOTTOM-MIRROR</object-name>
    <object-name>LIGHT-BOTTOM-RED</object-name>
    <object-name>LIGHT-BOTTOM-TWO</object-name>
    <object-name>LIGHT-GREEN-SUPPORT</object-name>
    <object-name>LIGHT-NOSE-BASE</object-name>
    <object-name>LIGHT-NOSE-MIRROR</object-name>
    <object-name>LIGHT-RED-SUPPORT</object-name>
    <object-name>LIGHT-SIDE-GREEN</object-name>
    <object-name>LIGHT-SIDE-RED</object-name>
    <object-name>LIGHT-TAIL-BASE</object-name>
    <object-name>LIGHT-TAIL-MIRROR</object-name>
    <object-name>LIGHT-TAIL-SUPPORT</object-name>
    <object-name>LIGHT-TAIL-WHITE</object-name>
    <object-name>MIRROR-UPPER-CAVITY.000</object-name>
    <object-name>MIRROR-UPPER-CAVITY.001</object-name>
    <object-name>NOSE-GARNISH</object-name>
    <object-name>RIVETS</object-name>
    <object-name>RUNG</object-name>
    <object-name>SENSORS</object-name>
    <object-name>T-ROTOR.000</object-name>
    <object-name>T-ROTOR.001</object-name>
    <object-name>T-ROTOR.002</object-name>
    <object-name>TAIL.000</object-name>
    <object-name>TAIL.001</object-name>
    <object-name>TAIL.002</object-name>
    <object-name>TAIL.003</object-name>
    <object-name>TAIL.004</object-name>
    <object-name>TAIL.005</object-name>
    <object-name>TAIL.006</object-name>
    <object-name>TAIL.007</object-name>
    <object-name>TURBINE.000</object-name>
    <object-name>TURBINE.001</object-name>
    <object-name>WIND-SHIELD-L.000</object-name>
    <object-name>WIND-SHIELD-L.001</object-name>
    <object-name>WIND-SHIELD-R.000</object-name>
    <object-name>WIND-SHIELD-R.001</object-name>
  </effect>

<!-- Effects - Glass -->

  <effect>
    <inherits-from>Aircraft/Westland_Lynx-AH7/Models/Effects/Glass/glass</inherits-from>
    <object-name>DOOR-GLASS-OUT-L.000</object-name>
    <object-name>DOOR-GLASS-OUT-L.001</object-name>
    <object-name>DOOR-GLASS-OUT-R.000</object-name>
    <object-name>DOOR-GLASS-OUT-R.001</object-name>
    <object-name>GLASS-HATCH-OUT-L</object-name>
    <object-name>GLASS-HATCH-OUT-R</object-name>
    <object-name>GLASS-NOSE-OUT</object-name>
    <object-name>GLASS-TOP-OUT</object-name>
    <object-name>GLASS-UPPER-OUT</object-name>
    <object-name>GLASS-WSCREEN-OUT</object-name>
    <object-name>LIGHT-BOTTOM-GLASS</object-name>
    <object-name>LIGHT-GREEN-GLASS</object-name>
    <object-name>LIGHT-RED-GLASS</object-name>
    <object-name>LIGHT-TAIL-GLASS</object-name>
  </effect>

<!-- Effects - Metal Reflect -->

  <effect>
    <inherits-from>Aircraft/Westland_Lynx-AH7/Models/Effects/Metal/metal-reflect</inherits-from>
   <condition>
      <not><property>sim/rendering/rembrandt/enabled</property></not>
    </condition>
    <object-name>EXAUST.001</object-name>
    <object-name>EXAUST.002</object-name>
    <object-name>EXAUST.003</object-name>
    <object-name>EXAUST.004</object-name>
    <object-name>INLETS-IN.000</object-name>
    <object-name>INLETS-IN.001</object-name>
    <object-name>INLETS-IN.002</object-name>
    <object-name>INLETS-IN.003</object-name>
    <object-name>LIGHT-BOTTOM-MIRROR</object-name>
    <object-name>LIGHT-NOSE-MIRROR</object-name>
    <object-name>LIGHT-TAIL-MIRROR</object-name>
    <object-name>MIRROR-UPPER-CAVITY.000</object-name>
    <object-name>TURBINE.001</object-name>
  </effect>

<!-- Interior -->

  <model>
    <path>Aircraft/Westland_Lynx-AH7/Models/Interior/interior.xml</path>
    <offsets>
      <x-m>0.000</x-m>
      <y-m>0.000</y-m>
      <z-m>0.000</z-m>
    </offsets>
  </model>
 
<!-- Rotors -->

  <model>
     <name>mainrotor</name>
       <path>Aircraft/Westland_Lynx-AH7/Models/Main-Rotor/main-rotor.xml</path>
       <offsets>
         <x-m>0.000</x-m>
         <y-m>0.000</y-m>
         <z-m>0.000</z-m>
         <pitch-deg>-3</pitch-deg>
       </offsets>
  </model>


  <model>
    <name>tailrotor</name>
      <path>Aircraft/Westland_Lynx-AH7/Models/Tail-Rotor/tail-rotor.xml</path>
      <offsets>
        <x-m>0.000</x-m>
        <y-m>0.000</y-m>
        <z-m>0.000</z-m>
        <pitch-deg>0</pitch-deg>
      </offsets>
  </model>

<!-- Particles -->

  <model>
    <name>mainrotors_dirt</name>
    <path>Aircraft/Westland_Lynx-AH7/Models/Effects/particle/rotor_particle.xml</path>
    <offsets>
      <x-m>  0.000 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.000 </z-m>
    </offsets>
  </model>

</PropertyList>


texture.jpg

Image
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: Westland Lynx AH7

Postby cobe571 » Sat Jun 08, 2019 11:33 am

Liveries directory includes the folder 2048x2048 where liveries lies and the xml files associated to every texture. Let's see.

Image

702-nas.xml

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim>
    <model>
      <livery>
        <name type="string">702 NAS</name>
        <index type="int">1</index>
        <texture>Liveries/2048x2048/702-nas.jpg</texture>
        <specular>
          <red>   0.3 </red>
          <green> 0.3 </green>
          <blue>  0.3 </blue>
        </specular>
        <emission>
          <red>   0.02 </red>
          <green> 0.02 </green>
          <blue>  0.02 </blue>
        </emission>
      </livery>
    </model>
   <rendering>
    <refl_correction type="string">-0.25</refl_correction>
    </rendering>
  </sim>

</PropertyList>


Image

default.xml

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim>
    <model>
      <livery>
        <name type="string">British Army, AAC</name>
        <index type="int">1</index>
        <texture>Liveries/2048x2048/texture.jpg</texture>
        <specular>
          <red>   0.3 </red>
          <green> 0.3 </green>
          <blue>  0.3 </blue>
        </specular>
        <emission>
          <red>   0.02 </red>
          <green> 0.02 </green>
          <blue>  0.02 </blue>
        </emission>
      </livery>
    </model>
   <rendering>
    <refl_correction type="string">-0.25</refl_correction>
    </rendering>
  </sim>

</PropertyList>


Image

ETPS.xml

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim>
    <model>
      <livery>
        <name type="string">Empire Test Pilot's School</name>
        <index type="int">1</index>
        <texture>Liveries/2048x2048/ETPS.jpg</texture>
        <specular>
          <red>   0.3 </red>
          <green> 0.3 </green>
          <blue>  0.3 </blue>
        </specular>
        <emission>
          <red>   0.02 </red>
          <green> 0.02 </green>
          <blue>  0.02 </blue>
        </emission>
      </livery>
    </model>
   <rendering>
    <refl_correction type="string">-0.25</refl_correction>
    </rendering>
  </sim>

</PropertyList>


Image

ice-patrol.xml

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim>
    <model>
      <livery>
        <name type="string">702 NAS Ice Patrol</name>
        <index type="int">1</index>
        <texture>Liveries/2048x2048/ice-patrol.jpg</texture>
        <specular>
          <red>   0.3 </red>
          <green> 0.3 </green>
          <blue>  0.3 </blue>
        </specular>
        <emission>
          <red>   0.02 </red>
          <green> 0.02 </green>
          <blue>  0.02 </blue>
        </emission>
      </livery>
    </model>
   <rendering>
    <refl_correction type="string">-0.25</refl_correction>
    </rendering>
  </sim>

</PropertyList>


Image

marine.xml

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim>
    <model>
      <livery>
        <name type="string">Royal Marine</name>
        <index type="int">1</index>
        <texture>Liveries/2048x2048/marine.jpg</texture>
        <specular>
          <red>   0.3 </red>
          <green> 0.3 </green>
          <blue>  0.3 </blue>
        </specular>
        <emission>
          <red>   0.02 </red>
          <green> 0.02 </green>
          <blue>  0.02 </blue>
        </emission>
      </livery>
    </model>
   <rendering>
    <refl_correction type="string">-0.25</refl_correction>
    </rendering>
  </sim>

</PropertyList>



Image

rn-blue.xml

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim>
    <model>
      <livery>
        <name type="string">Royal Navy Old Blue</name>
        <index type="int">1</index>
        <texture>Liveries/2048x2048/rn-blue.jpg</texture>
        <specular>
          <red>   0.3 </red>
          <green> 0.3 </green>
          <blue>  0.3 </blue>
        </specular>
        <emission>
          <red>   0.02 </red>
          <green> 0.02 </green>
          <blue>  0.02 </blue>
        </emission>
      </livery>
    </model>
   <rendering>
    <refl_correction type="string">-0.25</refl_correction>
    </rendering>
  </sim>

</PropertyList>



Image

rn-laf.xml

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim>
    <model>
      <livery>
        <name type="string">Royal Navy LAF</name>
        <index type="int">1</index>
        <texture>Liveries/2048x2048/rn-laf.jpg</texture>
        <specular>
          <red>   0.3 </red>
          <green> 0.3 </green>
          <blue>  0.3 </blue>
        </specular>
        <emission>
          <red>   0.02 </red>
          <green> 0.02 </green>
          <blue>  0.02 </blue>
        </emission>
      </livery>
    </model>
   <rendering>
    <refl_correction type="string">-0.25</refl_correction>
    </rendering>
  </sim>

</PropertyList>



Image
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 164
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 35 guests