Phi: nicer scroll animation for METAR widget
[fg:fgdata.git] / Huds / Sets / gps.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5         <!-- GPS waypoint -->
6         
7         <label>
8                 <width>2</width>
9                 <height>2</height>
10                 <format>GPS OBS:%5s</format>
11                 <halign>left</halign>
12                 <input>
13                         <property>/instrumentation/gps/wp/wp[1]/ID</property>
14                 </input>
15
16         <condition>
17             <equals>
18                 <property>/instrumentation/gps/mode</property>
19                 <value>obs</value>
20             </equals>
21         </condition>
22         </label>
23         
24         <label>
25                 <width>2</width>
26                 <height>2</height>
27                 <x>80</x>
28                 <format>(TO)</format>
29                 <halign>left</halign>
30
31         <condition>
32             <and>
33                 <equals>
34                     <property>/instrumentation/gps/mode</property>
35                     <value>obs</value>
36                 </equals>
37                 <not><property>/instrumentation/gps/from-flag</property></not>
38             </and>
39         </condition>
40         </label>
41         
42         <label>
43                 <width>2</width>
44                 <height>2</height>
45                 <x>80</x>
46                 <format>(FROM)</format>
47                 <halign>left</halign>
48
49         <condition>
50             <and>
51                 <equals>
52                     <property>/instrumentation/gps/mode</property>
53                     <value>obs</value>
54                 </equals>
55                 <property>/instrumentation/gps/from-flag</property>
56             </and>
57         </condition>
58         </label>
59         
60         <label>
61                 <width>2</width>
62                 <height>2</height>
63                 <format>GPS DTO:%5s</format>
64                 <halign>left</halign>
65                 <input>
66                         <property>/instrumentation/gps/wp/wp[1]/ID</property>
67                 </input>
68
69         <condition>
70             <property>/instrumentation/gps/wp/wp[1]/valid</property>
71             <equals>
72                 <property>/instrumentation/gps/mode</property>
73                 <value>dto</value>
74             </equals>
75         </condition>
76         </label>
77         
78         <label>
79                 <width>2</width>
80                 <height>2</height>
81                 <format>GPS LEG:%5s</format>
82                 <halign>left</halign>
83                 <input>
84                         <property>/instrumentation/gps/wp/wp[0]/ID</property>
85                 </input>
86
87         <condition>
88             <property>/instrumentation/gps/wp/wp[1]/valid</property>
89             <equals>
90                 <property>/instrumentation/gps/mode</property>
91                 <value>leg</value>
92             </equals>
93         </condition>
94
95         </label>
96         
97         <label>
98                 <width>2</width>
99                 <height>2</height>
100                 <x>80</x>
101                 <format>-&gt;%5s</format>
102                 <halign>left</halign>
103                 <input>
104                         <property>/instrumentation/gps/wp/wp[1]/ID</property>
105                 </input>
106
107         <condition>
108             <property>/instrumentation/gps/wp/wp[1]/valid</property>
109             <equals>
110                 <property>/instrumentation/gps/mode</property>
111                 <value>leg</value>
112             </equals>
113         </condition>
114
115         </label>
116         
117         
118         
119         <label>
120                 <width>2</width>
121                 <height>2</height>
122                 <y>-10</y>
123                 <format>D: %4.1fnm</format>
124                 <halign>left</halign>
125                 <input>
126                         <property>/instrumentation/gps/wp/wp[1]/distance-nm</property>
127                 </input>
128         <condition>
129             <property>/instrumentation/gps/wp/wp[1]/valid</property>
130         </condition>
131         </label>
132         
133         <label>
134                 <width>2</width>
135                 <height>2</height>
136                 <x>60</x>
137                 <y>-10</y>
138                 <format>TTW:%s</format>
139                 <halign>left</halign>
140                 <input>
141                         <property>/instrumentation/gps/wp/wp[1]/TTW</property>
142                 </input>
143         <condition>
144             <property>/instrumentation/gps/wp/wp[1]/valid</property>
145         </condition>
146         </label>
147         
148         <label>
149                 <width>2</width>
150                 <height>2</height>
151                 <y>-20</y>
152                 <format>BRG:%03d</format>
153                 <halign>left</halign>
154                 <input>
155                         <property>/instrumentation/gps/wp/wp[1]/bearing-mag-deg</property>
156                 </input>
157         <condition>
158             <property>/instrumentation/gps/wp/wp[1]/valid</property>
159         </condition>
160         </label>
161         
162         <label>
163                 <width>2</width>
164                 <height>2</height>
165                 <y>-20</y>
166                 <x>60</x>
167                 <format>XTK: %2.1fnm</format>
168                 <halign>left</halign>
169                 <input>
170                         <property>/instrumentation/gps/wp/wp[1]/course-error-nm</property>
171                 </input>
172                 
173                 <condition>
174             <property>/instrumentation/gps/wp/wp[1]/valid</property>
175                 <greater-than>
176                     <expression>
177                         <abs><property>/instrumentation/gps/wp/wp[1]/course-error-nm</property></abs>
178                     </expression>
179                     <value>0.1</value>
180                 </greater-than>
181         </condition>
182         </label>
183         
184     <label>
185                 <width>2</width>
186                 <height>2</height>
187                 <y>-30</y>
188                 <format>GS:%3dkts</format>
189                 <halign>left</halign>
190                 <input>
191                         <property>/instrumentation/gps/indicated-ground-speed-kt</property>
192                 </input>
193         </label>
194 </PropertyList>
195