Debian Codegraph @

Aircraft/c172p/Systems/als-lights.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 Copyright (c) 2015 onox
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19
20 <PropertyList>
21
22 <!--
23 Note: Properties in /systems/electrical/ are computed by
24 Nasal/electrical.nas during replay, thus do not need to be
25 recorded.
26 -->
27
28 <logic>
29 <name>Lighting Landing On/Off</name>
30 <input>
31 <and>
32 <less-than>
33 <property>/systems/electrical/outputs/landing-lights</property>
34 <value>31.5</value>
35 </less-than>
36 <greater-than>
37 <property>/systems/electrical/outputs/landing-lights</property>
38 <value>20.0</value>
39 </greater-than>
40 <not-equals>
41 <property>/sim/model/c172p/damage/left-wing</property>
42 <value>1</value>
43 </not-equals>
44 <not>
45 <property>/fdm/jsbsim/crash</property>
46 </not>
47 </and>
48 </input>
49 <output>
50 <property>/sim/model/c172p/lighting/landing</property>
51 </output>
52 </logic>
53
54 <logic>
55 <name>Lighting Taxi On/Off</name>
56 <input>
57 <and>
58 <less-than>
59 <property>/systems/electrical/outputs/taxi-light</property>
60 <value>31.5</value>
61 </less-than>
62 <greater-than>
63 <property>/systems/electrical/outputs/taxi-light</property>
64 <value>20.0</value>
65 </greater-than>
66 <not-equals>
67 <property>/sim/model/c172p/damage/left-wing</property>
68 <value>1</value>
69 </not-equals>
70 <not>
71 <property>/fdm/jsbsim/crash</property>
72 </not>
73 </and>
74 </input>
75 <output>
76 <property>/sim/model/c172p/lighting/taxi</property>
77 </output>
78 </logic>
79
80 <filter>
81 <name>Light Map Flood Red</name>
82 <type>gain</type>
83 <gain>1.2</gain>
84 <input>
85 <condition>
86 <and>
87 <less-than>
88 <property>/systems/electrical/outputs/cabin-lights</property>
89 <value>31.5</value>
90 </less-than>
91 <greater-than>
92 <property>/systems/electrical/outputs/cabin-lights</property>
93 <value>20.0</value>
94 </greater-than>
95 <greater-than>
96 <property>/controls/switches/dome-red</property>
97 <value>0</value>
98 </greater-than>
99 </and>
100 </condition>
101 <expression>
102 <product>
103 <property>/controls/lighting/instruments-norm</property>
104 <table>
105 <property>/rendering/scene/diffuse/red</property>
106 <entry><ind>0.0</ind><dep>1.0</dep></entry>
107 <entry><ind>1.0</ind><dep>0.75</dep></entry>
108 </table>
109 </product>
110 </expression>
111 </input>
112 <output>
113 <property>/sim/model/lightmap/flood/factor</property>
114 </output>
115 </filter>
116
117 <filter>
118 <name>Light Map Dome White</name>
119 <type>gain</type>
120 <gain>1.0</gain>
121 <input>
122 <condition>
123 <and>
124 <less-than>
125 <property>/systems/electrical/outputs/cabin-lights</property>
126 <value>31.5</value>
127 </less-than>
128 <greater-than>
129 <property>/systems/electrical/outputs/cabin-lights</property>
130 <value>20.0</value>
131 </greater-than>
132 <equals>
133 <property>/controls/switches/dome-white</property>
134 <value>1.0</value>
135 </equals>
136 </and>
137 </condition>
138 <expression>
139 <table>
140 <property>/controls/lighting/dome-white-norm</property>
141 <entry><ind>0.0</ind><dep>.5</dep></entry>
142 <entry><ind>1.0</ind><dep>.85</dep></entry>
143 </table>
144 </expression>
145 </input>
146 <output>
147 <property>/sim/model/lightmap/dome/factor</property>
148 </output>
149 </filter>
150
151 <filter>
152 <name>Courtesy Dome White</name>
153 <type>gain</type>
154 <gain>1.0</gain>
155 <input>
156 <condition>
157 <and>
158 <less-than>
159 <property>/systems/electrical/outputs/cabin-lights</property>
160 <value>31.5</value>
161 </less-than>
162 <greater-than>
163 <property>/systems/electrical/outputs/cabin-lights</property>
164 <value>20.0</value>
165 </greater-than>
166 <equals>
167 <property>/controls/switches/dome-white</property>
168 <value>1.0</value>
169 </equals>
170 </and>
171 </condition>
172 <expression>
173 <table>
174 <property>/controls/lighting/dome-white-norm</property>
175 <entry><ind>0.0</ind><dep>.5</dep></entry>
176 <entry><ind>1.0</ind><dep>.85</dep></entry>
177 </table>
178 </expression>
179 </input>
180 <output>
181 <property>/sim/model/c172p/lighting/courtesy</property>
182 </output>
183 </filter>
184
185 <logic>
186 <name>Lighting Beacon On/Off</name>
187 <input>
188 <and>
189 <less-than>
190 <property>/systems/electrical/outputs/beacon</property>
191 <value>31.5</value>
192 </less-than>
193 <greater-than>
194 <property>/systems/electrical/outputs/beacon</property>
195 <value>20.0</value>
196 </greater-than>
197 </and>
198 </input>
199 <output>
200 <property>/sim/model/c172p/lighting/beacon/enabled</property>
201 </output>
202 </logic>
203
204 <logic>
205 <name>Lighting Strobe On/Off</name>
206 <input>
207 <and>
208 <less-than>
209 <property>/systems/electrical/outputs/strobe</property>
210 <value>31.5</value>
211 </less-than>
212 <greater-than>
213 <property>/systems/electrical/outputs/strobe</property>
214 <value>20.0</value>
215 </greater-than>
216 </and>
217 </input>
218 <output>
219 <property>/sim/model/c172p/lighting/strobes/enabled</property>
220 </output>
221 </logic>
222
223 <logic>
224 <name>Lighting Navigation On/Off</name>
225 <input>
226 <and>
227 <less-than>
228 <property>/systems/electrical/outputs/nav-lights</property>
229 <value>31.5</value>
230 </less-than>
231 <greater-than>
232 <property>/systems/electrical/outputs/nav-lights</property>
233 <value>20.0</value>
234 </greater-than>
235 </and>
236 </input>
237 <output>
238 <property>/sim/model/c172p/lighting/nav-lights/enabled</property>
239 </output>
240 </logic>
241
242 <filter>
243 <name>Inst Red Factor</name>
244 <type>gain</type>
245 <gain>0.010</gain>
246 <input>
247 <condition>
248 <greater-than>
249 <property>/controls/lighting/radio-norm</property>
250 <value>0.0</value>
251 </greater-than>
252 </condition>
253 <expression>
254 <sum>
255 <property>/sim/model/c172p/lighting/comm0</property>
256 <property>/sim/model/c172p/lighting/comm1</property>
257 <property>/sim/model/c172p/lighting/adf</property>
258 </sum>
259 </expression>
260 </input>
261 <input>
262 <condition>
263 <and>
264 <equals>
265 <property>/controls/lighting/radio-norm</property>
266 <value>0.0</value>
267 </equals>
268 <property>/sim/model/c172p/lighting/comm0-power</property>
269 <property>/sim/model/c172p/lighting/comm1-power</property>
270 <property>/instrumentation/adf[0]/operable</property>
271 </and>
272 </condition>
273 <value>3.0</value>
274 </input>
275 <output>
276 <property>/sim/model/c172p/lighting/inst-r-norm</property>
277 </output>
278 </filter>
279
280 <filter>
281 <name>Inst Blue Factor</name>
282 <type>gain</type>
283 <gain>0.006</gain>
284 <input>
285 <condition>
286 <greater-than>
287 <property>/controls/lighting/radio-norm</property>
288 <value>0.0</value>
289 </greater-than>
290 </condition>
291 <expression>
292 <sum>
293 <property>/sim/model/c172p/lighting/comm0</property>
294 <property>/sim/model/c172p/lighting/comm1</property>
295 <property>/sim/model/c172p/lighting/adf</property>
296 </sum>
297 </expression>
298 </input>
299 <input>
300 <condition>
301 <and>
302 <equals>
303 <property>/controls/lighting/radio-norm</property>
304 <value>0.0</value>
305 </equals>
306 <property>/sim/model/c172p/lighting/comm0-power</property>
307 <property>/sim/model/c172p/lighting/comm1-power</property>
308 <property>/instrumentation/adf[0]/operable</property>
309 </and>
310 </condition>
311 <value>3.0</value>
312 </input>
313 <output>
314 <property>/sim/model/c172p/lighting/inst-g-norm</property>
315 </output>
316 </filter>
317
318 <filter>
319 <name>Inst Green Factor</name>
320 <type>gain</type>
321 <gain>0.006</gain>
322 <input>
323 <condition>
324 <greater-than>
325 <property>/controls/lighting/radio-norm</property>
326 <value>0.0</value>
327 </greater-than>
328 </condition>
329 <expression>
330 <sum>
331 <property>/sim/model/c172p/lighting/comm0</property>
332 <property>/sim/model/c172p/lighting/comm1</property>
333 <property>/sim/model/c172p/lighting/adf</property>
334 </sum>
335 </expression>
336 </input>
337 <input>
338 <condition>
339 <and>
340 <equals>
341 <property>/controls/lighting/radio-norm</property>
342 <value>0.0</value>
343 </equals>
344 <property>/sim/model/c172p/lighting/comm0-power</property>
345 <property>/sim/model/c172p/lighting/comm1-power</property>
346 <property>/instrumentation/adf[0]/operable</property>
347 </and>
348 </condition>
349 <value>3.0</value>
350 </input>
351 <output>
352 <property>/sim/model/c172p/lighting/inst-b-norm</property>
353 </output>
354 </filter>
355
356 <!-- FG1000 interior lighting residual -->
357
358 <!-- STBY -->
359 <filter>
360 <name>FG1000 STBY Red Factor</name>
361 <type>gain</type>
362 <gain>0.02</gain>
363 <input>
364 <condition>
365 <greater-than>
366 <property>/controls/lighting/stby</property>
367 <value>0.0</value>
368 </greater-than>
369 </condition>
370 <property>/controls/lighting/stby</property>
371 </input>
372 <input>
373 <condition>
374 <equals>
375 <property>/controls/lighting/stby</property>
376 <value>0.0</value>
377 </equals>
378 </condition>
379 <value>0.01</value>
380 </input>
381 <output>
382 <property>/sim/model/c172p/lighting/glass-tr-norm</property>
383 </output>
384 </filter>
385
386 <filter>
387 <name>FG1000 STBY Blue Factor</name>
388 <type>gain</type>
389 <gain>0.01</gain>
390 <input>
391 <condition>
392 <greater-than>
393 <property>/controls/lighting/stby</property>
394 <value>0.0</value>
395 </greater-than>
396 </condition>
397 <property>/controls/lighting/stby</property>
398 </input>
399 <input>
400 <condition>
401 <equals>
402 <property>/controls/lighting/stby</property>
403 <value>0.0</value>
404 </equals>
405 </condition>
406 <value>0.01</value>
407 </input>
408 <output>
409 <property>/sim/model/c172p/lighting/glass-tb-norm</property>
410 </output>
411 </filter>
412
413 <filter>
414 <name>FG1000 STBY Green Factor</name>
415 <type>gain</type>
416 <gain>0.02</gain>
417 <input>
418 <condition>
419 <greater-than>
420 <property>/controls/lighting/stby</property>
421 <value>0.0</value>
422 </greater-than>
423 </condition>
424 <property>/controls/lighting/stby</property>
425 </input>
426 <input>
427 <condition>
428 <equals>
429 <property>/controls/lighting/stby</property>
430 <value>0.0</value>
431 </equals>
432 </condition>
433 <value>0.02</value>
434 </input>
435 <output>
436 <property>/sim/model/c172p/lighting/glass-tg-norm</property>
437 </output>
438 </filter>
439
440 <!-- Pedestal -->
441 <filter>
442 <name>FG1000 Pedestal Red Factor</name>
443 <type>gain</type>
444 <gain>0.003</gain>
445 <input>
446 <condition>
447 <greater-than>
448 <property>/controls/lighting/pedestal</property>
449 <value>0.0</value>
450 </greater-than>
451 </condition>
452 <property>/controls/lighting/pedestal</property>
453 </input>
454 <output>
455 <property>/sim/model/c172p/lighting/glass-pr-norm</property>
456 </output>
457 </filter>
458
459 <filter>
460 <name>FG1000 Pedestal Blue Factor</name>
461 <type>gain</type>
462 <gain>0.003</gain>
463 <input>
464 <condition>
465 <greater-than>
466 <property>/controls/lighting/pedestal</property>
467 <value>0.0</value>
468 </greater-than>
469 </condition>
470 <property>/controls/lighting/pedestal</property>
471 </input>
472 <output>
473 <property>/sim/model/c172p/lighting/glass-pb-norm</property>
474 </output>
475 </filter>
476
477 <filter>
478 <name>FG1000 Pedestal Green Factor</name>
479 <type>gain</type>
480 <gain>0.003</gain>
481 <input>
482 <condition>
483 <greater-than>
484 <property>/controls/lighting/pedestal</property>
485 <value>0.0</value>
486 </greater-than>
487 </condition>
488 <property>/controls/lighting/pedestal</property>
489 </input>
490 <output>
491 <property>/sim/model/c172p/lighting/glass-pg-norm</property>
492 </output>
493 </filter>
494
495 <!-- FG1000 SWCB -->
496 <filter>
497 <name>FG1000 SWCB Red Factor</name>
498 <type>gain</type>
499 <gain>0.01</gain>
500 <input>
501 <condition>
502 <greater-than>
503 <property>/controls/lighting/swcb</property>
504 <value>0.0</value>
505 </greater-than>
506 </condition>
507 <property>/controls/lighting/swcb</property>
508 </input>
509 <output>
510 <property>/sim/model/c172p/lighting/glass-sr-norm</property>
511 </output>
512 </filter>
513
514 <filter>
515 <name>FG1000 SWCB Blue Factor</name>
516 <type>gain</type>
517 <gain>0.01</gain>
518 <input>
519 <condition>
520 <greater-than>
521 <property>/controls/lighting/swcb</property>
522 <value>0.0</value>
523 </greater-than>
524 </condition>
525 <property>/controls/lighting/swcb</property>
526 </input>
527 <output>
528 <property>/sim/model/c172p/lighting/glass-sg-norm</property>
529 </output>
530 </filter>
531
532 <filter>
533 <name>FG1000 SWCB Green Factor</name>
534 <type>gain</type>
535 <gain>0.01</gain>
536 <input>
537 <condition>
538 <greater-than>
539 <property>/controls/lighting/swcb</property>
540 <value>0.0</value>
541 </greater-than>
542 </condition>
543 <property>/controls/lighting/swcb</property>
544 </input>
545 <output>
546 <property>/sim/model/c172p/lighting/glass-sb-norm</property>
547 </output>
548 </filter>
549
550 <!-- FG1000 Avionics -->
551
552 <filter>
553 <name>FG1000 Avionics pfd-avn</name>
554 <type>gain</type>
555 <gain>0.5</gain>
556 <input>
557 <condition>
558 <greater-than>
559 <property>/controls/lighting/pfd-avn</property>
560 <value>0.0</value>
561 </greater-than>
562 </condition>
563 <property>/controls/lighting/pfd-avn</property>
564 </input>
565 <output>
566 <property>/sim/model/c172p/lighting/pfd-avn</property>
567 </output>
568 </filter>
569 <filter>
570 <name>FG1000 Avionics mfd</name>
571 <type>gain</type>
572 <gain>0.5</gain>
573 <input>
574 <condition>
575 <greater-than>
576 <property>/controls/lighting/mfd</property>
577 <value>0.0</value>
578 </greater-than>
579 </condition>
580 <property>/controls/lighting/mfd</property>
581 </input>
582 <output>
583 <property>/sim/model/c172p/lighting/mfd</property>
584 </output>
585 </filter>
586 <filter>
587 <name>FG1000 Avionics pfd-ess</name>
588 <type>gain</type>
589 <gain>0.5</gain>
590 <input>
591 <condition>
592 <and>
593 <equals>
594 <property>/controls/lighting/pfd-avn</property>
595 <value>0.0</value>
596 </equals>
597 <greater-than>
598 <property>/controls/lighting/pfd-ess</property>
599 <value>0.0</value>
600 </greater-than>
601 </and>
602 </condition>
603 <property>/controls/lighting/pfd-ess</property>
604 </input>
605 <output>
606 <property>/sim/model/c172p/lighting/pfd-ess</property>
607 </output>
608 </filter>
609
610 <filter>
611 <name>FG1000 Avionics Red Factor</name>
612 <type>gain</type>
613 <gain>0.04</gain>
614 <input>
615 <expression>
616 <product>
617 <sum>
618 <property>/sim/model/c172p/lighting/pfd-avn</property>
619 <property>/sim/model/c172p/lighting/mfd</property>
620 <property>/sim/model/c172p/lighting/pfd-ess</property>
621 </sum>
622 <property>/controls/lighting/avionics-norm</property>
623 </product>
624 </expression>
625 </input>
626 <output>
627 <property>/sim/model/c172p/lighting/glass-ar-norm</property>
628 </output>
629 </filter>
630
631 <filter>
632 <name>FG1000 Avionics Blue Factor</name>
633 <type>gain</type>
634 <gain>0.05</gain>
635 <input>
636 <expression>
637 <product>
638 <sum>
639 <property>/sim/model/c172p/lighting/pfd-avn</property>
640 <property>/sim/model/c172p/lighting/mfd</property>
641 <property>/sim/model/c172p/lighting/pfd-ess</property>
642 </sum>
643 <property>/controls/lighting/avionics-norm</property>
644 </product>
645 </expression>
646 </input>
647 <output>
648 <property>/sim/model/c172p/lighting/glass-ag-norm</property>
649 </output>
650 </filter>
651
652 <filter>
653 <name>FG1000 Avionics Green Factor</name>
654 <type>gain</type>
655 <gain>0.05</gain>
656 <input>
657 <expression>
658 <product>
659 <sum>
660 <property>/sim/model/c172p/lighting/pfd-avn</property>
661 <property>/sim/model/c172p/lighting/mfd</property>
662 <property>/sim/model/c172p/lighting/pfd-ess</property>
663 </sum>
664 <property>/controls/lighting/avionics-norm</property>
665 </product>
666 </expression>
667 </input>
668 <output>
669 <property>/sim/model/c172p/lighting/glass-ab-norm</property>
670 </output>
671 </filter>
672
673 <filter>
674 <name>Map FG1000 Avionics Knob to Glass Panel</name>
675 <type>gain</type>
676 <input>
677 <condition>
678 <or>
679 <property>/sim/model/c172p/lighting/pfd-avn</property>
680 <property>/sim/model/c172p/lighting/mfd</property>
681 <property>/sim/model/c172p/lighting/pfd-ess</property>
682 </or>
683 </condition>
684 <expression>
685 <table>
686 <property>/controls/lighting/avionics-norm</property>
687 <entry><ind>0.0</ind><dep>0.0</dep></entry>
688 <entry><ind>1.0</ind><dep>2.3</dep></entry>
689 </table>
690 </expression>
691 </input>
692 <output>
693 <property>/instrumentation/FG1000/Lightmap</property>
694 </output>
695 </filter>
696
697 <filter>
698 <name>Map FG1000 Avionics Knob to Glass Screen</name>
699 <type>gain</type>
700 <input>
701 <condition>
702 <or>
703 <property>/sim/model/c172p/lighting/pfd-avn</property>
704 <property>/sim/model/c172p/lighting/mfd</property>
705 <property>/sim/model/c172p/lighting/pfd-ess</property>
706 </or>
707 </condition>
708 <expression>
709 <table>
710 <property>/instrumentation/FG1000/Lightmap</property>
711 <entry><ind>0.0</ind><dep>0.0</dep></entry>
712 <entry><ind>2.3</ind><dep>1.0</dep></entry>
713 </table>
714 </expression>
715 </input>
716 <output>
717 <property>/instrumentation/FG1000/Lightmap-scaler</property>
718 </output>
719 </filter>
720
721 <!-- Reduce the red glow from the digits of the radio stack
722 if the instrument lighting is at 100 %.
723 -->
724 <filter>
725 <name>Inst Gain As Function Of Instrument Lighting</name>
726 <type>gain</type>
727 <input>
728 <expression>
729 <table>
730 <property>/sim/model/material/instruments/integral-factor</property>
731 <entry><ind>0.0</ind><dep>1.0</dep></entry>
732 <entry><ind>1.0</ind><dep>0.9</dep></entry>
733 </table>
734 </expression>
735 </input>
736 <output>
737 <property>/sim/model/c172p/lighting/inst-gain</property>
738 </output>
739 </filter>
740
741 <filter>
742 <name>RGB Red Factor from radio stack</name>
743 <type>gain</type>
744 <input>
745 <property>/sim/model/c172p/lighting/ra-r-r</property>
746 <scale>
747 <property>/sim/model/material/instruments/integral-factor</property>
748 </scale>
749 <offset>
750 <property>/sim/model/c172p/lighting/inst-r-norm</property>
751 <scale>
752 <property>/sim/model/c172p/lighting/inst-gain</property>
753 </scale>
754 </offset>
755 </input>
756 <output>
757 <property>/sim/model/c172p/lighting/rgb-ra-r-r-factor</property>
758 </output>
759 </filter>
760 <filter>
761 <name>RGB Green Factor from radio stack</name>
762 <type>gain</type>
763 <input>
764 <property>/sim/model/c172p/lighting/ra-g-r</property>
765 <scale>
766 <property>/sim/model/material/instruments/integral-factor</property>
767 </scale>
768 <offset>
769 <property>/sim/model/c172p/lighting/inst-g-norm</property>
770 <scale>
771 <property>/sim/model/c172p/lighting/inst-gain</property>
772 </scale>
773 </offset>
774 </input>
775 <output>
776 <property>/sim/model/c172p/lighting/rgb-ra-g-r-factor</property>
777 </output>
778 </filter>
779 <filter>
780 <name>RGB Blue Factor from radio stack</name>
781 <type>gain</type>
782 <input>
783 <property>/sim/model/c172p/lighting/ra-b-r</property>
784 <scale>
785 <property>/sim/model/material/instruments/integral-factor</property>
786 </scale>
787 <offset>
788 <property>/sim/model/c172p/lighting/inst-b-norm</property>
789 <scale>
790 <property>/sim/model/c172p/lighting/inst-gain</property>
791 </scale>
792 </offset>
793 </input>
794 <output>
795 <property>/sim/model/c172p/lighting/rgb-ra-b-r-factor</property>
796 </output>
797 </filter>
798
799 <filter>
800 <name>RGB Red Factor from post lights</name>
801 <type>gain</type>
802 <input>
803 <property>/sim/model/c172p/lighting/ra-r-p</property>
804 <scale>
805 <property>/sim/model/material/instruments/factor</property>
806 </scale>
807 </input>
808 <output>
809 <property>/sim/model/c172p/lighting/rgb-ra-r-p-factor</property>
810 </output>
811 </filter>
812 <filter>
813 <name>RGB Green Factor from post lights</name>
814 <type>gain</type>
815 <input>
816 <property>/sim/model/c172p/lighting/ra-g-p</property>
817 <scale>
818 <property>/sim/model/material/instruments/factor</property>
819 </scale>
820 </input>
821 <output>
822 <property>/sim/model/c172p/lighting/rgb-ra-g-p-factor</property>
823 </output>
824 </filter>
825 <filter>
826 <name>RGB Blue Factor from post lights</name>
827 <type>gain</type>
828 <input>
829 <property>/sim/model/c172p/lighting/ra-b-p</property>
830 <scale>
831 <property>/sim/model/material/instruments/factor</property>
832 </scale>
833 </input>
834 <output>
835 <property>/sim/model/c172p/lighting/rgb-ra-b-p-factor</property>
836 </output>
837 </filter>
838
839 <filter>
840 <name>RGB Red Factor from flood lights</name>
841 <type>gain</type>
842 <input>
843 <property>/sim/model/c172p/lighting/flood-red</property>
844 <scale>
845 <property>/sim/model/c172p/lighting/flood-default</property>
846 </scale>
847 </input>
848 <output>
849 <property>/sim/model/c172p/lighting/flood-proc-red-factor</property>
850 </output>
851 </filter>
852 <filter>
853 <name>RGB Green Factor flood lights</name>
854 <type>gain</type>
855 <input>
856 <property>/sim/model/c172p/lighting/flood-green</property>
857 <scale>
858 <property>/sim/model/c172p/lighting/flood-default</property>
859 </scale>
860 </input>
861 <output>
862 <property>/sim/model/c172p/lighting/flood-proc-green-factor</property>
863 </output>
864 </filter>
865 <filter>
866 <name>RGB Blue Factor flood lights</name>
867 <type>gain</type>
868 <input>
869 <property>/sim/model/c172p/lighting/flood-blue</property>
870 <scale>
871 <property>/sim/model/c172p/lighting/flood-default</property>
872 </scale>
873 </input>
874 <output>
875 <property>/sim/model/c172p/lighting/flood-proc-blue-factor</property>
876 </output>
877 </filter>
878
879 <!-- Output used for ALS residual-ambience and default renderer ambience (material animations) cabin only -->
880 <filter>
881 <name>RGB Red Factor combined</name>
882 <type>gain</type>
883 <input>
884 <condition>
885 <not>
886 <property>/controls/panel/glass</property>
887 </not>
888 </condition>
889 <expression>
890 <sum>
891 <!-- simulates radio ambient lighting -->
892 <property>/sim/model/c172p/lighting/rgb-ra-r-r-factor</property>
893 <!-- simulates post ambient lighting -->
894 <property>/sim/model/c172p/lighting/rgb-ra-r-p-factor</property>
895 <!-- simulates dome lighting -->
896 <property>/sim/model/c172p/lighting/dome-default</property>
897 <!-- simulates flood lighting -->
898 <property>/sim/model/c172p/lighting/flood-proc-red-factor</property>
899 </sum>
900 </expression>
901 </input>
902 <input>
903 <condition>
904 <property>controls/panel/glass</property>
905 </condition>
906 <expression>
907 <sum>
908 <!-- simulates dome lighting -->
909 <property>/sim/model/c172p/lighting/dome-default</property>
910 <!-- simulates flood lighting -->
911 <property>/sim/model/c172p/lighting/glass-tr-norm</property>
912 <property>/sim/model/c172p/lighting/glass-pr-norm</property>
913 <property>/sim/model/c172p/lighting/glass-sr-norm</property>
914 <property>/sim/model/c172p/lighting/glass-ar-norm</property>
915 </sum>
916 </expression>
917 </input>
918 <output>
919 <property>/sim/model/c172p/lighting/rgb-ra-r-factor</property>
920 </output>
921 </filter>
922 <filter>
923 <name>RGB Green Factor combined</name>
924 <type>gain</type>
925 <input>
926 <condition>
927 <not>
928 <property>/controls/panel/glass</property>
929 </not>
930 </condition>
931 <expression>
932 <sum>
933 <property>/sim/model/c172p/lighting/rgb-ra-g-r-factor</property>
934 <property>/sim/model/c172p/lighting/rgb-ra-g-p-factor</property>
935 <property>/sim/model/c172p/lighting/dome-default</property>
936 <property>/sim/model/c172p/lighting/flood-proc-green-factor</property>
937 </sum>
938 </expression>
939 </input>
940 <input>
941 <condition>
942 <property>controls/panel/glass</property>
943 </condition>
944 <expression>
945 <sum>
946 <!-- simulates dome lighting -->
947 <property>/sim/model/c172p/lighting/dome-default</property>
948 <!-- simulates fg1000 lighting -->
949 <property>/sim/model/c172p/lighting/glass-tg-norm</property>
950 <property>/sim/model/c172p/lighting/glass-pg-norm</property>
951 <property>/sim/model/c172p/lighting/glass-sg-norm</property>
952 <property>/sim/model/c172p/lighting/glass-ag-norm</property>
953 </sum>
954 </expression>
955 </input>
956 <output>
957 <property>/sim/model/c172p/lighting/rgb-ra-g-factor</property>
958 </output>
959 </filter>
960 <filter>
961 <name>RGB Blue Factor combined</name>
962 <type>gain</type>
963 <input>
964 <condition>
965 <not>
966 <property>/controls/panel/glass</property>
967 </not>
968 </condition>
969 <expression>
970 <sum>
971 <property>/sim/model/c172p/lighting/rgb-ra-b-r-factor</property>
972 <property>/sim/model/c172p/lighting/rgb-ra-b-p-factor</property>
973 <property>/sim/model/c172p/lighting/dome-default</property>
974 <property>/sim/model/c172p/lighting/flood-proc-blue-factor</property>
975 </sum>
976 </expression>
977 </input>
978 <input>
979 <condition>
980 <property>controls/panel/glass</property>
981 </condition>
982 <expression>
983 <sum>
984 <!-- simulates dome lighting -->
985 <property>/sim/model/c172p/lighting/dome-default</property>
986 <!-- simulates fg1000 lighting -->
987 <property>/sim/model/c172p/lighting/glass-tb-norm</property>
988 <property>/sim/model/c172p/lighting/glass-pb-norm</property>
989 <property>/sim/model/c172p/lighting/glass-sb-norm</property>
990 <property>/sim/model/c172p/lighting/glass-ab-norm</property>
991 </sum>
992 </expression>
993 </input>
994 <output>
995 <property>/sim/model/c172p/lighting/rgb-ra-b-factor</property>
996 </output>
997 </filter>
998
999 <!-- Output used for default renderer overhead lighting (material animations) on panel guages only -->
1000 <filter>
1001 <name>RGB Red Factor default renderer guages combined</name>
1002 <type>gain</type>
1003 <input>
1004 <condition>
1005 <or>
1006 <not>
1007 <property>/sim/rendering/shaders/skydome</property>
1008 </not>
1009 <equals>
1010 <property>/sim/rendering/shaders/model</property>
1011 <value>0</value>
1012 </equals>
1013 </or>
1014 <greater-than-equals>
1015 <property>/sim/model/c172p/lighting/dome-proc</property>
1016 <property>/sim/model/material/instruments/factor</property>
1017 </greater-than-equals>
1018 </condition>
1019 <expression>
1020 <sum>
1021 <product>
1022 <property>/sim/model/c172p/lighting/dome-proc</property>
1023 <value>1.0</value>
1024 </product>
1025 <property>/sim/model/c172p/lighting/flood-proc-red-factor</property>
1026 </sum>
1027 </expression>
1028 </input>
1029 <input>
1030 <condition>
1031 <or>
1032 <not>
1033 <property>/sim/rendering/shaders/skydome</property>
1034 </not>
1035 <equals>
1036 <property>/sim/rendering/shaders/model</property>
1037 <value>0</value>
1038 </equals>
1039 </or>
1040 <greater-than>
1041 <property>/sim/model/material/instruments/factor</property>
1042 <property>/sim/model/c172p/lighting/dome-proc</property>
1043 </greater-than>
1044 </condition>
1045 <expression>
1046 <sum>
1047 <product>
1048 <property>/sim/model/material/instruments/factor</property>
1049 <value>1.0</value>
1050 </product>
1051 <property>/sim/model/c172p/lighting/flood-proc-red-factor</property>
1052 </sum>
1053 </expression>
1054 </input>
1055 <output>
1056 <property>/sim/model/material/instruments/default-red-combined-factor</property>
1057 </output>
1058 </filter>
1059 <filter>
1060 <name>RGB Green Factor default renderer guages combined</name>
1061 <type>gain</type>
1062 <input>
1063 <condition>
1064 <or>
1065 <not>
1066 <property>/sim/rendering/shaders/skydome</property>
1067 </not>
1068 <equals>
1069 <property>/sim/rendering/shaders/model</property>
1070 <value>0</value>
1071 </equals>
1072 </or>
1073 <greater-than-equals>
1074 <property>/sim/model/c172p/lighting/dome-proc</property>
1075 <property>/sim/model/material/instruments/factor</property>
1076 </greater-than-equals>
1077 </condition>
1078 <expression>
1079 <sum>
1080 <product>
1081 <property>/sim/model/c172p/lighting/dome-proc</property>
1082 <value>0.8</value>
1083 </product>
1084 <property>/sim/model/c172p/lighting/flood-proc-green-factor</property>
1085 </sum>
1086 </expression>
1087 </input>
1088 <input>
1089 <condition>
1090 <or>
1091 <not>
1092 <property>/sim/rendering/shaders/skydome</property>
1093 </not>
1094 <equals>
1095 <property>/sim/rendering/shaders/model</property>
1096 <value>0</value>
1097 </equals>
1098 </or>
1099 <greater-than>
1100 <property>/sim/model/material/instruments/factor</property>
1101 <property>/sim/model/c172p/lighting/dome-proc</property>
1102 </greater-than>
1103 </condition>
1104 <expression>
1105 <sum>
1106 <product>
1107 <property>/sim/model/material/instruments/factor</property>
1108 <value>0.8</value>
1109 </product>
1110 <property>/sim/model/c172p/lighting/flood-proc-green-factor</property>
1111 </sum>
1112 </expression>
1113 </input>
1114 <output>
1115 <property>/sim/model/material/instruments/default-green-combined-factor</property>
1116 </output>
1117 </filter>
1118 <filter>
1119 <name>RGB Blue Factor default renderer guages combined</name>
1120 <type>gain</type>
1121 <input>
1122 <condition>
1123 <or>
1124 <not>
1125 <property>/sim/rendering/shaders/skydome</property>
1126 </not>
1127 <equals>
1128 <property>/sim/rendering/shaders/model</property>
1129 <value>0</value>
1130 </equals>
1131 </or>
1132 <greater-than-equals>
1133 <property>/sim/model/c172p/lighting/dome-proc</property>
1134 <property>/sim/model/material/instruments/factor</property>
1135 </greater-than-equals>
1136 </condition>
1137 <expression>
1138 <sum>
1139 <product>
1140 <property>/sim/model/c172p/lighting/dome-proc</property>
1141 <value>0.5</value>
1142 </product>
1143 <property>/sim/model/c172p/lighting/flood-proc-blue-factor</property>
1144 </sum>
1145 </expression>
1146 </input>
1147 <input>
1148 <condition>
1149 <or>
1150 <not>
1151 <property>/sim/rendering/shaders/skydome</property>
1152 </not>
1153 <equals>
1154 <property>/sim/rendering/shaders/model</property>
1155 <value>0</value>
1156 </equals>
1157 </or>
1158 <greater-than>
1159 <property>/sim/model/material/instruments/factor</property>
1160 <property>/sim/model/c172p/lighting/dome-proc</property>
1161 </greater-than>
1162 </condition>
1163 <expression>
1164 <sum>
1165 <product>
1166 <property>/sim/model/material/instruments/factor</property>
1167 <value>0.5</value>
1168 </product>
1169 <property>/sim/model/c172p/lighting/flood-proc-blue-factor</property>
1170 </sum>
1171 </expression>
1172 </input>
1173 <output>
1174 <property>/sim/model/material/instruments/default-blue-combined-factor</property>
1175 </output>
1176 </filter>
1177
1178 <!-- Used for default renderer overhead lighting (material animations) -->
1179 <filter>
1180 <type>gain</type>
1181 <gain>.125</gain>
1182 <input>/sim/model/lightmap/dome/factor</input>
1183 <output>/sim/model/c172p/lighting/dome-default</output>
1184 </filter>
1185
1186 <filter>
1187 <type>gain</type>
1188 <gain>.175</gain>
1189 <input>/sim/model/lightmap/flood/factor</input>
1190 <output>/sim/model/c172p/lighting/flood-default</output>
1191 </filter>
1192
1193 <!-- Used for ALS procedural lights -->
1194 <filter>
1195 <type>gain</type>
1196 <gain>.25</gain>
1197 <input>/sim/model/lightmap/dome/factor</input>
1198 <output>/sim/model/c172p/lighting/dome-proc</output>
1199 </filter>
1200 <filter>
1201 <type>gain</type>
1202 <gain>.2</gain>
1203 <input>/sim/model/lightmap/flood/factor</input>
1204 <output>/sim/model/c172p/lighting/flood-proc</output>
1205 </filter>
1206 <filter>
1207 <type>gain</type>
1208 <gain>.25</gain>
1209 <input>
1210 <property>/sim/model/c172p/lighting/courtesy</property>
1211 </input>
1212 <output>/sim/model/c172p/lighting/courtesy-proc</output>
1213 </filter>
1214 <filter>
1215 <type>gain</type>
1216 <gain>.25</gain>
1217 <input>
1218 <property>/controls/lighting/domeL</property>
1219 </input>
1220 <output>/sim/model/c172p/lighting/courtesy-proc-l-fg1000</output>
1221 </filter>
1222 <filter>
1223 <type>gain</type>
1224 <gain>.25</gain>
1225 <input>
1226 <property>/controls/lighting/domeR</property>
1227 </input>
1228 <output>/sim/model/c172p/lighting/courtesy-proc-r-fg1000</output>
1229 </filter>
1230 <filter>
1231 <type>gain</type>
1232 <gain>.35</gain>
1233 <input>
1234 <expression>
1235 <product>
1236 <table>
1237 <property>/sim/model/material/instruments/factor</property>
1238 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1239 <entry><ind>0.7</ind><dep>0.1</dep></entry>
1240 <entry><ind>1.0</ind><dep>1.0</dep></entry>
1241 </table>
1242 <difference>
1243 <value>1.6</value>
1244 <property>/rendering/scene/diffuse/red</property>
1245 </difference>
1246 </product>
1247 </expression>
1248 <min>0.0</min>
1249 <max>1.0</max>
1250 </input>
1251 <output>/sim/model/c172p/lighting/instrument-proc</output>
1252 </filter>
1253
1254 <filter>
1255 <name>FG1000 Instrument Procedural</name>
1256 <type>gain</type>
1257 <gain>.35</gain>
1258 <input>
1259 <expression>
1260 <product>
1261 <table>
1262 <property>/controls/lighting/stby</property>
1263 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1264 <entry><ind>0.7</ind><dep>0.1</dep></entry>
1265 <entry><ind>1.0</ind><dep>1.0</dep></entry>
1266 </table>
1267 <difference>
1268 <value>1.6</value>
1269 <property>/rendering/scene/diffuse/red</property>
1270 </difference>
1271 </product>
1272 </expression>
1273 <min>0.0</min>
1274 <max>1.0</max>
1275 </input>
1276 <output>/sim/model/c172p/lighting/instrument-proc-fg1000</output>
1277 </filter>
1278
1279 <filter>
1280 <name>Interior Glass Glare Factor Dome</name>
1281 <type>gain</type>
1282 <gain>1</gain>
1283 <input>
1284 <expression>
1285 <sum>
1286 <table>
1287 <property>/sim/model/lightmap/dome/factor</property>
1288 <entry><ind>0.0</ind><dep>0.1</dep></entry>
1289 <entry><ind>0.3</ind><dep>0.2</dep></entry>
1290 <entry><ind>1.0</ind><dep>0.9</dep></entry>
1291 </table>
1292 <property>/rendering/scene/diffuse/red</property>
1293 </sum>
1294 </expression>
1295 <min>0.1</min>
1296 <max>0.9</max>
1297 </input>
1298 <output>/sim/model/lightmap/dome/factor-glassglare</output>
1299 </filter>
1300 <filter>
1301 <name>Interior Glass Glare Factor Post</name>
1302 <type>gain</type>
1303 <gain>1</gain>
1304 <input>
1305 <expression>
1306 <sum>
1307 <table>
1308 <property>/controls/lighting/instruments-norm</property>
1309 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1310 <entry><ind>0.7</ind><dep>0.05</dep></entry>
1311 <entry><ind>1.0</ind><dep>0.1</dep></entry>
1312 </table>
1313 <property>/rendering/scene/diffuse/red</property>
1314 </sum>
1315 </expression>
1316 <min>0.0</min>
1317 <max>0.1</max>
1318 </input>
1319 <output>/sim/model/lightmap/post/factor-glassglare</output>
1320 </filter>
1321 <filter>
1322 <name>Interior Glass Glare Factor Flood</name>
1323 <type>gain</type>
1324 <gain>1</gain>
1325 <input>
1326 <expression>
1327 <sum>
1328 <table>
1329 <property>/controls/lighting/instruments-norm</property>
1330 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1331 <entry><ind>0.7</ind><dep>0.025</dep></entry>
1332 <entry><ind>1.0</ind><dep>0.05</dep></entry>
1333 </table>
1334 <property>/rendering/scene/diffuse/red</property>
1335 </sum>
1336 </expression>
1337 <min>0.0</min>
1338 <max>0.3</max>
1339 </input>
1340 <output>/sim/model/lightmap/flood/factor-glassglare</output>
1341 </filter>
1342 <filter>
1343 <name>Interior Glass Glare Factor Combined</name>
1344 <type>gain</type>
1345 <gain>1</gain>
1346 <input>
1347 <condition>
1348 <not>
1349 <property>/controls/panel/glass</property>
1350 </not>
1351 </condition>
1352 <expression>
1353 <sum>
1354 <property>/sim/model/lightmap/dome/factor-glassglare</property>
1355 <property>/sim/model/lightmap/post/factor-glassglare</property>
1356 <property>/sim/model/lightmap/flood/factor-glassglare</property>
1357 </sum>
1358 </expression>
1359 <min>0.1</min>
1360 <max>0.9</max>
1361 </input>
1362 <input>
1363 <condition>
1364 <property>/controls/panel/glass</property>
1365 </condition>
1366 <expression>
1367 <sum>
1368 <property>/sim/model/lightmap/dome/factor-glassglare</property>
1369 <sum>
1370 <table>
1371 <property>/instrumentation/FG1000/Lightmap</property>
1372 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1373 <entry><ind>0.7</ind><dep>0.05</dep></entry>
1374 <entry><ind>1.0</ind><dep>0.1</dep></entry>
1375 </table>
1376 <property>/rendering/scene/diffuse/red</property>
1377 </sum>
1378 <sum>
1379 <table>
1380 <property>/controls/lighting/swcb</property>
1381 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1382 <entry><ind>0.7</ind><dep>0.0125</dep></entry>
1383 <entry><ind>1.0</ind><dep>0.025</dep></entry>
1384 </table>
1385 <property>/rendering/scene/diffuse/red</property>
1386 </sum>
1387 <sum>
1388 <table>
1389 <property>/controls/lighting/stby</property>
1390 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1391 <entry><ind>0.7</ind><dep>0.025</dep></entry>
1392 <entry><ind>1.0</ind><dep>0.05</dep></entry>
1393 </table>
1394 <property>/rendering/scene/diffuse/red</property>
1395 </sum>
1396 <sum>
1397 <table>
1398 <property>/controls/lighting/pedestal</property>
1399 <entry><ind>0.0</ind><dep>0.0</dep></entry>
1400 <entry><ind>0.7</ind><dep>0.0125</dep></entry>
1401 <entry><ind>1.0</ind><dep>0.25</dep></entry>
1402 </table>
1403 <property>/rendering/scene/diffuse/red</property>
1404 </sum>
1405 </sum>
1406 </expression>
1407 <min>0.1</min>
1408 <max>0.9</max>
1409 </input>
1410 <output>/sim/model/lightmap/combined/factor-glassglare</output>
1411 </filter>
1412
1413 <logic>
1414 <name>Amphibious Panel Lights On/Off</name>
1415 <input>
1416 <and>
1417 <less-than>
1418 <property>/systems/electrical/outputs/gear-select</property>
1419 <value>31.5</value>
1420 </less-than>
1421 <greater-than>
1422 <property>/systems/electrical/outputs/gear-select</property>
1423 <value>20.0</value>
1424 </greater-than>
1425 </and>
1426 </input>
1427 <output>
1428 <property>/sim/model/c172p/lighting/gear-select</property>
1429 </output>
1430 </logic>
1431
1432 <logic>
1433 <name>Amphibious Advisory Lights On/Off</name>
1434 <input>
1435 <and>
1436 <less-than>
1437 <property>systems/electrical/outputs/gear-advisory</property>
1438 <value>31.5</value>
1439 </less-than>
1440 <greater-than>
1441 <property>/systems/electrical/outputs/gear-advisory</property>
1442 <value>20.0</value>
1443 </greater-than>
1444 </and>
1445 </input>
1446 <output>
1447 <property>/sim/model/c172p/lighting/gear-advisory</property>
1448 </output>
1449 </logic>
1450
1451 <filter>
1452 <name>Gear Glare Dim</name>
1453 <type>gain</type>
1454 <gain>1</gain>
1455 <input>
1456 <condition>
1457 <and>
1458 <property>/controls/lighting/gearled</property>
1459 <property>/sim/model/c172p/lighting/gear-advisory</property>
1460 </and>
1461 </condition>
1462 <value>.35</value>
1463 </input>
1464 <input>
1465 <condition>
1466 <and>
1467 <equals>
1468 <property>/controls/lighting/gearled</property>
1469 <value>0</value>
1470 </equals>
1471 <property>/sim/model/c172p/lighting/gear-select</property>
1472 </and>
1473 </condition>
1474 <value>.175</value>
1475 </input>
1476 <output>
1477 <property>/controls/lighting/factor-ledglare</property>
1478 </output>
1479 </filter>
1480 <filter>
1481 <name>Gear Led Dim</name>
1482 <type>gain</type>
1483 <gain>1</gain>
1484 <input>
1485 <condition>
1486 <and>
1487 <property>/controls/lighting/gearled</property>
1488 <property>/sim/model/c172p/lighting/gear-select</property>
1489 </and>
1490 </condition>
1491 <value>1</value>
1492 </input>
1493 <input>
1494 <condition>
1495 <and>
1496 <equals>
1497 <property>/controls/lighting/gearled</property>
1498 <value>0</value>
1499 </equals>
1500 <property>/sim/model/c172p/lighting/gear-select</property>
1501 </and>
1502 </condition>
1503 <value>.35</value>
1504 </input>
1505 <output>
1506 <property>/controls/lighting/factor-led</property>
1507 </output>
1508 </filter>
1509
1510 </PropertyList>