789560ea22
I've finished the emigration of the radiostack, and I've also removed it completely. It turned out that the comm radio is completely implemented in the ATC subsystem. I've changed the affected ATC files to point to /instrumentation/com, but I guess that the maintainer of the ATC code should decide wether to make it configureable, and how. I also had to change some files in Network and Main. The changes in network should be obvious, but the changes in Main were a bit suspect. The files included radiostack.hxx, but they weren't directly depending on radiostack-hxx. They were depending on other files that were included by radiostack.hxx. I got it to compile, but I'm not sure if I included the correct directly depending file. For the data directory I changed every occurrence of /radios/ with /instrumentation/ with this simple one-liner that I found on the net: find -name '*.xml' -type f | xargs perl -pi -e 's/\/radios\//\/instrumentation\//g' Instead of me sending all the files that got changed by this I suggest that you execute the one-liner yourself. Of course I can not guarantee that this will work perfectly, but I considered hand editing to be not an option (I'm lazy). I don't want to test every aircraft to see if everything still works, I think it's better to wait and see if anyone complaints about broken nav radios/instruments.
595 lines
13 KiB
XML
595 lines
13 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
HSI instrument
|
|
|
|
Started 24-7-01 by Timothy Gale
|
|
-->
|
|
|
|
<PropertyList>
|
|
<name>HSI</name>
|
|
<w-base>128</w-base>
|
|
<h-base>128</h-base>
|
|
|
|
<params>
|
|
<nav-gs-needle-deflection>/instrumentation/nav[0]/gs-needle-deflection</nav-gs-needle-deflection>
|
|
<hsi-has-gs-needle>/sim/instrument-options/hsi[0]/has-gs-needle</hsi-has-gs-needle>
|
|
</params>
|
|
|
|
<layers>
|
|
<layer>
|
|
<name>compass rose</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/faces-1.rgb</path>
|
|
<x1>0.0</x1>
|
|
<y1>0.51</y1>
|
|
<x2>0.49</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<w>104</w>
|
|
<h>104</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/orientation/heading-magnetic-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>-1.0</scale>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<!-- Taken from Nav1.xml -->
|
|
<layer>
|
|
<name>TO/FROM/OFF flag</name>
|
|
<type>switch</type>
|
|
<layer>
|
|
<condition>
|
|
<property>/instrumentation/nav[0]/to-flag</property>
|
|
</condition>
|
|
<name>TO flag</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.9375</x1>
|
|
<y1>0.578125</y1>
|
|
<x2>1.0</x2>
|
|
<y2>0.625</y2>
|
|
</texture>
|
|
<w>14</w>
|
|
<h>14</h>
|
|
</layer>
|
|
<layer>
|
|
<name>FROM/OFF flag</name>
|
|
<type>switch</type>
|
|
<layer>
|
|
<condition>
|
|
<property>/instrumentation/nav[0]/from-flag</property>
|
|
</condition>
|
|
<name>FROM flag</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.9375</x1>
|
|
<y1>0.625</y1>
|
|
<x2>1.0</x2>
|
|
<y2>0.671875</y2>
|
|
</texture>
|
|
<w>14</w>
|
|
<h>14</h>
|
|
</layer>
|
|
<layer>
|
|
<name>OFF flag</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.9375</x1>
|
|
<y1>0.5</y1>
|
|
<x2>1.0</x2>
|
|
<y2>0.546875</y2>
|
|
</texture>
|
|
<w>14</w>
|
|
<h>14</h>
|
|
</layer>
|
|
</layer>
|
|
<transformations>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/orientation/heading-magnetic-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>-1.0</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>1.0</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>16</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>glidescope needle</name>
|
|
<condition>
|
|
<equals>
|
|
<property alias="../../../../../params/hsi-has-gs-needle"/>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.439</x1>
|
|
<y1>0.5</y1>
|
|
<x2>0.4575</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<w>6</w>
|
|
<h>64</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<property alias="../../../../../params/nav-gs-needle-deflection"/>
|
|
<min>-3.5</min>
|
|
<max>3.5</max>
|
|
<scale>7.0</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<offset>90</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>Nav1</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/hsi.rgb</path>
|
|
<x1>0.0</x1>
|
|
<y1>0.75</y1>
|
|
<x2>0.25</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<w>72</w>
|
|
<h>72</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/orientation/heading-magnetic-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>-1.0</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>1.0</scale>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>Nav1_deviation</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/hsi.rgb</path>
|
|
<x1>0.25</x1>
|
|
<y1>0.75</y1>
|
|
<x2>0.5</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<w>72</w>
|
|
<h>72</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/orientation/heading-magnetic-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>-1.0</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>1.0</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<property>/instrumentation/nav[0]/heading-needle-deflection</property>
|
|
<min>-10.0</min>
|
|
<max>10.0</max>
|
|
<scale>3.2</scale>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
|
|
<layer>
|
|
<name>ADF Needle</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.8671875</x1>
|
|
<y1>0.25</y1>
|
|
<x2>0.921875</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<w>9</w>
|
|
<h>64</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/instrumentation/kr-87/outputs/needle-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
</transformation>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-1</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
<layer>
|
|
<name>Plane</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.5</x1>
|
|
<y1>0.734375</y1>
|
|
<x2>0.59375</x2>
|
|
<y2>0.828125</y2>
|
|
</texture>
|
|
<w>25</w>
|
|
<h>25</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-6</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>Background</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/hsi.rgb</path>
|
|
<x1>0.0</x1>
|
|
<y1>0.0</y1>
|
|
<x2>0.5</x2>
|
|
<y2>0.5</y2>
|
|
</texture>
|
|
<w>104</w>
|
|
<h>104</h>
|
|
</layer>
|
|
|
|
<!-- Copied from gyro.xml -->
|
|
<layer>
|
|
<name>heading bug</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.9375</x1>
|
|
<y1>0.4375</y1>
|
|
<x2>1.0</x2>
|
|
<y2>0.5</y2>
|
|
</texture>
|
|
<w>16</w>
|
|
<h>16</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/autopilot/settings/heading-bug-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/instrumentation/heading-indicator/indicated-heading-deg</property>
|
|
<min>-360.0</min>
|
|
<max>360.0</max>
|
|
<scale>-1.0</scale>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>50</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
<layer>
|
|
<name>bezel</name>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/sim/aero</property>
|
|
<value>c310u3a</value>
|
|
</not-equals>
|
|
</condition>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/bezel.rgb</path>
|
|
<x1>0.0</x1>
|
|
<y1>0.0</y1>
|
|
<x2>1.0</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-1</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>glare shield</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/bezel1.rgb</path>
|
|
<x1>0.5</x1>
|
|
<y1>0.0</y1>
|
|
<x2>1.0</x2>
|
|
<y2>0.5</y2>
|
|
</texture>
|
|
<w>124</w>
|
|
<h>124</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>2</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-2</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
<layer>
|
|
<name>Heading Knob</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/blister.rgb</path>
|
|
<x1>0.25</x1>
|
|
<y1>0.75</y1>
|
|
<x2>0.5</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<h>24</h>
|
|
<w>24</w>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<offset>180</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
<layer>
|
|
<name>Heading label</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.0078125</x1>
|
|
<y1>0.5</y1>
|
|
<x2>0.1640625</x2>
|
|
<y2>0.6640625</y2>
|
|
</texture>
|
|
<w>15</w>
|
|
<h>15</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/autopilot/settings/heading-bug-deg</property>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>OBS Knob</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/blister.rgb</path>
|
|
<x1>0.25</x1>
|
|
<y1>0.75</y1>
|
|
<x2>0.5</x2>
|
|
<y2>1.0</y2>
|
|
</texture>
|
|
<h>24</h>
|
|
<w>24</w>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<offset>180</offset>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
|
|
<layer>
|
|
<name>OBS label</name>
|
|
<texture>
|
|
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
|
|
<x1>0.0078125</x1>
|
|
<y1>0.66015625</y1>
|
|
<x2>0.1640625</x2>
|
|
<y2>0.8242185</y2>
|
|
</texture>
|
|
<w>15</w>
|
|
<h>15</h>
|
|
<transformations>
|
|
<transformation>
|
|
<type>x-shift</type>
|
|
<offset>-45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>y-shift</type>
|
|
<offset>-45</offset>
|
|
</transformation>
|
|
<transformation>
|
|
<type>rotation</type>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
</transformation>
|
|
</transformations>
|
|
</layer>
|
|
</layers>
|
|
|
|
<actions>
|
|
<action>
|
|
<name>OBS small clockwise rotation</name>
|
|
<button>0</button>
|
|
<x>-56</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<step>-1.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>OBS large clockwise rotation</name>
|
|
<button>1</button>
|
|
<x>-56</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<step>-5.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>OBS small counter-clockwise rotation</name>
|
|
<button>0</button>
|
|
<x>-46</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<step>1.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>OBS large counter-clockwise rotation</name>
|
|
<button>1</button>
|
|
<x>-46</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/instrumentation/nav[0]/radials/selected-deg</property>
|
|
<step>5.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>Heading hold small clockwise rotation</name>
|
|
<button>0</button>
|
|
<x>36</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/autopilot/settings/heading-bug-deg</property>
|
|
<step>-1.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>Heading hold large clockwise rotation</name>
|
|
<button>1</button>
|
|
<x>36</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/autopilot/settings/heading-bug-deg</property>
|
|
<step>-5.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>Heading hold small counter-clockwise rotation</name>
|
|
<button>0</button>
|
|
<x>46</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/autopilot/settings/heading-bug-deg</property>
|
|
<step>1.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
|
|
<action>
|
|
<name>Heading hold large counter-clockwise rotation</name>
|
|
<button>1</button>
|
|
<x>46</x>
|
|
<y>-56</y>
|
|
<w>12</w>
|
|
<h>24</h>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/autopilot/settings/heading-bug-deg</property>
|
|
<step>5.0</step>
|
|
<min>0</min>
|
|
<max>360</max>
|
|
<wrap>1</wrap>
|
|
</binding>
|
|
</action>
|
|
</actions>
|
|
|
|
</PropertyList>
|
|
|
|
|