1
0
Fork 0

Hi-res versions of altimeter and airspeed indicators from Martin Dressler.

Use Martin's needle for hi-res rpm and vsi gauges.
This commit is contained in:
curt 2002-08-22 17:38:35 +00:00
parent 771cba4a0f
commit c3c953a070
11 changed files with 298 additions and 328 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,26 +1,14 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- <!--
Improved altimeter instrument. Improved airspeed indicator instrument.
Adds enhancements allowing for calibration. Apr 27 2001
Martin Dressler dr@musicabona.cz
Altimeter indicator instrument from C172RG
GPL
_______________________________________________________________________________
Jan, 2001 by Julian Foad <julianfoad@netscapeonline.co.uk> Based on Default by David Megginson, david@megginson.com.
Julian sez:
"provides a modified instrument definition with a knob
driving a subscale showing through a cut-out in the face....
I've put two lines in 'altimeter.xml', one to display millibars and
another, presently commented out, for inHg; USA pilots might want to
uncomment the inHg line instead. At present, my subscale texture map
only has marks on it, not numbers, so it can stay the same. Really
there should be two different versions of the altimeter, and a
USA-registered C172 would be fitted with an altimeter with inHg while
and a UK-registered C172 would be fitted with an altimeter with mb on
its subscale."
_________________________________________________________________
Based on default by David Megginson, david@megginson.com.
This is an instrument configuration file for the open-source flight This is an instrument configuration file for the open-source flight
simulator FlightGear (www.flightgear.org). The file is an XML-encoded simulator FlightGear (www.flightgear.org). The file is an XML-encoded
@ -42,276 +30,189 @@ properties' values.
<PropertyList> <PropertyList>
<name>Altimeter</name> <name>C172RG Altimeter Indicator</name>
<w-base>128</w-base>
<h-base>128</h-base> <w-base>256</w-base>
<h-base>256</h-base>
<layers> <layers>
<layer> <layer>
<name>subscale</name> <name>Pressure</name>
<texture> <texture>
<path>Aircraft/Instruments/Textures/faces-6.rgb</path> <path>Aircraft/Instruments/Textures/alt3.rgb</path>
<x1>0.51</x1> <x1>0.0</x1>
<y1>0.51</y1> <y1>0.0</y1>
<x2>1.0</x2> <x2>1.0</x2>
<y2>1.0</y2> <y2>1.0</y2>
</texture> </texture>
<w>104</w>
<h>104</h>
<transformations> <transformations>
<transformation> <transformation>
<type>rotation</type> <type>rotation</type>
<property>/steam/altimeter-datum-mb</property> <property>/steam/altimeter-datum-mb</property>
<scale>-4.5</scale> <!-- degrees rotation per millibar --> <min>945</min>
<max>1090</max>
<scale>-2.9533373</scale> <!-- degrees rotation per millibar -->
<offset>120</offset>
</transformation> </transformation>
</transformations> </transformations>
</layer> </layer>
<layer> <layer>
<name>guage face</name> <name>background</name>
<texture> <texture>
<path>Aircraft/Instruments/Textures/faces-1-hi.rgb</path> <path>Aircraft/Instruments/Textures/alt2.rgb</path>
<x1>0.51</x1> <x1>0.0</x1>
<y1>0.51</y1> <y1>0.0</y1>
<x2>1.0</x2> <x2>1.0</x2>
<y2>1.0</y2> <y2>1.0</y2>
</texture> </texture>
<w>110</w>
<h>110</h>
</layer> </layer>
<layer> <layer>
<name>numeric datum</name> <name>thousand needle</name>
<type>text</type> <texture>
<point-size>10</point-size> <path>Aircraft/Instruments/Textures/madr-misc1.rgb</path>
<color>
<red>1.0</red>
<green>1.0</green>
<blue>1.0</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>/steam/altimeter-datum-mb</property>
<!-- <format>%5.2f</format> <scale>0.029530</scale> --> <!-- Display inHg -->
<format>%4.0f</format> <!-- Display mb -->
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>10</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-5</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>short needle (thousands)</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.8</x1>
<y1>0.859375</y1>
<x2>0.8375</x2>
<y2>1.0</y2>
</texture>
<w>6</w>
<h>24</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/steam/altitude-ft</property>
<max>100000.0</max>
<scale>0.036</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>14.0</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>long needle (hundreds)</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.8</x1>
<y1>0.78125</y1>
<x2>0.8375</x2>
<y2>1.0</y2>
</texture>
<w>6</w>
<h>48</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/steam/altitude-ft</property>
<max>100000.0</max>
<scale>0.36</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>20.0</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>bug (ten thousands)</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.85</x1>
<y1>0.8125</y1>
<x2>0.8755</x2>
<y2>0.84375</y2>
</texture>
<w>12</w>
<h>12</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/steam/altitude-ft</property>
<max>100000.0</max>
<scale>0.0036</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>50.0</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>button</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.6171875</x1>
<y1>0.2421875</y1>
<x2>0.7890625</x2>
<y2>0.4140625</y2>
</texture>
<w>15</w>
<h>15</h>
</layer>
<layer>
<name>glare shield</name>
<texture>
<path>Aircraft/Instruments/Textures/bezel1.rgb</path>
<x1>0.5</x1> <x1>0.5</x1>
<y1>0.0</y1> <y1>0.0</y1>
<x2>1.0</x2> <x2>1.0</x2>
<y2>0.5</y2> <y2>0.5</y2>
</texture> </texture>
<w>128</w> <w>128</w>
<h>128</h> <h>128</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>2</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-2</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>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> <transformations>
<transformation> <transformation>
<type>x-shift</type> <type>rotation</type>
<offset>-45</offset> <property>/steam/altitude-ft</property>
<max>100000.0</max>
<scale>0.0036</scale>
</transformation> </transformation>
<transformation> <transformation>
<type>y-shift</type> <type>y-shift</type>
<offset>-45</offset> <offset>8</offset>
</transformation>
<transformation>
<type>rotation</type>
<offset>180</offset>
</transformation> </transformation>
</transformations> </transformations>
</layer> </layer>
<layer>
<name>short needle</name>
<texture>
<path>Aircraft/Instruments/Textures/madr-misc1.rgb</path>
<x1>0.734375</x1>
<y1>0.59375</y1>
<x2>0.875</x2>
<y2>1.0</y2>
</texture>
<w>36</w>
<h>104</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/steam/altitude-ft</property>
<max>100000.0</max>
<scale>0.036</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>14</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>long needle</name>
<texture>
<path>Aircraft/Instruments/Textures/madr-misc1.rgb</path>
<x1>0.875</x1>
<y1>0.5</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture>
<w>32</w>
<h>128</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/steam/altitude-ft</property>
<max>100000.0</max>
<scale>0.36</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>18</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>foreground</name>
<texture>
<path>Aircraft/Instruments/Textures/alt1.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture>
</layer>
</layers> </layers>
<actions> <actions>
<action> <action>
<name>calibrate fine</name> <name>calibrate fine</name>
<button>0</button> <button>0</button>
<x>-56</x> <x>-103</x>
<y>-56</y> <y>-122</y>
<w>12</w> <w>22</w>
<h>24</h> <h>45</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/steam/altimeter-datum-mb</property> <property>/steam/altimeter-datum-mb</property>
<step>-0.333333</step> <step>-0.3386</step>
<min>500</min> <min>945</min>
<max>1100</max> <max>1090</max>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
<action> <action>
<name>calibrate coarse</name> <name>calibrate coarse</name>
<button>1</button> <button>1</button>
<x>-56</x> <x>-103</x>
<y>-56</y> <y>-122</y>
<w>12</w> <w>22</w>
<h>24</h> <h>45</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/steam/altimeter-datum-mb</property> <property>/steam/altimeter-datum-mb</property>
<step>-5</step> <step>-3.386</step>
<min>500</min> <min>945</min>
<max>1100</max> <max>1090</max>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
<action> <action>
<name>calibrate fine</name> <name>calibrate fine</name>
<button>0</button> <button>0</button>
<x>-46</x> <x>-81</x>
<y>-56</y> <y>-122</y>
<w>12</w> <w>22</w>
<h>24</h> <h>45</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/steam/altimeter-datum-mb</property> <property>/steam/altimeter-datum-mb</property>
<step>0.333333</step> <step>0.3386</step>
<min>500</min> <min>945</min>
<max>1100</max> <max>1090</max>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
<action> <action>
<name>calibrate coarse</name> <name>calibrate coarse</name>
<button>1</button> <button>1</button>
<x>-46</x> <x>-81</x>
<y>-56</y> <y>-122</y>
<w>12</w> <w>22</w>
<h>24</h> <h>45</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>/steam/altimeter-datum-mb</property> <property>/steam/altimeter-datum-mb</property>
<step>5</step> <step>3.386</step>
<min>500</min> <min>945</min>
<max>1100</max> <max>1090</max>
<wrap>false</wrap> <wrap>false</wrap>
</binding> </binding>
</action> </action>
</actions> </actions>
</PropertyList> </PropertyList>

View file

@ -31,95 +31,163 @@ properties' values.
<PropertyList> <PropertyList>
<name>C172RG Airspeed Indicator</name> <name>C172RG Airspeed Indicator</name>
<w-base>128</w-base> <w-base>256</w-base>
<h-base>128</h-base> <h-base>256</h-base>
<layers> <layers>
<layer> <layer>
<name>gauge face</name> <name>gauge face</name>
<texture> <texture> <!-- for alternate backgroun rewrite to airsp3.rgb -->
<path>Aircraft/Instruments/Textures/airspeed-160-knot.rgb</path> <path>Aircraft/Instruments/Textures/airsp2.rgb</path>
<x1>0.5</x1> <x1>0.0</x1>
<y1>0.5</y1> <y1>0.0</y1>
<x2>1.0</x2> <x2>1.0</x2>
<y2>1.0</y2> <y2>1.0</y2>
</texture> </texture>
<w>126</w> <!-- <w>126</w> -->
<h>126</h> <!-- <h>126</h> -->
</layer> </layer>
<!-- <!--
<layer> <layer>
<name>numbers under hub</name> <name>numbers under hub</name>
<texture> <texture>
<path>Aircraft/Instruments/Textures/airspeed-160-knot.rgb</path> <path>Aircraft/Instruments/Textures/airspeed-160-knot.rgb</path>
<x1>0.171875</x1> <x1>0.171875</x1>
<x2>0.328125</x2> <x2>0.328125</x2>
<y1>0.1640625</y1> <y1>0.1640625</y1>
<y2>0.3203125</y2> <y2>0.3203125</y2>
</texture> </texture>
<w>19</w> <w>19</w>
<h>19</h> <h>19</h>
</layer> </layer>
--> -->
<layer> <layer>
<name>needle</name> <name>needle</name>
<texture> <texture>
<path>Aircraft/Instruments/Textures/airspeed-160-knot.rgb</path> <path>Aircraft/Instruments/Textures/madr-misc1.rgb</path>
<x1>0.69921875</x1> <x1>0.0</x1>
<x2>0.84765625</x2> <y1>0.40625</y1>
<y1>0.15625</y1> <x2>0.40625</x2>
<y2>0.5</y2> <y2>1.0</y2>
</texture> </texture>
<w>19</w> <w>104</w>
<h>44</h> <h>152</h>
<transformations> <transformations>
<transformation>
<type>rotation</type>
<property>/steam/airspeed-kt</property>
<min>10.0</min>
<max>190.0</max>
<scale>1.0</scale>
<interpolation>
<entry><ind> 10</ind><dep> 3</dep></entry>
<entry><ind> 40</ind><dep> 38</dep></entry>
<entry><ind> 60</ind><dep> 85</dep></entry>
<entry><ind> 80</ind><dep> 146</dep></entry>
<entry><ind> 100</ind><dep> 198</dep></entry>
<entry><ind> 120</ind><dep> 236</dep></entry>
<entry><ind> 140</ind><dep> 274</dep></entry>
<entry><ind> 160</ind><dep> 313</dep></entry>
<entry><ind> 190</ind><dep> 353</dep></entry>
</interpolation>
</transformation>
<transformation> <transformation>
<type>y-shift</type> <type>rotation</type>
<offset>12</offset> <property>/steam/airspeed-kt</property>
<min>10.0</min>
<max>190.0</max>
<scale>1.0</scale>
<interpolation>
<entry><ind> 10</ind><dep> 3</dep></entry>
<entry><ind> 40</ind><dep> 38</dep></entry>
<entry><ind> 60</ind><dep> 85</dep></entry>
<entry><ind> 80</ind><dep> 146</dep></entry>
<entry><ind> 100</ind><dep> 198</dep></entry>
<entry><ind> 120</ind><dep> 236</dep></entry>
<entry><ind> 140</ind><dep> 274</dep></entry>
<entry><ind> 160</ind><dep> 313</dep></entry>
<entry><ind> 190</ind><dep> 353</dep></entry>
</interpolation>
</transformation>
<transformation>
<type>y-shift</type>
<offset>25</offset>
</transformation> </transformation>
</transformations> </transformations>
</layer> </layer>
<layer> <layer>
<name>glare shield</name> <name>foreground</name>
<texture> <texture>
<path>Aircraft/Instruments/Textures/bezel1.rgb</path> <path>Aircraft/Instruments/Textures/airsp1.rgb</path>
<x1>0.5</x1> <x1>0.0</x1>
<y1>0.0</y1> <y1>0.0</y1>
<x2>1.0</x2> <x2>1.0</x2>
<y2>0.5</y2> <y2>1.0</y2>
</texture>
</layer>
<layer>
<name>calibration</name>
<texture>
<path>Aircraft/Instruments/Textures/airsp4.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture> </texture>
<w>128</w>
<h>128</h>
<transformations> <transformations>
<transformation> <transformation>
<type>x-shift</type> <type>rotation</type>
<offset>2</offset> <property>/steam/airspeed-adjust</property>
<min>-360.0</min>
<max>360.0</max>
<scale>-1</scale>
</transformation> </transformation>
<transformation> </transformations>
<type>y-shift</type>
<offset>-2</offset>
</transformation>
</transformations>
</layer> </layer>
</layers> </layers>
<actions>
<action>
<name></name>
<type>adjust</type>
<button>0</button>
<x>-128</x>
<y>-128</y>
<w>128</w>
<h>256</h>
<property>/steam/airspeed-adjust</property>
<increment>0.5</increment>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</action>
<action>
<name></name>
<type>adjust</type>
<button>1</button>
<x>-128</x>
<y>-128</y>
<w>128</w>
<h>256</h>
<property>/steam/airspeed-adjust</property>
<increment>10</increment>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</action>
<action>
<name></name>
<type>adjust</type>
<button>0</button>
<x>0</x>
<y>-128</y>
<w>128</w>
<h>256</h>
<property>/steam/airspeed-adjust</property>
<increment>-0.5</increment>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</action>
<action>
<name></name>
<type>adjust</type>
<button>1</button>
<x>0</x>
<y>-128</y>
<w>128</w>
<h>256</h>
<property>/steam/airspeed-adjust</property>
<increment>-10</increment>
<min>0</min>
<max>360</max>
<wrap>true</wrap>
</action>
</actions>
</PropertyList> </PropertyList>

View file

@ -25,8 +25,8 @@ properties' values.
<PropertyList> <PropertyList>
<name>RPM Gauge</name> <name>RPM Gauge</name>
<w-base>128</w-base> <w-base>256</w-base>
<h-base>128</h-base> <h-base>256</h-base>
<params> <params>
<rpm-select>/engines/engine[0]/rpm</rpm-select> <rpm-select>/engines/engine[0]/rpm</rpm-select>
@ -42,19 +42,20 @@ properties' values.
<x2>0.49</x2> <x2>0.49</x2>
<y2>1.0</y2> <y2>1.0</y2>
</texture> </texture>
<w>104</w> <w>208</w>
<h>104</h> <h>208</h>
</layer> </layer>
<layer> <layer>
<texture> <name>needle</name>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path> <texture>
<x1>0.8</x1> <path>Aircraft/Instruments/Textures/madr-misc1.rgb</path>
<y1>0.78125</y1> <x1>0.875</x1>
<x2>0.8375</x2> <y1>0.5</y1>
<x2>1.0</x2>
<y2>1.0</y2> <y2>1.0</y2>
</texture> </texture>
<w>6</w> <w>32</w>
<h>48</h> <h>138</h>
<transformations> <transformations>
<transformation> <transformation>
<type>rotation</type> <type>rotation</type>
@ -77,8 +78,8 @@ properties' values.
<x2>0.7890625</x2> <x2>0.7890625</x2>
<y2>0.4140625</y2> <y2>0.4140625</y2>
</texture> </texture>
<w>14</w> <w>28</w>
<h>14</h> <h>28</h>
<transformations> <transformations>
<transformation> <transformation>
<type>rotation</type> <type>rotation</type>
@ -99,8 +100,8 @@ properties' values.
<x2>1.0</x2> <x2>1.0</x2>
<y2>0.5</y2> <y2>0.5</y2>
</texture> </texture>
<w>124</w> <w>248</w>
<h>124</h> <h>248</h>
<transformations> <transformations>
<transformation> <transformation>
<type>x-shift</type> <type>x-shift</type>

View file

@ -25,8 +25,8 @@ properties' values.
<PropertyList> <PropertyList>
<name>Vertical Speed Indicator</name> <name>Vertical Speed Indicator</name>
<w-base>128</w-base> <w-base>256</w-base>
<h-base>128</h-base> <h-base>256</h-base>
<layers> <layers>
<layer> <layer>
<name>background</name> <name>background</name>
@ -37,21 +37,21 @@ properties' values.
<x2>0.49</x2> <x2>0.49</x2>
<y2>0.49</y2> <y2>0.49</y2>
</texture> </texture>
<w>114</w> <w>228</w>
<h>114</h> <h>228</h>
</layer> </layer>
<!-- fix misc.rgb --> <!-- fix misc.rgb -->
<layer> <layer>
<name>needle</name> <name>needle</name>
<texture> <texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path> <path>Aircraft/Instruments/Textures/madr-misc1.rgb</path>
<x1>0.8</x1> <x1>0.875</x1>
<y1>0.78125</y1> <y1>0.5</y1>
<x2>0.8375</x2> <x2>1.0</x2>
<y2>1.0</y2> <y2>1.0</y2>
</texture> </texture>
<w>6</w> <w>32</w>
<h>48</h> <h>138</h>
<transformations> <transformations>
<transformation> <transformation>
<type>rotation</type> <type>rotation</type>
@ -63,7 +63,7 @@ properties' values.
</transformation> </transformation>
<transformation> <transformation>
<type>y-shift</type> <type>y-shift</type>
<offset>20.0</offset> <offset>18.0</offset>
</transformation> </transformation>
</transformations> </transformations>
</layer> </layer>
@ -76,8 +76,8 @@ properties' values.
<x2>0.7890625</x2> <x2>0.7890625</x2>
<y2>0.4140625</y2> <y2>0.4140625</y2>
</texture> </texture>
<w>15</w> <w>30</w>
<h>15</h> <h>30</h>
</layer> </layer>
<layer> <layer>
<name>glare shield</name> <name>glare shield</name>
@ -88,8 +88,8 @@ properties' values.
<x2>1.0</x2> <x2>1.0</x2>
<y2>0.5</y2> <y2>0.5</y2>
</texture> </texture>
<w>128</w> <w>256</w>
<h>128</h> <h>256</h>
<transformations> <transformations>
<transformation> <transformation>
<type>x-shift</type> <type>x-shift</type>
@ -100,6 +100,6 @@ properties' values.
<offset>-2</offset> <offset>-2</offset>
</transformation> </transformation>
</transformations> </transformations>
</layer> </layer>
</layers> </layers>
</PropertyList> </PropertyList>