Debian Codegraph @

Aircraft/Instruments/attitude-indicator.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4 Improved artificial horizon instrument.
5 Mar 20 2000
6 Martin Dressler [email protected]
7 Artificial horizont from C172RG small versionn
8 GPL
9 _______________________________________________________________________________
10
11 Based on Default by David Megginson, [email protected].
12
13 This is an instrument configuration file for the open-source flight
14 simulator FlightGear (www.flightgear.org). The file is an XML-encoded
15 FlightGear property list defining the instrument's layers and actions.
16
17 Each instrument is composed of layers stacked on top of each other.
18 A layer may be a texture (with transparent parts to show the layers
19 underneath), text, or a special layer that switches between two
20 others (say, to turn an indicator light on or off). Each layer can
21 move independently in proportion to a property value, and text
22 can be generated from property values as well: all of the layer's
23 movements are defined as transformations.
24
25 Actions are hotspots on the instrument that will respond to a mouse
26 click. Actions always modify the values of properties, either by
27 adjusting them, toggling them, or swaping them with other
28 properties' values.
29 -->
30
31 <PropertyList>
32
33 <name>C172RG-mini Artifical horizon</name>
34
35 <w-base>128</w-base>
36 <h-base>128</h-base>
37
38 <layers>
39 <layer>
40 <name>background</name>
41 <texture>
42 <path>Aircraft/Instruments/Textures/attitude-indicator.rgb</path>
43 <x1>0.0</x1>
44 <y1>0.0</y1>
45 <x2>0.5</x2>
46 <y2>0.5</y2>
47 </texture>
48 <transformations>
49 <transformation>
50 <type>rotation</type>
51 <property>/instrumentation/attitude-indicator/indicated-roll-deg</property>
52 <min>-360.0</min>
53 <max>360.0</max>
54 <scale>-1</scale>
55 </transformation>
56 </transformations>
57 </layer>
58 <layer>
59 <name>pitch</name>
60 <texture>
61 <path>Aircraft/Instruments/Textures/attitude-indicator.rgb</path>
62 <x1>0.5</x1>
63 <y1>0.0</y1>
64 <x2>0.875</x2>
65 <y2>0.25</y2>
66 </texture>
67 <w>92</w>
68 <h>62</h>
69 <transformations>
70 <transformation>
71 <type>rotation</type>
72 <property>/instrumentation/attitude-indicator/indicated-roll-deg</property>
73 <min>-360.0</min>
74 <max>360.0</max>
75 <scale>-1</scale>
76 </transformation>
77 <transformation>
78 <type>y-shift</type>
79 <property>/instrumentation/attitude-indicator/indicated-pitch-deg</property>
80 <min>-20.0</min>
81 <max>20.0</max>
82 <scale>-1.075</scale>
83 <offset>0</offset>
84 </transformation>
85 </transformations>
86 </layer>
87 <layer>
88 <name>roll</name>
89 <texture>
90 <path>Aircraft/Instruments/Textures/attitude-indicator.rgb</path>
91 <x1>0.5</x1>
92 <y1>0.5</y1>
93 <x2>1.0</x2>
94 <y2>1.0</y2>
95 </texture>
96 <transformations>
97 <transformation>
98 <type>rotation</type>
99 <property>/instrumentation/attitude-indicator/indicated-roll-deg</property>
100 <min>-360.0</min>
101 <max>360.0</max>
102 <scale>-1</scale>
103 </transformation>
104 </transformations>
105 </layer>
106 <layer>
107 <name>plane</name>
108 <texture>
109 <path>Aircraft/Instruments/Textures/attitude-indicator.rgb</path>
110 <x1>0.5</x1>
111 <y1>0.25</y1>
112 <x2>0.75</x2>
113 <y2>0.40625</y2>
114 </texture>
115 <h>42</h>
116 <w>66</w>
117 <transformations>
118 <transformation>
119 <type>y-shift</type>
120 <property>/instrumentation/attitude-indicator/horizon-offset-deg</property>
121 <offset>-17</offset>
122 </transformation>
123 </transformations>
124 </layer>
125 <layer>
126 <name>foreground</name>
127 <texture>
128 <path>Aircraft/Instruments/Textures/attitude-indicator.rgb</path>
129 <x1>0.0</x1>
130 <y1>0.5</y1>
131 <x2>0.5</x2>
132 <y2>1.0</y2>
133 </texture>
134 </layer>
135 </layers>
136
137 <actions>
138 <action>
139 <name>fine lower</name>
140 <button>0</button>
141 <x>-11</x>
142 <y>-62</y>
143 <w>11</w>
144 <h>22</h>
145 <binding>
146 <command>property-adjust</command>
147 <property>/instrumentation/attitude-indicator/horizon-offset-deg</property>
148 <step>-0.5</step>
149 <min>-5</min>
150 <max>5</max>
151 <wrap>false</wrap>
152 </binding>
153 </action>
154
155 <action>
156 <name>coarse lower</name>
157 <button>1</button>
158 <x>-11</x>
159 <y>-62</y>
160 <w>11</w>
161 <h>22</h>
162 <binding>
163 <command>property-adjust</command>
164 <property>/instrumentation/attitude-indicator/horizon-offset-deg</property>
165 <step>-5</step>
166 <min>-5</min>
167 <max>5</max>
168 <wrap>false</wrap>
169 </binding>
170 </action>
171
172 <action>
173 <name>fine raise</name>
174 <button>0</button>
175 <x>0</x>
176 <y>-62</y>
177 <w>11</w>
178 <h>22</h>
179 <binding>
180 <command>property-adjust</command>
181 <property>/instrumentation/attitude-indicator/horizon-offset-deg</property>
182 <step>0.5</step>
183 <min>-5</min>
184 <max>5</max>
185 <wrap>false</wrap>
186 </binding>
187 </action>
188
189 <action>
190 <name>coarse raise</name>
191 <button>1</button>
192 <x>0</x>
193 <y>-62</y>
194 <w>11</w>
195 <h>22</h>
196 <binding>
197 <command>property-adjust</command>
198 <property>/instrumentation/attitude-indicator/horizon-offset-deg</property>
199 <step>5</step>
200 <min>-5</min>
201 <max>5</max>
202 <wrap>false</wrap>
203 </binding>
204 </action>
205
206 </actions>
207
208 </PropertyList>