Debian Codegraph @

Aircraft/c172p/Systems/ground-effects.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- (c) 2015, wlbragg. http://forum.flightgear.org/viewtopic.php?f=4&t=25157&start=75#p232085
4 Under the GPL. Used by shadows under ALS -->
5
6 <PropertyList>
7
8 <filter>
9 <type>gain</type>
10 <gain>0.3048</gain>
11 <input>
12 <property>/position/altitude-agl-ft</property>
13 </input>
14 <output>
15 <property>/position/altitude-agl-m</property>
16 </output>
17 </filter>
18
19 <!-- These filters are used to passthrough a value in non-replay mode.
20 In replay mode, the value from the flight recorder is used.
21 This filter is needed because JSBSim wins over the flight recorder.
22 -->
23 <filter>
24 <name>Ski ATan</name>
25 <type>gain</type>
26 <enable>
27 <condition>
28 <not>
29 <property>/sim/freeze/replay-state</property>
30 </not>
31 </condition>
32 </enable>
33 <input>
34 <property>/fdm/jsbsim/ski/atan</property>
35 </input>
36 <output>
37 <property>/fdm/jsbsim/ski/atan-actual</property>
38 </output>
39 </filter>
40
41 <filter>
42 <name>Stall Horn Volume</name>
43 <type>gain</type>
44 <enable>
45 <condition>
46 <not>
47 <property>/sim/freeze/replay-state</property>
48 </not>
49 </condition>
50 </enable>
51 <input>
52 <property>/fdm/jsbsim/sounds/stall-horn-volume</property>
53 </input>
54 <output>
55 <property>/fdm/jsbsim/sounds/stall-horn-volume-actual</property>
56 </output>
57 </filter>
58
59 <filter>
60 <name>Stall Horn Pitch</name>
61 <type>gain</type>
62 <enable>
63 <condition>
64 <not>
65 <property>/sim/freeze/replay-state</property>
66 </not>
67 </condition>
68 </enable>
69 <input>
70 <property>/fdm/jsbsim/sounds/stall-horn-pitch</property>
71 </input>
72 <output>
73 <property>/fdm/jsbsim/sounds/stall-horn-pitch-actual</property>
74 </output>
75 </filter>
76
77 <filter>
78 <name>Water Rudder Position</name>
79 <type>gain</type>
80 <enable>
81 <condition>
82 <not>
83 <property>/sim/freeze/replay-state</property>
84 </not>
85 </condition>
86 </enable>
87 <input>
88 <property>/controls/gear/water-rudder-down</property>
89 </input>
90 <output>
91 <property>/controls/gear/water-rudder-down-actual</property>
92 </output>
93 </filter>
94
95 <filter>
96 <name>Controls Carb Heat Lever</name>
97 <type>noise-spike</type>
98 <max-rate-of-change>4.8</max-rate-of-change>
99 <enable>
100 <condition>
101 <not>
102 <property>/sim/freeze/replay-state</property>
103 </not>
104 </condition>
105 </enable>
106 <input>
107 <property>/controls/engines/current-engine/carb-heat</property>
108 </input>
109 <output>
110 <property>/sim/model/c172p/cockpit/carb-heat-animation</property>
111 </output>
112 </filter>
113
114 <filter>
115 <name>Controls Primer Lever</name>
116 <type>noise-spike</type>
117 <max-rate-of-change>1.1</max-rate-of-change>
118 <enable>
119 <condition>
120 <not>
121 <property>/sim/freeze/replay-state</property>
122 </not>
123 </condition>
124 </enable>
125 <input>
126 <property>/controls/engines/engine/primer-lever</property>
127 </input>
128 <output>
129 <property>/sim/model/c172p/cockpit/primer-lever-animation</property>
130 </output>
131 </filter>
132
133 <filter>
134 <name>Water Rudder Animation</name>
135 <type>noise-spike</type>
136 <max-rate-of-change>3.5</max-rate-of-change>
137 <enable>
138 <condition>
139 <not>
140 <property>/sim/freeze/replay-state</property>
141 </not>
142 </condition>
143 </enable>
144 <input>
145 <property>/controls/gear/water-rudder</property>
146 </input>
147 <output>
148 <property>/sim/model/c172p/cockpit/water-rudder-animation</property>
149 </output>
150 </filter>
151
152 <!-- ================================================================== -->
153 <!-- Ground and water effects -->
154 <!-- ================================================================== -->
155
156 <filter>
157 <name>Spray and Wakes Effect for Pontoons</name>
158 <type>gain</type>
159 <enable>
160 <condition>
161 <not>
162 <property>/sim/freeze/replay-state</property>
163 </not>
164 </condition>
165 </enable>
166 <input>
167 <property>/fdm/jsbsim/hydro/spray-wake-speed-kt</property>
168 </input>
169 <output>
170 <property>/fdm/jsbsim/hydro/spray-wake-speed-kt-actual</property>
171 </output>
172 </filter>
173
174 <filter>
175 <name>Left Ground Effect for Pontoons</name>
176 <type>gain</type>
177 <enable>
178 <condition>
179 <not>
180 <property>/sim/freeze/replay-state</property>
181 </not>
182 </condition>
183 </enable>
184 <input>
185 <property>/fdm/jsbsim/hydro/left-ground-effect-speed-kt</property>
186 </input>
187 <output>
188 <property>/fdm/jsbsim/hydro/left-ground-effect-speed-kt-actual</property>
189 </output>
190 </filter>
191
192 <filter>
193 <name>Right Ground Effect for Pontoons</name>
194 <type>gain</type>
195 <enable>
196 <condition>
197 <not>
198 <property>/sim/freeze/replay-state</property>
199 </not>
200 </condition>
201 </enable>
202 <input>
203 <property>/fdm/jsbsim/hydro/right-ground-effect-speed-kt</property>
204 </input>
205 <output>
206 <property>/fdm/jsbsim/hydro/right-ground-effect-speed-kt-actual</property>
207 </output>
208 </filter>
209
210 <filter>
211 <name>Tail Ground Effect</name>
212 <type>gain</type>
213 <enable>
214 <condition>
215 <not>
216 <property>/sim/freeze/replay-state</property>
217 </not>
218 </condition>
219 </enable>
220 <input>
221 <property>/fdm/jsbsim/ground/tail-ground-effect-speed-kt</property>
222 </input>
223 <output>
224 <property>/fdm/jsbsim/ground/tail-ground-effect-speed-kt-actual</property>
225 </output>
226 </filter>
227
228 <filter>
229 <name>Left Wing Ground Effect</name>
230 <type>gain</type>
231 <enable>
232 <condition>
233 <not>
234 <property>/sim/freeze/replay-state</property>
235 </not>
236 </condition>
237 </enable>
238 <input>
239 <property>/fdm/jsbsim/ground/left-wing-ground-effect-speed-kt</property>
240 </input>
241 <output>
242 <property>/fdm/jsbsim/ground/left-wing-ground-effect-speed-kt-actual</property>
243 </output>
244 </filter>
245
246 <filter>
247 <name>Right Wing Ground Effect</name>
248 <type>gain</type>
249 <enable>
250 <condition>
251 <not>
252 <property>/sim/freeze/replay-state</property>
253 </not>
254 </condition>
255 </enable>
256 <input>
257 <property>/fdm/jsbsim/ground/right-wing-ground-effect-speed-kt</property>
258 </input>
259 <output>
260 <property>/fdm/jsbsim/ground/right-wing-ground-effect-speed-kt-actual</property>
261 </output>
262 </filter>
263
264 <filter>
265 <name>Nose Gear Ground Effect</name>
266 <type>gain</type>
267 <enable>
268 <condition>
269 <not>
270 <property>/sim/freeze/replay-state</property>
271 </not>
272 </condition>
273 </enable>
274 <input>
275 <property>/fdm/jsbsim/ground/nose-gear-ground-effect-speed-kt</property>
276 </input>
277 <output>
278 <property>/fdm/jsbsim/ground/nose-gear-ground-effect-speed-kt-actual</property>
279 </output>
280 </filter>
281
282 <filter>
283 <name>Left Gear Ground Effect</name>
284 <type>gain</type>
285 <enable>
286 <condition>
287 <not>
288 <property>/sim/freeze/replay-state</property>
289 </not>
290 </condition>
291 </enable>
292 <input>
293 <property>/fdm/jsbsim/ground/left-gear-ground-effect-speed-kt</property>
294 </input>
295 <output>
296 <property>/fdm/jsbsim/ground/left-gear-ground-effect-speed-kt-actual</property>
297 </output>
298 </filter>
299
300 <filter>
301 <name>Right Gear Ground Effect</name>
302 <type>gain</type>
303 <enable>
304 <condition>
305 <not>
306 <property>/sim/freeze/replay-state</property>
307 </not>
308 </condition>
309 </enable>
310 <input>
311 <property>/fdm/jsbsim/ground/right-gear-ground-effect-speed-kt</property>
312 </input>
313 <output>
314 <property>/fdm/jsbsim/ground/right-gear-ground-effect-speed-kt-actual</property>
315 </output>
316 </filter>
317
318 <filter>
319 <name>Nose Off Road Tyre Smoke Ground Effect</name>
320 <type>gain</type>
321 <enable>
322 <condition>
323 <not>
324 <property>/sim/freeze/replay-state</property>
325 </not>
326 </condition>
327 </enable>
328 <input>
329 <property>/fdm/jsbsim/ground/nose-tyre-smoke-ground-effect-speed-kt</property>
330 </input>
331 <output>
332 <property>/fdm/jsbsim/ground/nose-tyre-smoke-ground-effect-speed-kt-actual</property>
333 </output>
334 </filter>
335
336 <filter>
337 <name>Left Off Road Tyre Smoke Ground Effect</name>
338 <type>gain</type>
339 <enable>
340 <condition>
341 <not>
342 <property>/sim/freeze/replay-state</property>
343 </not>
344 </condition>
345 </enable>
346 <input>
347 <property>/fdm/jsbsim/ground/left-tyre-smoke-ground-effect-speed-kt</property>
348 </input>
349 <output>
350 <property>/fdm/jsbsim/ground/left-tyre-smoke-ground-effect-speed-kt-actual</property>
351 </output>
352 </filter>
353
354 <filter>
355 <name>Right Off Road Tyre Smoke Ground Effect</name>
356 <type>gain</type>
357 <enable>
358 <condition>
359 <not>
360 <property>/sim/freeze/replay-state</property>
361 </not>
362 </condition>
363 </enable>
364 <input>
365 <property>/fdm/jsbsim/ground/right-tyre-smoke-ground-effect-speed-kt</property>
366 </input>
367 <output>
368 <property>/fdm/jsbsim/ground/right-tyre-smoke-ground-effect-speed-kt-actual</property>
369 </output>
370 </filter>
371
372 <!-- ================================================================== -->
373 <!-- Climate effects -->
374 <!-- ================================================================== -->
375
376 <filter>
377 <name>Aircraft Effect Fog Level</name>
378 <type>noise-spike</type>
379 <max-rate-of-change>0.1</max-rate-of-change>
380 <enable>
381 <condition>
382 <not>
383 <property>/sim/freeze/replay-state</property>
384 </not>
385 </condition>
386 </enable>
387 <input>
388 <condition>
389 <property>/sim/model/c172p/enable-fog-frost</property>
390 </condition>
391 <property>/fdm/jsbsim/heat/fog-level</property>
392 </input>
393 <input>
394 <value>0.0</value>
395 </input>
396 <output>
397 <property>/environment/aircraft-effects/fog-level</property>
398 </output>
399 </filter>
400
401 <filter>
402 <name>Aircraft Effect Frost Level</name>
403 <type>noise-spike</type>
404 <max-rate-of-change>0.1</max-rate-of-change>
405 <enable>
406 <condition>
407 <not>
408 <property>/sim/freeze/replay-state</property>
409 </not>
410 </condition>
411 </enable>
412 <input>
413 <condition>
414 <property>/sim/model/c172p/enable-fog-frost</property>
415 </condition>
416 <property>/fdm/jsbsim/heat/frost-level</property>
417 </input>
418 <input>
419 <value>0.0</value>
420 </input>
421 <output>
422 <property>/environment/aircraft-effects/frost-level</property>
423 </output>
424 </filter>
425
426 <logic>
427 <name>Aircraft Effect Temperature In Range</name>
428 <enable>
429 <condition>
430 <not>
431 <property>/sim/freeze/replay-state</property>
432 </not>
433 </condition>
434 </enable>
435 <input>
436 <and>
437 <less-than>
438 <property>/fdm/jsbsim/heat/cabin-air-temp-degc</property>
439 <value>32.0</value>
440 </less-than>
441 <greater-than>
442 <property>/fdm/jsbsim/heat/cabin-air-temp-degc</property>
443 <value>0.0</value>
444 </greater-than>
445 </and>
446 </input>
447 <output>
448 <property>/sim/model/c172p/cabin-air-temp-in-range</property>
449 </output>
450 </logic>
451
452 <logic>
453 <name>Aircraft Effect Fog Or Frost Increasing</name>
454 <enable>
455 <condition>
456 <not>
457 <property>/sim/freeze/replay-state</property>
458 </not>
459 </condition>
460 </enable>
461 <input>
462 <and>
463 <greater-than>
464 <property>/fdm/jsbsim/heat/moisture-norm</property>
465 <value>0.5</value>
466 </greater-than>
467 <greater-than>
468 <property>/fdm/jsbsim/heat/surface-dewpoint-diff</property>
469 <value>0.0</value>
470 </greater-than>
471 </and>
472 </input>
473 <output>
474 <property>/sim/model/c172p/fog-or-frost-increasing</property>
475 </output>
476 </logic>
477
478 <!-- ================================================================== -->
479 <!-- Securing aircraft -->
480 <!-- ================================================================== -->
481
482 <filter>
483 <name>Controls Parking Brake Lever</name>
484 <type>noise-spike</type>
485 <max-rate-of-change>1.0</max-rate-of-change>
486 <enable>
487 <condition>
488 <not>
489 <property>/sim/freeze/replay-state</property>
490 </not>
491 </condition>
492 </enable>
493 <input>
494 <condition>
495 <property>/controls/gear/brake-parking</property>
496 </condition>
497 <value>1.0</value>
498 </input>
499 <input>
500 <value>0.0</value>
501 </input>
502 <output>
503 <property>/sim/model/c172p/cockpit/parking-lever</property>
504 </output>
505 </filter>
506
507 <!-- Logic for chocks -->
508 <logic>
509 <name>Chock Can Have</name>
510 <input>
511 <and>
512 <less-than>
513 <property>/fdm/jsbsim/bushkit</property>
514 <value>3</value>
515 </less-than>
516 <less-than>
517 <property>velocities/groundspeed-kt</property>
518 <value>1.0</value>
519 </less-than>
520 </and>
521 </input>
522 <output>
523 <property>/sim/model/c172p/securing/chock-can-have</property>
524 </output>
525 </logic>
526
527 <logic>
528 <name>Chock Visible</name>
529 <input>
530 <and>
531 <property>/sim/model/c172p/securing/chock</property>
532 <property>/sim/model/c172p/securing/chock-can-have</property>
533 </and>
534 </input>
535 <output>
536 <property>/sim/model/c172p/securing/chock-visible</property>
537 </output>
538 </logic>
539
540 <logic>
541 <name>Chock Addable</name>
542 <input>
543 <and>
544 <not>
545 <property>/sim/model/c172p/securing/chock</property>
546 </not>
547 <property>/sim/model/c172p/securing/chock-can-have</property>
548 </and>
549 </input>
550 <output>
551 <property>/sim/model/c172p/securing/chock-addable</property>
552 </output>
553 </logic>
554
555 <!-- logic for pitot tube -->
556 <logic>
557 <name>Pitot Cover Addable</name>
558 <input>
559 <and>
560 <not>
561 <property>/sim/model/c172p/securing/pitot-cover-visible</property>
562 </not>
563 <less-than>
564 <property>velocities/groundspeed-kt</property>
565 <value>1.0</value>
566 </less-than>
567 </and>
568 </input>
569 <output>
570 <property>/sim/model/c172p/securing/pitot-cover-addable</property>
571 </output>
572 </logic>
573
574 <logic>
575 <name>Pitot Cover Removable</name>
576 <input>
577 <and>
578 <property>/sim/model/c172p/securing/pitot-cover-visible</property>
579 <less-than>
580 <property>velocities/groundspeed-kt</property>
581 <value>1.0</value>
582 </less-than>
583 </and>
584 </input>
585 <output>
586 <property>/sim/model/c172p/securing/pitot-cover-removable</property>
587 </output>
588 </logic>
589
590 <!-- logic for cowl plugs -->
591 <logic>
592 <name>Cowl Plugs Addable</name>
593 <input>
594 <and>
595 <not>
596 <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
597 </not>
598 <not>
599 <property>/engines/active-engine/running</property>
600 </not>
601 <not>
602 <property>/engines/active-engine/cranking</property>
603 </not>
604 </and>
605 </input>
606 <output>
607 <property>/sim/model/c172p/securing/cowl-plugs-addable</property>
608 </output>
609 </logic>
610
611 <logic>
612 <name>Cowl Plugs Removable</name>
613 <input>
614 <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
615 </input>
616 <output>
617 <property>/sim/model/c172p/securing/cowl-plugs-removable</property>
618 </output>
619 </logic>
620
621 <!-- logic for tiedowns -->
622 <logic>
623 <name>Tiedowns Can Have</name>
624 <input>
625 <and>
626 <not-equals>
627 <property>/fdm/jsbsim/bushkit</property>
628 <value>3</value>
629 </not-equals>
630 <property>/fdm/jsbsim/ground/solid</property>
631 <less-than>
632 <property>velocities/groundspeed-kt</property>
633 <value>1.0</value>
634 </less-than>
635 </and>
636 </input>
637 <output>
638 <property>/sim/model/c172p/securing/tiedowns-can-have</property>
639 </output>
640 </logic>
641
642 <logic>
643 <name>Left Tiedowns Addable</name>
644 <input>
645 <and>
646 <not>
647 <property>/sim/model/c172p/securing/tiedownL-visible</property>
648 </not>
649 <property>/sim/model/c172p/securing/tiedowns-can-have</property>
650 </and>
651 </input>
652 <output>
653 <property>/sim/model/c172p/securing/tiedownL-addable</property>
654 </output>
655 </logic>
656
657 <logic>
658 <name>Right Tiedowns Addable</name>
659 <input>
660 <and>
661 <not>
662 <property>/sim/model/c172p/securing/tiedownR-visible</property>
663 </not>
664 <property>/sim/model/c172p/securing/tiedowns-can-have</property>
665 </and>
666 </input>
667 <output>
668 <property>/sim/model/c172p/securing/tiedownR-addable</property>
669 </output>
670 </logic>
671
672 <logic>
673 <name>Tail Tiedowns Addable</name>
674 <input>
675 <and>
676 <not>
677 <property>/sim/model/c172p/securing/tiedownT-visible</property>
678 </not>
679 <property>/sim/model/c172p/securing/tiedowns-can-have</property>
680 </and>
681 </input>
682 <output>
683 <property>/sim/model/c172p/securing/tiedownT-addable</property>
684 </output>
685 </logic>
686
687 <filter>
688 <name>Tail Tiedowns ripoff: left</name>
689 <type>gain</type>
690 <enable>
691 <condition>
692 <or>
693 <greater-than>
694 <property>/position/altitude-agl-ft</property>
695 <value>10</value>
696 </greater-than>
697 <greater-than>
698 <property>/fdm/jsbsim/fcs/tiedown-left-magnitude</property>
699 <value>1500</value>
700 </greater-than>
701 </or>
702 </condition>
703 </enable>
704 <input>
705 <value>0</value>
706 </input>
707 <output>
708 <property>/sim/model/c172p/securing/tiedownL-visible</property>
709 </output>
710 </filter>
711 <filter>
712 <name>Tail Tiedowns ripoff: right</name>
713 <type>gain</type>
714 <enable>
715 <condition>
716 <or>
717 <greater-than>
718 <property>/position/altitude-agl-ft</property>
719 <value>10</value>
720 </greater-than>
721 <greater-than>
722 <property>/fdm/jsbsim/fcs/tiedown-right-magnitude</property>
723 <value>1500</value>
724 </greater-than>
725 </or>
726 </condition>
727 </enable>
728 <input>
729 <value>0</value>
730 </input>
731 <output>
732 <property>/sim/model/c172p/securing/tiedownR-visible</property>
733 </output>
734 </filter>
735 <filter>
736 <name>Tail Tiedowns ripoff: tail</name>
737 <type>gain</type>
738 <enable>
739 <condition>
740 <or>
741 <greater-than>
742 <property>/position/altitude-agl-ft</property>
743 <value>10</value>
744 </greater-than>
745 <greater-than>
746 <property>/fdm/jsbsim/fcs/tiedown-tail-magnitude</property>
747 <value>1500</value>
748 </greater-than>
749 </or>
750 </condition>
751 </enable>
752 <input>
753 <value>0</value>
754 </input>
755 <output>
756 <property>/sim/model/c172p/securing/tiedownT-visible</property>
757 </output>
758 </filter>
759
760 <!-- ================================================================== -->
761 <!-- Lighting -->
762 <!-- ================================================================== -->
763
764 <logic>
765 <name>Navigation Light Left Damaged</name>
766 <input>
767 <and>
768 <equals>
769 <property>/sim/model/c172p/damage/left-wing</property>
770 <value>2</value>
771 </equals>
772 <not>
773 <property>/fdm/jsbsim/crash</property>
774 </not>
775 </and>
776 </input>
777 <output>
778 <property>sim/model/c172p/lighting/nav-lights/left-damaged</property>
779 </output>
780 </logic>
781
782 <logic>
783 <name>Navigation Light Right Damaged</name>
784 <input>
785 <and>
786 <equals>
787 <property>/sim/model/c172p/damage/right-wing</property>
788 <value>2</value>
789 </equals>
790 <not>
791 <property>/fdm/jsbsim/crash</property>
792 </not>
793 </and>
794 </input>
795 <output>
796 <property>sim/model/c172p/lighting/nav-lights/right-damaged</property>
797 </output>
798 </logic>
799
800 <!-- ================================================================== -->
801 <!-- Checking if doors are opened or closed in order to skip or not -->
802 <!-- the handle animation -->
803 <!-- ================================================================== -->
804
805 <filter>
806 <name>Right door opened</name>
807 <type>gain</type>
808 <enable>
809 <condition>
810 <or>
811 <equals>
812 <property>/sim/model/door-positions/rightDoor/position-norm</property>
813 <value>1.0</value>
814 </equals>
815 <equals>
816 <property>/sim/model/door-positions/rightDoor/position-norm</property>
817 <value>0.0</value>
818 </equals>
819 </or>
820 </condition>
821 </enable>
822 <input>
823 <condition>
824 <equals>
825 <property>/sim/model/door-positions/rightDoor/position-norm</property>
826 <value>1.0</value>
827 </equals>
828 </condition>
829 <value>1.0</value>
830 </input>
831 <input>
832 <condition>
833 <equals>
834 <property>/sim/model/door-positions/rightDoor/position-norm</property>
835 <value>0.0</value>
836 </equals>
837 </condition>
838 <value>0.0</value>
839 </input>
840 <output>
841 <property>/sim/model/door-positions/rightDoor/opened</property>
842 </output>
843 </filter>
844
845 <filter>
846 <name>Left door opened</name>
847 <type>gain</type>
848 <enable>
849 <condition>
850 <or>
851 <equals>
852 <property>/sim/model/door-positions/leftDoor/position-norm</property>
853 <value>1.0</value>
854 </equals>
855 <equals>
856 <property>/sim/model/door-positions/leftDoor/position-norm</property>
857 <value>0.0</value>
858 </equals>
859 </or>
860 </condition>
861 </enable>
862 <input>
863 <condition>
864 <equals>
865 <property>/sim/model/door-positions/leftDoor/position-norm</property>
866 <value>1.0</value>
867 </equals>
868 </condition>
869 <value>1.0</value>
870 </input>
871 <input>
872 <condition>
873 <equals>
874 <property>/sim/model/door-positions/leftDoor/position-norm</property>
875 <value>0.0</value>
876 </equals>
877 </condition>
878 <value>0.0</value>
879 </input>
880 <output>
881 <property>/sim/model/door-positions/leftDoor/opened</property>
882 </output>
883 </filter>
884
885 <filter>
886 <name>Baggage door opened</name>
887 <type>gain</type>
888 <enable>
889 <condition>
890 <or>
891 <equals>
892 <property>/sim/model/door-positions/baggageDoor/position-norm</property>
893 <value>1.0</value>
894 </equals>
895 <equals>
896 <property>/sim/model/door-positions/baggageDoor/position-norm</property>
897 <value>0.0</value>
898 </equals>
899 </or>
900 </condition>
901 </enable>
902 <input>
903 <condition>
904 <equals>
905 <property>/sim/model/door-positions/baggageDoor/position-norm</property>
906 <value>1.0</value>
907 </equals>
908 </condition>
909 <value>1.0</value>
910 </input>
911 <input>
912 <condition>
913 <equals>
914 <property>/sim/model/door-positions/baggageDoor/position-norm</property>
915 <value>0.0</value>
916 </equals>
917 </condition>
918 <value>0.0</value>
919 </input>
920 <output>
921 <property>/sim/model/door-positions/baggageDoor/opened</property>
922 </output>
923 </filter>
924
925 <!-- ============================================================== -->
926 <!-- Converting baggage weight from pounds to kilograms -->
927 <!-- ============================================================== -->
928
929 <filter>
930 <name>Baggage: Pounds to Kilograms</name>
931 <type>gain</type>
932 <gain>0.45359237</gain>
933 <input>
934 <property>/payload/weight[4]/weight-lb</property>
935 </input>
936 <output>
937 <property>/payload/weight[4]/weight-kg</property>
938 </output>
939 </filter>
940
941 <!-- ================================================================== -->
942 <!-- Max range for doors and baggage doors -->
943 <!-- ================================================================== -->
944
945 <filter>
946 <name>Effective range for right door</name>
947 <type>gain</type>
948 <input>
949 <expression>
950 <product>
951 <property>/sim/model/door-positions/rightDoor/position-norm</property>
952 <max>
953 <min>
954 <difference>
955 <value>1.0</value>
956 <product>
957 <sum>
958 <property>/velocities/airspeed-kt</property>
959 <sin>
960 <product>
961 <value>1.07</value>
962 <property>/velocities/airspeed-kt</property>
963 </product>
964 </sin>
965 </sum>
966 <value>0.01</value>
967 </product>
968 </difference>
969 <value>1.0</value>
970 </min>
971 <value>0.51</value>
972 </max>
973 </product>
974 </expression>
975 </input>
976 <output>
977 <property>/sim/model/door-positions/rightDoor/position-norm-effective</property>
978 </output>
979 </filter>
980
981 <filter>
982 <name>Effective range for left door</name>
983 <type>gain</type>
984 <input>
985 <expression>
986 <product>
987 <property>/sim/model/door-positions/leftDoor/position-norm</property>
988 <max>
989 <min>
990 <difference>
991 <value>1.0</value>
992 <product>
993 <sum>
994 <property>/velocities/airspeed-kt</property>
995 <sin>
996 <product>
997 <value>1.38</value>
998 <property>/velocities/airspeed-kt</property>
999 </product>
1000 </sin>
1001 </sum>
1002 <value>0.01</value>
1003 </product>
1004 </difference>
1005 <value>1.0</value>
1006 </min>
1007 <value>0.51</value>
1008 </max>
1009 </product>
1010 </expression>
1011 </input>
1012 <output>
1013 <property>/sim/model/door-positions/leftDoor/position-norm-effective</property>
1014 </output>
1015 </filter>
1016
1017 <filter>
1018 <name>Effective range for baggage door</name>
1019 <type>gain</type>
1020 <input>
1021 <expression>
1022 <product>
1023 <property>/sim/model/door-positions/baggageDoor/position-norm</property>
1024 <max>
1025 <min>
1026 <difference>
1027 <value>1.0</value>
1028 <product>
1029 <sum>
1030 <property>/velocities/airspeed-kt</property>
1031 <sin>
1032 <product>
1033 <value>0.73</value>
1034 <property>/velocities/airspeed-kt</property>
1035 </product>
1036 </sin>
1037 </sum>
1038 <value>0.02</value>
1039 </product>
1040 </difference>
1041 <value>1.0</value>
1042 </min>
1043 <value>0.02</value>
1044 </max>
1045 </product>
1046 </expression>
1047 </input>
1048 <output>
1049 <property>/sim/model/door-positions/baggageDoor/position-norm-effective</property>
1050 </output>
1051 </filter>
1052
1053 <!-- ================================================================== -->
1054 <!-- Adjustments for flight controls -->
1055 <!-- ================================================================== -->
1056 <filter>
1057 <name>Limit range for rudder-trim</name>
1058 <type>gain</type>
1059 <input>
1060 <property>/controls/flight/rudder-trim</property>
1061 </input>
1062 <output>
1063 <property>/controls/flight/rudder-trim</property>
1064 </output>
1065 <min>-.18</min>
1066 <max> .18</max>
1067 </filter>
1068
1069 </PropertyList>