1
0
Fork 0
fgdata/Aircraft/Instruments/vor2-c172s.xml
curt 789560ea22 Roy Vegard Ovesen:
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.
2004-12-03 21:25:48 +00:00

361 lines
7.4 KiB
XML

<?xml version="1.0"?>
<!--
vor2.xml
VOR2 from C172-S
Martin Dressler dr@musicabona.cz
Jan 26 2003
-->
<PropertyList>
<name>C172-S VOR2</name>
<w-base>512</w-base>
<h-base>512</h-base>
<params>
<nav-to-flag>/instrumentation/nav[1]/to-flag</nav-to-flag> -->
<nav-from-flag>/instrumentation/nav[1]/from-flag</nav-from-flag> -->
<nav-radial-selected>/instrumentation/nav[1]/radials/selected-deg</nav-radial-selected>
<nav-heading-needle-deflection>/instrumentation/nav[1]/heading-needle-deflection</nav-heading-needle-deflection>
<nav-in-range>/instrumentation/nav[1]/in-range</nav-in-range>
</params>
<layers>
<layer>
<name>NAV backplate</name>
<w>320</w>
<h>320</h>
<texture>
<path>Aircraft/Instruments/Textures/nav3.rgb</path>
<x1>0.0</x1>
<x2>0.625</x2>
<y1>0.0</y1>
<y2>0.625</y2>
</texture>
</layer>
<layer>
<name>VOR2 backplate</name>
<w>244</w>
<h>152</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.0</x1>
<x2>0.476562</x2>
<y1>0.46875</y1>
<y2>0.765625</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-44</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>VOR TO</name>
<condition>
<equals>
<property alias="../../../../../params/nav-to-flag"/>
<value>true</value>
</equals>
</condition>
<w>52</w>
<h>48</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.0</x1>
<x2>0.101562</x2>
<y1>0.765625</y1>
<y2>0.859375</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>2</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>75</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>VOR FROM</name>
<condition>
<equals>
<property alias="../../../../../params/nav-from-flag"/>
<value>true</value>
</equals>
</condition>
<w>52</w>
<h>48</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.101562</x1>
<x2>0.203125</x2>
<y1>0.765625</y1>
<y2>0.859375</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>2</offset>
</transformation>
<transformation>
<type>x-shift</type>
<offset>75</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>VOR needle motor</name>
<w>76</w>
<h>76</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.5625</x1>
<x2>0.710938</x2>
<y1>0.195312</y1>
<y2>0.34375</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>161</offset>
</transformation>
<transformation>
<type>rotation</type>
<offset>90</offset>
<property alias="../../../../../params/nav-heading-needle-deflection"/>
<min>-10.0</min>
<max>10.0</max>
<scale>-3.2</scale>
</transformation>
</transformations>
</layer>
<layer>
<name>VOR needle</name>
<w>16</w>
<h>252</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.96875</x1>
<x2>1.0</x2>
<y1>0.0</y1>
<y2>0.492188</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>162</offset>
</transformation>
<transformation>
<type>rotation</type>
<offset>0</offset>
<property alias="../../../../../params/nav-heading-needle-deflection"/>
<min>-10.0</min>
<max>10.0</max>
<scale>-3.2</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-151</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Radial</name>
<w>512</w>
<h>512</h>
<texture>
<path>Aircraft/Instruments/Textures/nav2.rgb</path>
<x1>0.0</x1>
<x2>1.0</x2>
<y1>0.0</y1>
<y2>1.0</y2>
</texture>
<transformations>
<transformation>
<type>rotation</type>
<property alias="../../../../../params/nav-radial-selected"/>
<min>0.0</min>
<max>360.0</max>
<scale>-1.0</scale>
</transformation>
</transformations>
</layer>
<layer>
<name>VOR arrow down</name>
<w>28</w>
<h>24</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.476562</x1>
<x2>0.53125</x2>
<y1>0.6875</y1>
<y2>0.734375</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-153</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>VOR arrow up</name>
<w>40</w>
<h>44</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.476562</x1>
<x2>0.554688</x2>
<y1>0.601562</y1>
<y2>0.6875</y2>
</texture>
<transformations>
<transformation>
<type>y-shift</type>
<offset>135</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Foreground</name>
<w>512</w>
<h>512</h>
<texture>
<path>Aircraft/Instruments/Textures/nav1.rgb</path>
<x1>0.0</x1>
<x2>1.0</x2>
<y1>0.0</y1>
<y2>1.0</y2>
</texture>
</layer>
<layer>
<name>OBS Knob</name>
<condition>
<equals>
<property>/sim/instrument-options/omit-knobs</property>
<value></value>
</equals>
</condition>
<w>100</w>
<h>100</h>
<texture>
<path>Aircraft/Instruments/Textures/nav4.rgb</path>
<x1>0.757812</x1>
<x2>0.953125</x2>
<y1>0.0</y1>
<y2>0.195312</y2>
</texture>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-181</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-192</offset>
</transformation>
<transformation>
<type>rotation</type>
<property alias="../../../../../params/nav-radial-selected"/>
<scale>5</scale>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<action>
<name>small counter-clockwise rotation</name>
<button>0</button>
<x>-231</x>
<y>-242</y>
<w>50</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/nav-radial-selected"/>
<step>-1.0</step>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</binding>
</action>
<action>
<name>large counter-clockwise rotation</name>
<button>1</button>
<x>-231</x>
<y>-242</y>
<w>50</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/nav-radial-selected"/>
<step>-5.0</step>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</binding>
</action>
<action>
<name>small clockwise rotation</name>
<button>0</button>
<x>-181</x>
<y>-242</y>
<w>50</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/nav-radial-selected"/>
<step>1.0</step>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</binding>
</action>
<action>
<name>large clockwise rotation</name>
<button>1</button>
<x>-181</x>
<y>-242</y>
<w>50</w>
<h>100</h>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/nav-radial-selected"/>
<step>5.0</step>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</binding>
</action>
</actions>
</PropertyList>