Debian Codegraph @

Aircraft/c172p/Systems/instruments.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <PropertyList>
4
5 <filter>
6 <name>CDI0 lowpass</name>
7 <debug>false</debug>
8 <type>exponential</type>
9 <filter-time>2.0</filter-time>
10 <input>instrumentation/nav[0]/heading-needle-deflection</input>
11 <output>instrumentation/nav[0]/filtered-cdiNAV0-deflection</output>
12 </filter>
13
14 <filter>
15 <name>CDI1 lowpass</name>
16 <debug>false</debug>
17 <type>exponential</type>
18 <filter-time>2.0</filter-time>
19 <input>instrumentation/nav[1]/heading-needle-deflection</input>
20 <output>instrumentation/nav[1]/filtered-cdiNAV1-deflection</output>
21 </filter>
22
23 <filter>
24 <name>GS0 lowpass</name>
25 <debug>false</debug>
26 <type>exponential</type>
27 <filter-time>2.0</filter-time>
28 <input>instrumentation/nav[0]/gs-needle-deflection-norm</input>
29 <output>instrumentation/nav[0]/filtered-gsNAV0-deflection</output>
30 </filter>
31
32 <filter>
33 <name>GS1 lowpass</name>
34 <debug>false</debug>
35 <type>exponential</type>
36 <filter-time>2.0</filter-time>
37 <input>instrumentation/nav[1]/gs-needle-deflection-norm</input>
38 <output>instrumentation/nav[1]/filtered-gsNAV1-deflection</output>
39 </filter>
40
41 <filter>
42 <name>EGT 160 HP lowpass</name>
43 <debug>false</debug>
44 <type>exponential</type>
45 <filter-time>4.0</filter-time>
46 <input>
47 <property>engines/engine[0]/egt-degf</property>
48 <!-- 1200 * scale + offset = 0.0
49 1700 * scale + offset = 1.0 -->
50 <scale>0.002</scale>
51 <offset>-2.4</offset>
52 </input>
53 <output>engines/engine[0]/egt-norm</output>
54 <min>0.0</min>
55 <max>1.0</max>
56 </filter>
57
58 <filter>
59 <name>EGT 180 HP lowpass</name>
60 <debug>false</debug>
61 <type>exponential</type>
62 <filter-time>4.0</filter-time>
63 <input>
64 <property>engines/engine[1]/egt-degf</property>
65 <!-- 1200 * scale + offset = 0.0
66 1700 * scale + offset = 1.0 -->
67 <scale>0.002</scale>
68 <offset>-2.4</offset>
69 </input>
70 <output>engines/engine[1]/egt-norm</output>
71 <min>0.0</min>
72 <max>1.0</max>
73 </filter>
74
75 <filter>
76 <name>Tank 0 Indicated Level</name>
77 <type>exponential</type>
78 <filter-time>3.0</filter-time>
79 <input>
80 <condition>
81 <and>
82 <greater-than>
83 <property>/systems/electrical/outputs/instr-ignition-switch</property>
84 <value>12.0</value>
85 </greater-than>
86 <property>/consumables/fuel/tank[0]/selected</property>
87 </and>
88 </condition>
89 <property>/consumables/fuel/tank[0]/level-gal_us</property>
90 </input>
91 <input>
92 <condition>
93 <and>
94 <greater-than>
95 <property>/systems/electrical/outputs/instr-ignition-switch</property>
96 <value>12.0</value>
97 </greater-than>
98 <property>/consumables/fuel/tank[2]/selected</property>
99 </and>
100 </condition>
101 <property>/consumables/fuel/tank[2]/level-gal_us</property>
102 </input>
103 <input>
104 <value>0.0</value>
105 </input>
106 <output>
107 <property>/consumables/fuel/tank[0]/indicated-level-gal_us</property>
108 </output>
109 </filter>
110
111 <filter>
112 <name>Tank 1 Indicated Level</name>
113 <type>exponential</type>
114 <filter-time>3.0</filter-time>
115 <input>
116 <condition>
117 <and>
118 <greater-than>
119 <property>/systems/electrical/outputs/instr-ignition-switch</property>
120 <value>12.0</value>
121 </greater-than>
122 <property>/consumables/fuel/tank[1]/selected</property>
123 </and>
124 </condition>
125 <property>/consumables/fuel/tank[1]/level-gal_us</property>
126 </input>
127 <input>
128 <condition>
129 <and>
130 <greater-than>
131 <property>/systems/electrical/outputs/instr-ignition-switch</property>
132 <value>12.0</value>
133 </greater-than>
134 <property>/consumables/fuel/tank[3]/selected</property>
135 </and>
136 </condition>
137 <property>/consumables/fuel/tank[3]/level-gal_us</property>
138 </input>
139 <input>
140 <value>0.0</value>
141 </input>
142 <output>
143 <property>/consumables/fuel/tank[1]/indicated-level-gal_us</property>
144 </output>
145 </filter>
146
147 <filter>
148 <name>Engine Indicated Oil Temperature</name>
149 <type>exponential</type>
150 <filter-time>3.0</filter-time>
151 <input>
152 <condition>
153 <greater-than>
154 <property>/systems/electrical/outputs/instr-ignition-switch</property>
155 <value>12.0</value>
156 </greater-than>
157 </condition>
158 <property>/engines/active-engine/oil-final-temperature-degf</property>
159 </input>
160 <input>
161 <value>0.0</value>
162 </input>
163 <output>
164 <property>/engines/active-engine/indicated-oil-final-temperature-degf</property>
165 </output>
166 </filter>
167
168 <filter>
169 <name>Engine Indicated Oil Pressure</name>
170 <type>exponential</type>
171 <filter-time>3.0</filter-time>
172 <input>
173 <condition>
174 <greater-than>
175 <property>/systems/electrical/outputs/instr-ignition-switch</property>
176 <value>12.0</value>
177 </greater-than>
178 </condition>
179 <property>/engines/active-engine/oil-pressure-psi</property>
180 </input>
181 <input>
182 <value>0.0</value>
183 </input>
184 <output>
185 <property>/engines/active-engine/indicated-oil-pressure-psi</property>
186 </output>
187 </filter>
188
189 <logic>
190 <name>Comm 0 Serviceable</name>
191 <input>
192 <greater-than>
193 <property>systems/electrical/outputs/comm[0]</property>
194 <value>6.0</value>
195 </greater-than>
196 </input>
197 <output>
198 <property>instrumentation/comm[0]/serviceable</property>
199 </output>
200 </logic>
201
202 <logic>
203 <name>Comm 0 On/Off</name>
204 <input>
205 <and>
206 <property>instrumentation/comm[0]/serviceable</property>
207 <property>instrumentation/comm[0]/power-btn</property>
208 </and>
209 </input>
210 <output>
211 <property>/sim/model/c172p/lighting/comm0-power</property>
212 </output>
213 </logic>
214
215 <filter>
216 <name>Comm 0 Dim/Bright</name>
217 <type>gain</type>
218 <input>
219 <condition>
220 <property>/sim/model/c172p/lighting/comm0-power</property>
221 </condition>
222 <property>/controls/lighting/radio-norm</property>
223 </input>
224 <input>
225 <value>0.0</value>
226 </input>
227 <output>
228 <property>/sim/model/c172p/lighting/comm0</property>
229 </output>
230 </filter>
231
232 <logic>
233 <name>Comm 1 Serviceable</name>
234 <input>
235 <greater-than>
236 <property>systems/electrical/outputs/comm[1]</property>
237 <value>6.0</value>
238 </greater-than>
239 </input>
240 <output>
241 <property>instrumentation/comm[1]/serviceable</property>
242 </output>
243 </logic>
244
245 <logic>
246 <name>Comm 1 On/Off</name>
247 <input>
248 <and>
249 <property>instrumentation/comm[1]/serviceable</property>
250 <property>instrumentation/comm[1]/power-btn</property>
251 </and>
252 </input>
253 <output>
254 <property>/sim/model/c172p/lighting/comm1-power</property>
255 </output>
256 </logic>
257
258 <filter>
259 <name>Comm 1 Dim/Bright</name>
260 <type>gain</type>
261 <input>
262 <condition>
263 <property>/sim/model/c172p/lighting/comm1-power</property>
264 </condition>
265 <property>/controls/lighting/radio-norm</property>
266 </input>
267 <input>
268 <value>0.0</value>
269 </input>
270 <output>
271 <property>/sim/model/c172p/lighting/comm1</property>
272 </output>
273 </filter>
274
275 <filter>
276 <name>ADF Dim/Bright</name>
277 <type>gain</type>
278 <input>
279 <condition>
280 <property>/instrumentation/adf[0]/operable</property>
281 </condition>
282 <property>/controls/lighting/radio-norm</property>
283 </input>
284 <input>
285 <value>0.0</value>
286 </input>
287 <output>
288 <property>/sim/model/c172p/lighting/adf</property>
289 </output>
290 </filter>
291
292 <filter>
293 <name>ADF-fg1000 Dim/Bright</name>
294 <type>gain</type>
295 <input>
296 <condition>
297 <property>/instrumentation/adf[0]/operable</property>
298 </condition>
299 <property>/controls/lighting/stby</property>
300 </input>
301 <input>
302 <value>0.0</value>
303 </input>
304 <output>
305 <property>/sim/model/c172p/lighting/adf-fg1000</property>
306 </output>
307 </filter>
308
309 <logic>
310 <name>DME Serviceable</name>
311 <input>
312 <greater-than>
313 <property>systems/electrical/outputs/dme</property>
314 <value>6.0</value>
315 </greater-than>
316 </input>
317 <output>
318 <property>instrumentation/dme[0]/serviceable</property>
319 </output>
320 </logic>
321
322 <logic>
323 <name>DME On/Off</name>
324 <input>
325 <and>
326 <property>instrumentation/dme[0]/serviceable</property>
327 <property>instrumentation/dme[0]/power-btn</property>
328 </and>
329 </input>
330 <output>
331 <property>/sim/model/c172p/lighting/dme-power</property>
332 </output>
333 </logic>
334
335 <filter>
336 <name>DME Dim/Bright</name>
337 <type>gain</type>
338 <input>
339 <condition>
340 <property>/sim/model/c172p/lighting/dme-power</property>
341 </condition>
342 <property>/controls/lighting/radio-norm</property>
343 </input>
344 <input>
345 <value>0.0</value>
346 </input>
347 <output>
348 <property>/sim/model/c172p/lighting/dme</property>
349 </output>
350 </filter>
351
352 <logic>
353 <name>AP On/Off</name>
354 <input>
355 <and>
356 <greater-than>
357 <property>systems/electrical/outputs/autopilot</property>
358 <value>6.0</value>
359 </greater-than>
360 </and>
361 </input>
362 <output>
363 <property>/sim/model/c172p/lighting/ap-power</property>
364 </output>
365 </logic>
366
367 <filter>
368 <name>AP Dim/Bright</name>
369 <type>gain</type>
370 <input>
371 <condition>
372 <property>/sim/model/c172p/lighting/ap-power</property>
373 </condition>
374 <property>/controls/lighting/radio-norm</property>
375 </input>
376 <input>
377 <value>0.0</value>
378 </input>
379 <output>
380 <property>/sim/model/c172p/lighting/ap</property>
381 </output>
382 </filter>
383
384 <filter>
385 <name>AP Dim/Bright FG-1000</name>
386 <type>gain</type>
387 <input>
388 <condition>
389 <property>/sim/model/c172p/lighting/ap-power</property>
390 </condition>
391 <property>/controls/lighting/stby</property>
392 </input>
393 <input>
394 <value>0.0</value>
395 </input>
396 <output>
397 <property>/sim/model/c172p/lighting/ap-fg1000</property>
398 </output>
399 </filter>
400
401 <logic>
402 <name>Transponder Serviceable</name>
403 <input>
404 <greater-than>
405 <property>systems/electrical/outputs/transponder</property>
406 <value>6.0</value>
407 </greater-than>
408 </input>
409 <output>
410 <property>instrumentation/transponder/serviceable</property>
411 </output>
412 </logic>
413
414 <logic>
415 <name>Transponder On/Off</name>
416 <input>
417 <and>
418 <property>instrumentation/transponder/serviceable</property>
419 <property>instrumentation/transponder/inputs/knob-mode</property>
420 </and>
421 </input>
422 <output>
423 <property>/sim/model/c172p/lighting/transponder-power</property>
424 </output>
425 </logic>
426
427 <filter>
428 <name>Transponder Dim/Bright</name>
429 <type>gain</type>
430 <input>
431 <condition>
432 <property>/sim/model/c172p/lighting/transponder-power</property>
433 </condition>
434 <property>/controls/lighting/radio-norm</property>
435 </input>
436 <input>
437 <value>0.0</value>
438 </input>
439 <output>
440 <property>/sim/model/c172p/lighting/trans</property>
441 </output>
442 </filter>
443
444 <filter>
445 <name>Clock: UTF to local time conversion</name>
446 <type>gain</type>
447 <input>
448 <property>sim/time/utc/day-seconds</property>
449 <offset>
450 <property>sim/time/local-offset</property>
451 </offset>
452 </input>
453 <output>
454 <property>/sim/model/c172p/local-time-seconds</property>
455 </output>
456 </filter>
457
458 <logic>
459 <name>Turn Indicator Serviceable</name>
460 <input>
461 <greater-than>
462 <property>systems/electrical/outputs/turn-coordinator</property>
463 <value>6.0</value>
464 </greater-than>
465 </input>
466 <output>
467 <property>instrumentation/turn-coordinator/serviceable</property>
468 </output>
469 </logic>
470
471 <filter>
472 <name>GPS Night Mode</name>
473 <type>gain</type>
474 <input>
475 <condition>
476 <property>/instrumentation/garmin196/status</property>
477 </condition>
478 <property>/controls/lighting/gps-norm</property>
479 </input>
480 <input>
481 <value>0.0</value>
482 </input>
483 <output>
484 <property>/instrumentation/garmin196/lite</property>
485 </output>
486 </filter>
487
488 <filter>
489 <name>Instruments Lighting Integral</name>
490 <type>gain</type>
491 <input>
492 <condition>
493 <and>
494 <less-than>
495 <property>/systems/electrical/outputs/instrument-lights</property>
496 <value>31.5</value>
497 </less-than>
498 <greater-than>
499 <property>/systems/electrical/outputs/instrument-lights</property>
500 <value>20.0</value>
501 </greater-than>
502 </and>
503 </condition>
504 <property>/controls/lighting/radio-norm</property>
505 </input>
506 <input>
507 <value>0.0</value>
508 </input>
509 <output>
510 <property>/sim/model/material/instruments/integral-factor</property>
511 </output>
512 </filter>
513
514 <filter>
515 <name>Instruments Lighting Post</name>
516 <type>gain</type>
517 <input>
518 <condition>
519 <and>
520 <less-than>
521 <property>/systems/electrical/outputs/instrument-lights</property>
522 <value>31.5</value>
523 </less-than>
524 <greater-than>
525 <property>/systems/electrical/outputs/instrument-lights</property>
526 <value>20.0</value>
527 </greater-than>
528 <less-than>
529 <property>/controls/switches/dome-red</property>
530 <value>2</value>
531 </less-than>
532 </and>
533 </condition>
534 <property>/controls/lighting/instruments-norm</property>
535 </input>
536 <input>
537 <value>0.0</value>
538 </input>
539 <output>
540 <property>/sim/model/material/instruments/factor</property>
541 </output>
542 </filter>
543
544 <filter>
545 <name>Light Map Panel Factor</name>
546 <type>gain</type>
547 <gain>1.0</gain>
548 <input>
549 <condition>
550 <greater-than>
551 <property>/sim/model/material/instruments/factor</property>
552 <value>0.0</value>
553 </greater-than>
554 </condition>
555 <expression>
556 <product>
557 <property>/sim/model/material/instruments/factor</property>
558 <table>
559 <property>/rendering/scene/diffuse/red</property>
560 <entry><ind>0.0</ind><dep>1.0</dep></entry>
561 <entry><ind>1.0</ind><dep>0.75</dep></entry>
562 </table>
563 </product>
564 </expression>
565 </input>
566 <output>
567 <property>/sim/model/lightmap/panel/factor</property>
568 </output>
569 </filter>
570
571 <filter>
572 <name>Light Map Instruments Factor</name>
573 <type>gain</type>
574 <gain>0.9</gain>
575 <input>
576 <condition>
577 <greater-than>
578 <property>/sim/model/material/instruments/factor</property>
579 <value>0.0</value>
580 </greater-than>
581 </condition>
582 <expression>
583 <product>
584 <property>/sim/model/material/instruments/factor</property>
585 <table>
586 <property>/rendering/scene/diffuse/red</property>
587 <entry><ind>0.0</ind><dep>1.0</dep></entry>
588 <entry><ind>1.0</ind><dep>0.75</dep></entry>
589 </table>
590 </product>
591 </expression>
592 </input>
593 <output>
594 <property>/sim/model/lightmap/instruments/factor</property>
595 </output>
596 </filter>
597
598
599 <!-- Magnetic compass -->
600 <filter>
601 <name>Magnetic compass electrical influence</name>
602 <type>gain</type>
603 <input>
604 <expression>
605 <div>
606 <sum>
607 <!-- using the value in the product we can weight the current and distance of the influence -->
608 <product><value>10</value><property>/instrumentation/audio-panel/operable</property></product> <!-- todo: define a nasal switch for that in nasal code -->
609 <product><value>10</value><property>/instrumentation/dme/operable</property></product>
610 <product><value>25</value><property>/instrumentation/comm[0]/operable/</property></product>
611 <product><value>10</value><property>/instrumentation/nav[0]/operable/</property></product>
612 <product><value>25</value><property>/instrumentation/comm[1]/operable</property></product>
613 <product><value>10</value><property>/instrumentation/nav[1]/operable/</property></product>
614 <product><value>10</value><property>/instrumentation/adf/operable</property></product>
615 </sum>
616 <value>100</value> <!-- total of weighting -->
617 </div>
618 </expression>
619 </input>
620 <output>
621 <property>/instrumentation/magnetic-compass/electrical-influence-norm</property>
622 </output>
623 </filter>
624 <filter>
625 <name>Magnetic compass deviation</name>
626 <!-- To debug this, set /orientation/heading-deg to the desired value + declination (so heading-magnetic-deg shows the desired target value).
627 The compass should then read the corrected value from the table below (and the corresponding card in the cockpit).
628 -->
629 <type>gain</type>
630 <input>
631 <expression>
632 <sum>
633 <!-- With avionics ON -->
634 <product>
635 <table>
636 <property>/orientation/heading-magnetic-deg</property>
637 <entry><ind> 0 </ind><dep> 0 </dep></entry>
638 <entry><ind> 30 </ind><dep> -2 </dep></entry>
639 <entry><ind> 60 </ind><dep> -3 </dep></entry>
640 <entry><ind> 90 </ind><dep> -4 </dep></entry>
641 <entry><ind> 120 </ind><dep> -3 </dep></entry>
642 <entry><ind> 150 </ind><dep> -2 </dep></entry>
643 <entry><ind> 180 </ind><dep> 0 </dep></entry>
644 <entry><ind> 210 </ind><dep> 2 </dep></entry>
645 <entry><ind> 240 </ind><dep> 3 </dep></entry>
646 <entry><ind> 270 </ind><dep> 4 </dep></entry>
647 <entry><ind> 300 </ind><dep> 3 </dep></entry>
648 <entry><ind> 330 </ind><dep> 2 </dep></entry>
649 <entry><ind> 360 </ind><dep> 0 </dep></entry> <!-- same as 0! -->
650 </table>
651 <property>/instrumentation/magnetic-compass/electrical-influence-norm</property>
652 </product>
653
654 <!-- With avionics OFF -->
655 <product>
656 <table>
657 <property>/orientation/heading-magnetic-deg</property>
658 <entry><ind> 0 </ind><dep> -1 </dep></entry>
659 <entry><ind> 30 </ind><dep> -3 </dep></entry>
660 <entry><ind> 60 </ind><dep> -5 </dep></entry>
661 <entry><ind> 90 </ind><dep> -7 </dep></entry>
662 <entry><ind> 120 </ind><dep> -5 </dep></entry>
663 <entry><ind> 150 </ind><dep> -3 </dep></entry>
664 <entry><ind> 180 </ind><dep> -1 </dep></entry>
665 <entry><ind> 210 </ind><dep> 3 </dep></entry>
666 <entry><ind> 240 </ind><dep> 5 </dep></entry>
667 <entry><ind> 270 </ind><dep> 7 </dep></entry>
668 <entry><ind> 300 </ind><dep> 5 </dep></entry>
669 <entry><ind> 330 </ind><dep> 3 </dep></entry>
670 <entry><ind> 360 </ind><dep> -1 </dep></entry> <!-- same as 0! -->
671 </table>
672 <difference>
673 <value>1</value>
674 <property>/instrumentation/magnetic-compass/electrical-influence-norm</property>
675 </difference>
676 </product>
677 </sum>
678 </expression>
679 </input>
680 <output>
681 <property>/instrumentation/magnetic-compass/deviation-deg</property>
682 </output>
683 </filter>
684 <filter>
685 <name>Magnetic compass pivot mounting</name>
686 <type>exponential</type>
687 <filter-time>5.0</filter-time>
688 <input>
689 <expression>
690 <product>
691 <property>/orientation/pitch-deg</property>
692 <value>-1</value>
693 </product>
694 </expression>
695 </input>
696 <output>
697 <property>/instrumentation/magnetic-compass/pitch-offset-deg</property>
698 </output>
699 <min> <property>instrumentation/magnetic-compass/pitch-limit-down</property> </min>
700 <max> <property>instrumentation/magnetic-compass/pitch-limit-up</property> </max>
701 </filter>
702 <filter>
703 <name>Magnetic compass stuck</name>
704 <type>gain</type>
705 <input>
706 <condition>
707 <!-- not stuck: look at current animation props -->
708 <and>
709 <not><property>instrumentation/magnetic-compass/stuck</property></not>
710 <or>
711 <less-than>
712 <property>/instrumentation/magnetic-compass/pitch-deg</property>
713 <property>instrumentation/magnetic-compass/pitch-limit-down</property>
714 </less-than>
715 <greater-than>
716 <property>/instrumentation/magnetic-compass/pitch-deg</property>
717 <property>instrumentation/magnetic-compass/pitch-limit-up</property>
718 </greater-than>
719 <less-than>
720 <property>/instrumentation/magnetic-compass/roll-deg</property>
721 <property>instrumentation/magnetic-compass/roll-limit-left</property>
722 </less-than>
723 <greater-than>
724 <property>/instrumentation/magnetic-compass/roll-deg</property>
725 <property>instrumentation/magnetic-compass/roll-limit-right</property>
726 </greater-than>
727 </or>
728 </and>
729 </condition>
730 <value>1</value>
731 </input>
732 <input>
733 <condition>
734 <!-- stuck: look if normal props are not above limits anymore -->
735 <and>
736 <property>instrumentation/magnetic-compass/stuck</property>
737 <or>
738 <less-than>
739 <property>/instrumentation/magnetic-compass/pitch-deg</property>
740 <property>instrumentation/magnetic-compass/pitch-limit-down</property>
741 </less-than>
742 <greater-than>
743 <property>/instrumentation/magnetic-compass/pitch-deg</property>
744 <property>instrumentation/magnetic-compass/pitch-limit-up</property>
745 </greater-than>
746 <less-than>
747 <property>/instrumentation/magnetic-compass/roll-deg</property>
748 <property>instrumentation/magnetic-compass/roll-limit-left</property>
749 </less-than>
750 <greater-than>
751 <property>/instrumentation/magnetic-compass/roll-deg</property>
752 <property>instrumentation/magnetic-compass/roll-limit-right</property>
753 </greater-than>
754 </or>
755 </and>
756 </condition>
757 <value>1</value>
758 </input>
759 <input>
760 <value>0</value>
761 </input>
762 <output>
763 <property>instrumentation/magnetic-compass/stuck</property>
764 </output>
765 </filter>
766 <filter>
767 <name>Magnetic compass rotation reponsiveness</name>
768 <type>exponential</type>
769 <filter-time>2.0</filter-time>
770 <input>
771 <condition>
772 <property>instrumentation/magnetic-compass/stuck</property>
773 </condition>
774 <value>2</value> <!-- slow to respond after getting stuck for a longer time -->
775 </input>
776 <input>
777 <value>0.0001</value> <!-- just hand trough the original value -->
778 </input>
779 <output>
780 <property>instrumentation/magnetic-compass/rotation-responsiveness</property>
781 </output>
782 </filter>
783 <filter>
784 <name>Magnetic compass rotation</name>
785 <type>exponential</type>
786 <filter-time><property>instrumentation/magnetic-compass/rotation-responsiveness</property></filter-time>
787 <input>
788 <condition>
789 <property>instrumentation/magnetic-compass/stuck</property>
790 </condition>
791 <property>instrumentation/magnetic-compass/indicated-heading-deg-final</property>
792 </input>
793 <input>
794 <property>instrumentation/magnetic-compass/indicated-heading-deg</property>
795 </input>
796 <output>
797 <property>instrumentation/magnetic-compass/indicated-heading-deg-final</property>
798 </output>
799 </filter>
800
801 <!-- VSI damper -->
802 <!-- To dampen the needle a bit more, especially at very tiny changes (like parking) -->
803 <!-- By observation, it fluctuates around -20/+20 in a seemingly random manner. -->
804 <logic>
805 <input>
806 <or>
807 <property>instrumentation/vertical-speed-indicator/damper-initialized</property>
808
809 <!-- in-air start -->
810 <greater-than>
811 <property>/position/altitude-agl-m</property>
812 <value>5</value>
813 </greater-than>
814
815
816 <and>
817 <!-- On ground: Wait for VSI to settle -->
818 <greater-than>
819 <property>/sim/time/elapsed-sec</property>
820 <value>5</value>
821 </greater-than>
822 <greater-than>
823 <property>instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
824 <value>-100</value>
825 </greater-than>
826 <less-than>
827 <property>instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
828 <value>100</value>
829 </less-than>
830 </and>
831 </or>
832 </input>
833 <output>
834 <property>instrumentation/vertical-speed-indicator/damper-initialized</property>
835 </output>
836 </logic>
837
838 <filter>
839 <name>VSI damper</name>
840 <type>exponential</type>
841 <initialize-to>0.0</initialize-to>
842
843 <filter-time>
844 <condition>
845 <!-- when on the ground and not moving, then dampen alot, but not at sim start -->
846 <and>
847 <property>instrumentation/vertical-speed-indicator/damper-initialized</property>
848 <less-than>
849 <property>/position/altitude-agl-m</property>
850 <value>3</value>
851 </less-than>
852 <less-than>
853 <property>/velocities/groundspeed-kt</property>
854 <value>5</value>
855 </less-than>
856 </and>
857 </condition>
858 <value> 2.0 </value>
859 </filter-time>
860 <filter-time>
861 <!-- normal/all other conditions -->
862 <value>0.1</value>
863 </filter-time>
864
865 <input>
866 <!-- On sim start, stay at 0 fpm. For some reason the VSI initializes with very high off-values. -->
867 <condition>
868 <not><property>instrumentation/vertical-speed-indicator/damper-initialized</property></not>
869 </condition>
870 <value> 0 </value>
871 </input>
872 <input>
873 <property>instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
874 </input>
875
876 <output>
877 <property>instrumentation/vertical-speed-indicator/indicated-speed-fpm-final</property>
878 </output>
879 </filter>
880 </PropertyList>