Debian Codegraph @

Aircraft/c172p/Systems/c172p-ground-effects.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!--
4
5 c172p damage effects for JSBSim.
6
7 Wayne Bragg/c172p-detailed 2015
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 -->
23
24 <system name="c172p ground effects">
25
26 <channel name="landing-gear">
27
28 <!-- Determine if snow on ground -->
29 <switch name="snow-possible">
30 <output>ground/snow-possible</output>
31 <default value="0"/>
32
33 <!-- No snow possible -->
34 <test logic="AND" value="0">
35 ground/solid EQ 1
36 /position/altitude-agl-m LT /environment/snow-level-m
37 </test>
38 <!-- Snow possible -->
39 <test logic="AND" value="1">
40 ground/solid EQ 1
41 /position/altitude-agl-m GT /environment/snow-level-m
42 </test>
43 </switch>
44
45 <!-- ================================================================== -->
46 <!-- Contact points landing gear and yellow sparks -->
47 <!-- ================================================================== -->
48
49 <fcs_function name="z-position-nose-gear">
50 <output>gear/unit[0]/z-position</output>
51 <function>
52 <ifthen>
53 <property>gear/unit[0]/broken</property>
54 <value>0.0</value>
55 <switch>
56 <property>bushkit</property>
57
58 <!-- Default/26"/36"/pontoon/amphibious/skis -->
59 <value>-20.3</value>
60 <value>-22.0</value>
61 <value>-22.0</value>
62 <value> 0.0</value>
63 <value> 0.0</value>
64 <value>-22.0</value>
65 </switch>
66 </ifthen>
67 </function>
68 </fcs_function>
69
70 <fcs_function name="z-position-ground-factor-nose-gear">
71 <output>gear/unit[0]/z-position</output>
72 <function>
73 <ifthen>
74 <p>gear/unit[0]/broken</p>
75 <p>gear/unit[0]/z-position</p>
76 <ifthen>
77 <not><p>ground/snow-possible</p></not>
78 <sum>
79 <p>gear/unit[0]/z-position</p>
80 <product>
81 <product>
82 <p>gear/unit[0]/rolling_friction-factor</p>
83 <v>2</v>
84 </product>
85 <switch>
86 <property>bushkit</property>
87
88 <!-- Default/26"/36"/pontoon/amphibious/skis -->
89 <value>0.175</value>
90 <value>0.025</value>
91 <value>0.02</value>
92 <value>0.0</value>
93 <value>0.0</value>
94 <value>0.02</value>
95 </switch>
96 </product>
97 </sum>
98 <ifthen>
99 <and>
100 <p>ground/snow-possible</p>
101 <or>
102 <gt>
103 <p>gear/unit[0]/rolling_friction-factor</p>
104 <v>2</v>
105 </gt>
106 <lt>
107 <p>gear/unit[0]/rolling_friction-factor</p>
108 <v>1</v>
109 </lt>
110 </or>
111 </and>
112 <sum>
113 <p>gear/unit[0]/z-position</p>
114 <product>
115 <product>
116 <p>/environment/surface/snow-thickness-factor</p>
117 <p>/environment/surface/snow-thickness-multiplier</p>
118 </product>
119 <switch>
120 <property>bushkit</property>
121
122 <!-- Default/26"/36"/pontoon/amphibious/skis -->
123 <value>0.175</value>
124 <value>0.15</value>
125 <value>0.13</value>
126 <value>0.0</value>
127 <value>0.0</value>
128 <value>0.008</value>
129 </switch>
130 </product>
131 </sum>
132 <p>gear/unit[0]/z-position</p>
133 </ifthen>
134 </ifthen>
135 </ifthen>
136 </function>
137 </fcs_function>
138
139 <fcs_function name="z-position-left-gear">
140 <output>gear/unit[1]/z-position</output>
141 <function>
142 <ifthen>
143 <property>gear/unit[1]/broken</property>
144 <value>0.0</value>
145 <switch>
146 <property>bushkit</property>
147
148 <!-- Default/26"/36"/pontoon/amphibious/skis -->
149 <value>-15.3</value>
150 <value>-20.0</value>
151 <value>-22.0</value>
152 <value> 0.0</value>
153 <value> 0.0</value>
154 <value>-22.0</value>
155 </switch>
156 </ifthen>
157 </function>
158 </fcs_function>
159
160 <fcs_function name="z-position-ground-factor-left-gear">
161 <output>gear/unit[1]/z-position</output>
162 <function>
163 <ifthen>
164 <p>gear/unit[1]/broken</p>
165 <p>gear/unit[1]/z-position</p>
166 <ifthen>
167 <not><p>ground/snow-possible</p></not>
168 <sum>
169 <p>gear/unit[1]/z-position</p>
170 <product>
171 <product>
172 <p>gear/unit[1]/rolling_friction-factor</p>
173 <v>2</v>
174 </product>
175 <switch>
176 <property>bushkit</property>
177
178 <!-- Default/26"/36"/pontoon/amphibious/skis -->
179 <value>0.15</value>
180 <value>0.020</value>
181 <value>0.015</value>
182 <value>0.0</value>
183 <value>0.0</value>
184 <value>0.015</value>
185 </switch>
186 </product>
187 </sum>
188 <ifthen>
189 <and>
190 <p>ground/snow-possible</p>
191 <or>
192 <gt>
193 <p>gear/unit[1]/rolling_friction-factor</p>
194 <v>2</v>
195 </gt>
196 <lt>
197 <p>gear/unit[1]/rolling_friction-factor</p>
198 <v>1</v>
199 </lt>
200 </or>
201 </and>
202 <sum>
203 <p>gear/unit[1]/z-position</p>
204 <product>
205 <product>
206 <p>/environment/surface/snow-thickness-factor</p>
207 <p>/environment/surface/snow-thickness-multiplier</p>
208 </product>
209 <switch>
210 <property>bushkit</property>
211
212 <!-- Default/26"/36"/pontoon/amphibious/skis -->
213 <value>0.15</value>
214 <value>0.13</value>
215 <value>0.11</value>
216 <value>0.0</value>
217 <value>0.0</value>
218 <value>0.008</value>
219 </switch>
220 </product>
221 </sum>
222 <p>gear/unit[1]/z-position</p>
223 </ifthen>
224 </ifthen>
225 </ifthen>
226 </function>
227 </fcs_function>
228
229 <fcs_function name="z-position-right-gear">
230 <output>gear/unit[2]/z-position</output>
231 <function>
232 <ifthen>
233 <property>gear/unit[2]/broken</property>
234 <value>0.0</value>
235 <switch>
236 <property>bushkit</property>
237
238 <!-- Default/26"/36"/pontoon/amphibious/skis -->
239 <value>-15.1</value>
240 <value>-20.0</value>
241 <value>-22.0</value>
242 <value> 0.0</value>
243 <value> 0.0</value>
244 <value>-22.0</value>
245 </switch>
246 </ifthen>
247 </function>
248 </fcs_function>
249
250 <fcs_function name="z-position-ground-factor-right-gear">
251 <output>gear/unit[2]/z-position</output>
252 <function>
253 <ifthen>
254 <p>gear/unit[2]/broken</p>
255 <p>gear/unit[2]/z-position</p>
256 <ifthen>
257 <not><p>ground/snow-possible</p></not>
258 <sum>
259 <p>gear/unit[2]/z-position</p>
260 <product>
261 <product>
262 <p>gear/unit[2]/rolling_friction-factor</p>
263 <v>2</v>
264 </product>
265 <switch>
266 <property>bushkit</property>
267
268 <!-- Default/26"/36"/pontoon/amphibious/skis -->
269 <value>0.15</value>
270 <value>0.020</value>
271 <value>0.015</value>
272 <value>0.0</value>
273 <value>0.0</value>
274 <value>0.015</value>
275 </switch>
276 </product>
277 </sum>
278 <ifthen>
279 <and>
280 <p>ground/snow-possible</p>
281 <or>
282 <gt>
283 <p>gear/unit[2]/rolling_friction-factor</p>
284 <v>2</v>
285 </gt>
286 <lt>
287 <p>gear/unit[2]/rolling_friction-factor</p>
288 <v>1</v>
289 </lt>
290 </or>
291 </and>
292 <sum>
293 <p>gear/unit[2]/z-position</p>
294 <product>
295 <product>
296 <p>/environment/surface/snow-thickness-factor</p>
297 <p>/environment/surface/snow-thickness-multiplier</p>
298 </product>
299 <switch>
300 <property>bushkit</property>
301
302 <!-- Default/26"/36"/pontoon/amphibious/skis -->
303 <value>0.15</value>
304 <value>0.13</value>
305 <value>0.11</value>
306 <value>0.0</value>
307 <value>0.0</value>
308 <value>0.008</value>
309 </switch>
310 </product>
311 </sum>
312 <p>gear/unit[2]/z-position</p>
313 </ifthen>
314 </ifthen>
315 </ifthen>
316 </function>
317 </fcs_function>
318
319 <fcs_function name="z-position-effect-nose-gear">
320 <output>contact/unit[6]/z-position</output>
321 <function>
322 <ifthen>
323 <property>gear/unit[0]/broken</property>
324 <switch>
325 <property>bushkit</property>
326
327 <!-- Default/26"/36"/pontoon/amphibious/skis -->
328 <value>-10.0</value>
329 <value>-18.5</value>
330 <value>-17.7</value>
331 <value> 0.0</value>
332 <value> 0.0</value>
333 <value>-23.0</value>
334 </switch>
335 <value>0.0</value>
336 </ifthen>
337 </function>
338 </fcs_function>
339
340 <fcs_function name="z-position-effect-left-gear">
341 <output>contact/unit[7]/z-position</output>
342 <function>
343 <ifthen>
344 <property>gear/unit[1]/broken</property>
345 <switch>
346 <property>bushkit</property>
347
348 <!-- Default/26"/36"/pontoon/amphibious/skis -->
349 <value> -9.5</value>
350 <value>-14.5</value>
351 <value>-16.0</value>
352 <value> 0.0</value>
353 <value> 0.0</value>
354 <value>-21.0</value>
355 </switch>
356 <value>0.0</value>
357 </ifthen>
358 </function>
359 </fcs_function>
360
361 <fcs_function name="z-position-effect-right-gear">
362 <output>contact/unit[8]/z-position</output>
363 <function>
364 <ifthen>
365 <property>gear/unit[2]/broken</property>
366 <switch>
367 <property>bushkit</property>
368
369 <!-- Default/26"/36"/pontoon/amphibious/skis -->
370 <value> -8.0</value>
371 <value>-15.5</value>
372 <value>-17.4</value>
373 <value> 0.0</value>
374 <value> 0.0</value>
375 <value>-21.0</value>
376 </switch>
377 <value>0.0</value>
378 </ifthen>
379 </function>
380 </fcs_function>
381
382 <!-- ================================================================== -->
383 <!-- Friction factors per gear changout for summer, winter or snow -->
384 <!-- ================================================================== -->
385
386 <!-- Normalize snow depth to a usable value 1 + (m-0.0)/(0.6-0.0)*(10-1) -->
387 <fcs_function name="normalized-snow-depth">
388 <output>ground/normalized-snow-depth</output>
389 <function>
390 <sum>
391 <product>
392 <quotient>
393 <difference>
394 <p>/environment/surface/snow-thickness-factor</p>
395 <v>0.0</v>
396 </difference>
397 <difference>
398 <v>0.6</v>
399 <v>0.0</v>
400 </difference>
401 </quotient>
402 <difference>
403 <v>50.0</v>
404 <v>1</v>
405 </difference>
406 </product>
407 <v>1.0</v>
408 </sum>
409 </function>
410 </fcs_function>
411
412 <!-- Normalize snow depth to needed value range (0.7 + (m-0.0)/(0.6-0.0)*(0.9999-0.7)) -->
413 <fcs_function name="normalized-ski-snow-depth">
414 <output>ground/normalized-snow-depth-ski</output>
415 <function>
416 <sum>
417 <product>
418 <quotient>
419 <difference>
420 <p>/environment/surface/snow-thickness-factor</p>
421 <v>0.0</v>
422 </difference>
423 <difference>
424 <v>0.6</v>
425 <v>0.0</v>
426 </difference>
427 </quotient>
428 <difference>
429 <v>0.9999</v>
430 <v>0.7</v>
431 </difference>
432 </product>
433 <v>0.7</v>
434 </sum>
435 </function>
436 </fcs_function>
437
438 <!-- factor of snow depth per gear type -->
439 <fcs_function name="snow-affected-friction">
440 <output>ground/snow_friction-factor</output>
441 <function>
442 <ifthen>
443 <and>
444 <le>
445 <p>ground/rolling_friction-factor</p>
446 <value>2</value>
447 </le>
448 <ge>
449 <p>ground/rolling_friction-factor</p>
450 <value>1</value>
451 </ge>
452 </and>
453 <value>1.0</value>
454 <ifthen>
455 <p>ground/snow-possible</p>
456 <switch>
457 <property>bushkit</property>
458 <product>
459 <v>1</v>
460 <p>ground/normalized-snow-depth</p>
461 </product>
462 <product>
463 <v>.95</v>
464 <p>ground/normalized-snow-depth</p>
465 </product>
466 <product>
467 <v>.9</v>
468 <p>ground/normalized-snow-depth</p>
469 </product>
470 <product>
471 <v>0</v>
472 <p>ground/normalized-snow-depth</p>
473 </product>
474 <product>
475 <v>.30</v>
476 <p>ground/normalized-snow-depth</p>
477 </product>
478 <p>ground/normalized-snow-depth-ski</p>
479 </switch>
480 <value>1.0</value>
481 </ifthen>
482 </ifthen>
483 </function>
484 </fcs_function>
485
486 <fcs_function name="static-friction-nose-gear">
487 <output>gear/unit[0]/static_friction_coeff</output>
488 <output>gear/unit[23]/static_friction_coeff</output>
489 <function>
490 <ifthen>
491 <p>gear/unit[0]/broken</p>
492 <p>gear/unit[0]/static_friction_coeff</p>
493 <!-- winter or above snow line -->
494 <ifthen>
495 <and>
496 <p>ground/snow-possible</p>
497 <p>/environment/surface/snow-thickness-factor</p>
498 <or>
499 <gt>
500 <p>gear/unit[0]/rolling_friction-factor</p>
501 <v>2</v>
502 </gt>
503 <lt>
504 <p>gear/unit[0]/rolling_friction-factor</p>
505 <v>1</v>
506 </lt>
507 </or>
508 </and>
509 <product>
510 <switch>
511 <property>bushkit</property>
512
513 <!-- Default/26"/36"/pontoon/amphibious/skis -->
514 <quotient>
515 <value>0.2</value>
516 <p>gear/unit[0]/static-friction-factor</p>
517 </quotient>
518 <quotient>
519 <value>0.2125</value>
520 <p>gear/unit[0]/static-friction-factor</p>
521 </quotient>
522 <quotient>
523 <value>0.225</value>
524 <p>gear/unit[0]/static-friction-factor</p>
525 </quotient>
526 <value>0.0</value>
527 <value>0.0</value>
528 <quotient>
529 <value>0.225</value>
530 <p>gear/unit[0]/static-friction-factor</p>
531 </quotient>
532 </switch>
533 <p>ground/snow_friction-factor</p>
534 </product>
535 <!-- not winter and not above snow line -->
536 <switch>
537 <property>bushkit</property>
538
539 <!-- Default/26"/36"/pontoon/amphibious/skis -->
540 <value>0.8</value> <!-- bogie 0-2 -->
541 <value>0.85</value> <!-- bogie 0-2 -->
542 <value>0.9</value> <!-- bogie 0-2 -->
543 <value>0.0</value> <!-- contact 13-18 -->
544 <value>0.0</value> <!-- bogie 19-22 -->
545 <value>0.9</value> <!-- bogie 23-25 -->
546 </switch>
547 </ifthen>
548 </ifthen>
549 </function>
550 </fcs_function>
551 <fcs_function name="dynamic-friction-nose-gear">
552 <output>gear/unit[0]/dynamic_friction_coeff</output>
553 <output>gear/unit[23]/dynamic_friction_coeff</output>
554 <function>
555 <ifthen>
556 <p>gear/unit[0]/broken</p>
557 <p>gear/unit[0]/dynamic_friction_coeff</p>
558 <!-- winter or above snow line -->
559 <ifthen>
560 <and>
561 <p>ground/snow-possible</p>
562 <p>/environment/surface/snow-thickness-factor</p>
563 <or>
564 <gt>
565 <p>gear/unit[0]/rolling_friction-factor</p>
566 <v>2</v>
567 </gt>
568 <lt>
569 <p>gear/unit[0]/rolling_friction-factor</p>
570 <v>1</v>
571 </lt>
572 </or>
573 </and>
574 <product>
575 <switch>
576 <property>bushkit</property>
577
578 <!-- Default/26"/36"/pontoon/amphibious/skis -->
579 <quotient>
580 <value>0.125</value>
581 <p>gear/unit[0]/static-friction-factor</p>
582 </quotient>
583 <quotient>
584 <value>0.1375</value>
585 <p>gear/unit[0]/static-friction-factor</p>
586 </quotient>
587 <quotient>
588 <value>0.15</value>
589 <p>gear/unit[0]/static-friction-factor</p>
590 </quotient>
591 <value>0.0</value>
592 <value>0.0</value>
593 <quotient>
594 <value>0.15</value>
595 <p>gear/unit[0]/static-friction-factor</p>
596 </quotient>
597 </switch>
598 <p>ground/snow_friction-factor</p>
599 </product>
600 <!-- not winter and not above snow line -->
601 <switch>
602 <property>bushkit</property>
603
604 <!-- Default/26"/36"/pontoon/amphibious/skis -->
605 <value>0.5</value>
606 <value>0.55</value>
607 <value>0.6</value>
608 <value>0.0</value>
609 <value>0.0</value>
610 <value>0.6</value>
611 </switch>
612 </ifthen>
613 </ifthen>
614 </function>
615 </fcs_function>
616 <fcs_function name="rolling-friction-nose-gear">
617 <output>gear/unit[0]/rolling_friction_coeff</output>
618 <output>gear/unit[23]/rolling_friction_coeff</output>
619 <function>
620 <ifthen>
621 <p>gear/unit[0]/broken</p>
622 <p>gear/unit[0]/rolling_friction_coeff</p>
623 <!-- winter or above snow line -->
624 <ifthen>
625 <and>
626 <p>ground/snow-possible</p>
627 <p>/environment/surface/snow-thickness-factor</p>
628 <or>
629 <gt>
630 <p>gear/unit[0]/rolling_friction-factor</p>
631 <v>2</v>
632 </gt>
633 <lt>
634 <p>gear/unit[0]/rolling_friction-factor</p>
635 <v>1</v>
636 </lt>
637 </or>
638 </and>
639 <product>
640 <switch>
641 <property>bushkit</property>
642
643 <!-- Default/26"/36"/pontoon/amphibious/skis -->
644 <quotient>
645 <value>0.006</value>
646 <p>gear/unit[0]/rolling_friction-factor</p>
647 </quotient>
648 <quotient>
649 <value>0.0045</value>
650 <p>gear/unit[0]/rolling_friction-factor</p>
651 </quotient>
652 <quotient>
653 <value>0.003</value>
654 <p>gear/unit[0]/rolling_friction-factor</p>
655 </quotient>
656 <value>0.0</value>
657 <value>0.0</value>
658 <quotient>
659 <value>0.003</value>
660 <p>gear/unit[0]/rolling_friction-factor</p>
661 </quotient>
662 </switch>
663 <p>ground/snow_friction-factor</p>
664 </product>
665 <!-- not winter and not above snow line -->
666 <switch>
667 <property>bushkit</property>
668
669 <!-- Default/26"/36"/pontoon/amphibious/skis -->
670 <value>0.02</value>
671 <value>0.015</value>
672 <value>0.01</value>
673 <value>0.0</value>
674 <value>0.0</value>
675 <value>0.01</value>
676 </switch>
677 </ifthen>
678 </ifthen>
679 </function>
680 </fcs_function>
681
682 <!-- Left gear friction factors -->
683 <fcs_function name="static-friction-left-gear">
684 <output>gear/unit[1]/static_friction_coeff</output>
685 <output>gear/unit[24]/static_friction_coeff</output>
686 <function>
687 <ifthen>
688 <p>gear/unit[1]/broken</p>
689 <p>gear/unit[1]/static_friction_coeff</p>
690 <!-- winter or above snow line -->
691 <ifthen>
692 <and>
693 <p>ground/snow-possible</p>
694 <p>/environment/surface/snow-thickness-factor</p>
695 <or>
696 <gt>
697 <p>gear/unit[1]/rolling_friction-factor</p>
698 <v>2</v>
699 </gt>
700 <lt>
701 <p>gear/unit[1]/rolling_friction-factor</p>
702 <v>1</v>
703 </lt>
704 </or>
705 </and>
706 <product>
707 <switch>
708 <property>bushkit</property>
709
710 <!-- Default/26"/36"/pontoon/amphibious/skis -->
711 <quotient>
712 <value>0.2</value>
713 <p>gear/unit[1]/static-friction-factor</p>
714 </quotient>
715 <quotient>
716 <value>0.2125</value>
717 <p>gear/unit[1]/static-friction-factor</p>
718 </quotient>
719 <quotient>
720 <value>0.225</value>
721 <p>gear/unit[1]/static-friction-factor</p>
722 </quotient>
723 <value>0.0</value>
724 <value>0.0</value>
725 <quotient>
726 <value>0.225</value>
727 <p>gear/unit[1]/static-friction-factor</p>
728 </quotient>
729 </switch>
730 <p>ground/snow_friction-factor</p>
731 </product>
732 <!-- not winter and not above snow line -->
733 <switch>
734 <property>bushkit</property>
735
736 <!-- Default/26"/36"/pontoon/amphibious/skis -->
737 <value>0.8</value>
738 <value>0.85</value>
739 <value>0.9</value>
740 <value>0.0</value>
741 <value>0.0</value>
742 <value>0.9</value>
743 </switch>
744 </ifthen>
745 </ifthen>
746 </function>
747 </fcs_function>
748 <fcs_function name="dynamic-friction-left-gear">
749 <output>gear/unit[1]/dynamic_friction_coeff</output>
750 <output>gear/unit[24]/dynamic_friction_coeff</output>
751 <function>
752 <ifthen>
753 <p>gear/unit[1]/broken</p>
754 <p>gear/unit[1]/dynamic_friction_coeff</p>
755 <!-- winter or above snow line -->
756 <ifthen>
757 <and>
758 <p>ground/snow-possible</p>
759 <p>/environment/surface/snow-thickness-factor</p>
760 <or>
761 <gt>
762 <p>gear/unit[1]/rolling_friction-factor</p>
763 <v>2</v>
764 </gt>
765 <lt>
766 <p>gear/unit[1]/rolling_friction-factor</p>
767 <v>1</v>
768 </lt>
769 </or>
770 </and>
771 <product>
772 <switch>
773 <property>bushkit</property>
774
775 <!-- Default/26"/36"/pontoon/amphibious/skis -->
776 <quotient>
777 <value>0.15</value>
778 <p>gear/unit[1]/static-friction-factor</p>
779 </quotient>
780 <quotient>
781 <value>0.20</value>
782 <p>gear/unit[1]/static-friction-factor</p>
783 </quotient>
784 <quotient>
785 <value>0.25</value>
786 <p>gear/unit[1]/static-friction-factor</p>
787 </quotient>
788 <value>0.0</value>
789 <value>0.0</value>
790 <quotient>
791 <value>0.25</value>
792 <p>gear/unit[1]/static-friction-factor</p>
793 </quotient>
794 </switch>
795 <p>ground/snow_friction-factor</p>
796 </product>
797 <!-- not winter and not above snow line -->
798 <switch>
799 <property>bushkit</property>
800
801 <!-- Default/26"/36"/pontoon/amphibious/skis -->
802 <value>0.5</value>
803 <value>0.55</value>
804 <value>0.6</value>
805 <value>0.0</value>
806 <value>0.0</value>
807 <value>0.6</value>
808 </switch>
809 </ifthen>
810 </ifthen>
811 </function>
812 </fcs_function>
813 <fcs_function name="rolling-friction-left-gear">
814 <output>gear/unit[1]/rolling_friction_coeff</output>
815 <output>gear/unit[24]/rolling_friction_coeff</output>
816 <function>
817 <ifthen>
818 <p>gear/unit[1]/broken</p>
819 <p>gear/unit[1]/rolling_friction_coeff</p>
820 <!-- winter or above snow line -->
821 <ifthen>
822 <and>
823 <p>ground/snow-possible</p>
824 <p>/environment/surface/snow-thickness-factor</p>
825 <or>
826 <gt>
827 <p>gear/unit[1]/rolling_friction-factor</p>
828 <v>2</v>
829 </gt>
830 <lt>
831 <p>gear/unit[1]/rolling_friction-factor</p>
832 <v>1</v>
833 </lt>
834 </or>
835 </and>
836 <product>
837 <switch>
838 <property>bushkit</property>
839
840 <!-- Default/26"/36"/pontoon/amphibious/skis -->
841 <quotient>
842 <value>0.006</value>
843 <p>gear/unit[1]/rolling_friction-factor</p>
844 </quotient>
845 <quotient>
846 <value>0.0045</value>
847 <p>gear/unit[1]/rolling_friction-factor</p>
848 </quotient>
849 <quotient>
850 <value>0.003</value>
851 <p>gear/unit[1]/rolling_friction-factor</p>
852 </quotient>
853 <value>0.0</value>
854 <value>0.0</value>
855 <quotient>
856 <value>0.003</value>
857 <p>gear/unit[1]/rolling_friction-factor</p>
858 </quotient>
859 </switch>
860 <p>ground/snow_friction-factor</p>
861 </product>
862 <!-- not winter and not above snow line -->
863 <switch>
864 <property>bushkit</property>
865
866 <!-- Default/26"/36"/pontoon/amphibious/skis -->
867 <value>0.02</value>
868 <value>0.015</value>
869 <value>0.01</value>
870 <value>0.0</value>
871 <value>0.0</value>
872 <value>0.01</value>
873 </switch>
874 </ifthen>
875 </ifthen>
876 </function>
877 </fcs_function>
878
879 <!-- Right gear friction factors -->
880 <fcs_function name="static-friction-right-gear">
881 <output>gear/unit[2]/static_friction_coeff</output>
882 <output>gear/unit[25]/static_friction_coeff</output>
883 <function>
884 <ifthen>
885 <p>gear/unit[2]/broken</p>
886 <p>gear/unit[2]/static_friction_coeff</p>
887 <!-- winter or above snow line -->
888 <ifthen>
889 <and>
890 <p>ground/snow-possible</p>
891 <p>/environment/surface/snow-thickness-factor</p>
892 <or>
893 <gt>
894 <p>gear/unit[2]/rolling_friction-factor</p>
895 <v>2</v>
896 </gt>
897 <lt>
898 <p>gear/unit[2]/rolling_friction-factor</p>
899 <v>1</v>
900 </lt>
901 </or>
902 </and>
903 <product>
904 <switch>
905 <property>bushkit</property>
906
907 <!-- Default/26"/36"/pontoon/amphibious/skis -->
908 <quotient>
909 <value>0.2</value>
910 <p>gear/unit[2]/static-friction-factor</p>
911 </quotient>
912 <quotient>
913 <value>0.2125</value>
914 <p>gear/unit[2]/static-friction-factor</p>
915 </quotient>
916 <quotient>
917 <value>0.225</value>
918 <p>gear/unit[2]/static-friction-factor</p>
919 </quotient>
920 <value>0.0</value>
921 <value>0.0</value>
922 <quotient>
923 <value>0.225</value>
924 <p>gear/unit[2]/static-friction-factor</p>
925 </quotient>
926 </switch>
927 <p>ground/snow_friction-factor</p>
928 </product>
929 <!-- not winter and not above snow line -->
930 <switch>
931 <property>bushkit</property>
932
933 <!-- Default/26"/36"/pontoon/amphibious/skis -->
934 <value>0.8</value>
935 <value>0.85</value>
936 <value>0.9</value>
937 <value>0.0</value>
938 <value>0.0</value>
939 <value>0.9</value>
940 </switch>
941 </ifthen>
942 </ifthen>
943 </function>
944 </fcs_function>
945 <fcs_function name="dynamic-friction-right-gear">
946 <output>gear/unit[2]/dynamic_friction_coeff</output>
947 <output>gear/unit[25]/dynamic_friction_coeff</output>
948 <function>
949 <ifthen>
950 <p>gear/unit[2]/broken</p>
951 <p>gear/unit[2]/dynamic_friction_coeff</p>
952 <!-- winter or above snow line -->
953 <ifthen>
954 <and>
955 <p>ground/snow-possible</p>
956 <p>/environment/surface/snow-thickness-factor</p>
957 <or>
958 <gt>
959 <p>gear/unit[2]/rolling_friction-factor</p>
960 <v>2</v>
961 </gt>
962 <lt>
963 <p>gear/unit[2]/rolling_friction-factor</p>
964 <v>1</v>
965 </lt>
966 </or>
967 </and>
968 <product>
969 <switch>
970 <property>bushkit</property>
971
972 <!-- Default/26"/36"/pontoon/amphibious/skis -->
973 <quotient>
974 <value>0.15</value>
975 <p>gear/unit[2]/static-friction-factor</p>
976 </quotient>
977 <quotient>
978 <value>0.20</value>
979 <p>gear/unit[2]/static-friction-factor</p>
980 </quotient>
981 <quotient>
982 <value>0.25</value>
983 <p>gear/unit[2]/static-friction-factor</p>
984 </quotient>
985 <value>0.0</value>
986 <value>0.0</value>
987 <quotient>
988 <value>0.25</value>
989 <p>gear/unit[2]/static-friction-factor</p>
990 </quotient>
991 </switch>
992 <p>ground/snow_friction-factor</p>
993 </product>
994 <!-- not winter and not above snow line -->
995 <switch>
996 <property>bushkit</property>
997
998 <!-- Default/26"/36"/pontoon/amphibious/skis -->
999 <value>0.5</value>
1000 <value>0.55</value>
1001 <value>0.6</value>
1002 <value>0.0</value>
1003 <value>0.0</value>
1004 <value>0.6</value>
1005 </switch>
1006 </ifthen>
1007 </ifthen>
1008 </function>
1009 </fcs_function>
1010 <fcs_function name="rolling-friction-right-gear">
1011 <output>gear/unit[2]/rolling_friction_coeff</output>
1012 <output>gear/unit[25]/rolling_friction_coeff</output>
1013 <function>
1014 <ifthen>
1015 <p>gear/unit[2]/broken</p>
1016 <p>gear/unit[2]/rolling_friction_coeff</p>
1017 <!-- winter or above snow line -->
1018 <ifthen>
1019 <and>
1020 <p>ground/snow-possible</p>
1021 <p>/environment/surface/snow-thickness-factor</p>
1022 <or>
1023 <gt>
1024 <p>gear/unit[2]/rolling_friction-factor</p>
1025 <v>2</v>
1026 </gt>
1027 <lt>
1028 <p>gear/unit[2]/rolling_friction-factor</p>
1029 <v>1</v>
1030 </lt>
1031 </or>
1032 </and>
1033 <product>
1034 <switch>
1035 <property>bushkit</property>
1036
1037 <!-- Default/26"/36"/pontoon/amphibious/skis -->
1038 <quotient>
1039 <value>0.006</value>
1040 <p>gear/unit[2]/rolling_friction-factor</p>
1041 </quotient>
1042 <quotient>
1043 <value>0.0045</value>
1044 <p>gear/unit[2]/rolling_friction-factor</p>
1045 </quotient>
1046 <quotient>
1047 <value>0.003</value>
1048 <p>gear/unit[2]/rolling_friction-factor</p>
1049 </quotient>
1050 <value>0.0</value>
1051 <value>0.0</value>
1052 <quotient>
1053 <value>0.003</value>
1054 <p>gear/unit[2]/rolling_friction-factor</p>
1055 </quotient>
1056 </switch>
1057 <p>ground/snow_friction-factor</p>
1058 </product>
1059 <!-- not winter and not above snow line -->
1060 <switch>
1061 <property>bushkit</property>
1062
1063 <!-- Default/26"/36"/pontoon/amphibious/skis -->
1064 <value>0.02</value>
1065 <value>0.015</value>
1066 <value>0.01</value>
1067 <value>0.0</value>
1068 <value>0.0</value>
1069 <value>0.01</value>
1070 </switch>
1071 </ifthen>
1072 </ifthen>
1073 </function>
1074 </fcs_function>
1075
1076 <!-- ================================================================== -->
1077 <!-- Contact points wing tips -->
1078 <!-- ================================================================== -->
1079
1080 <switch name="z-position-left-wing-tip">
1081 <output>contact/unit[4]/z-position</output>
1082 <default value="50"/>
1083
1084 <test logic="AND" value="-8">
1085 crash EQ 1
1086 </test>
1087
1088 <!-- -10 when on/above water -->
1089 <test logic="AND" value="-10">
1090 contact/unit[4]/solid EQ 0
1091 </test>
1092
1093 <test logic="AND" value="40">
1094 wing-damage/left-wing EQ 1.0
1095 contact/unit[12]/WOW EQ 1
1096 </test>
1097 </switch>
1098
1099 <switch name="z-position-right-wing-tip">
1100 <output>contact/unit[5]/z-position</output>
1101 <default value="50"/>
1102
1103 <test logic="AND" value="-8">
1104 crash EQ 1
1105 </test>
1106
1107 <!-- -10 when on/above water -->
1108 <test logic="AND" value="-10">
1109 contact/unit[5]/solid EQ 0
1110 </test>
1111
1112 <test logic="AND" value="40">
1113 wing-damage/right-wing EQ 1.0
1114 contact/unit[12]/WOW EQ 1
1115 </test>
1116 </switch>
1117
1118 <!-- ================================================================== -->
1119 <!-- Contact points top of fuselage and empennage -->
1120 <!-- ================================================================== -->
1121
1122 <switch name="z-position-nose-top">
1123 <output>contact/unit[9]/z-position</output>
1124 <default value="35"/>
1125
1126 <test logic="AND" value="-25">
1127 contact/unit[9]/solid EQ 0
1128 </test>
1129 </switch>
1130
1131 <switch name="z-position-nose">
1132 <output>contact/unit[10]/z-position</output>
1133 <default value="8"/>
1134
1135 <test logic="AND" value="-25">
1136 contact/unit[10]/solid EQ 0
1137 </test>
1138 </switch>
1139
1140 <switch name="z-position-cockpit-top">
1141 <output>contact/unit[11]/z-position</output>
1142 <default value="60"/>
1143
1144 <test logic="AND" value="-25">
1145 contact/unit[11]/solid EQ 0
1146 </test>
1147 </switch>
1148
1149 <switch name="z-position-top-vertical-stabilizer">
1150 <output>contact/unit[12]/z-position</output>
1151 <default value="90"/>
1152
1153 <!-- 160 puts tail higher in the air when upside down -->
1154 <test logic="AND" value="160">
1155 contact/unit[12]/solid EQ 0
1156 </test>
1157 </switch>
1158
1159 <!-- ================================================================== -->
1160 <!-- Contact points skis -->
1161 <!-- ================================================================== -->
1162
1163 <switch name="z-position-nose-ski">
1164 <output>gear/unit[23]/z-position</output>
1165 <default value="0"/>
1166
1167 <test logic="AND" value="-22">
1168 bushkit EQ 5
1169 gear/unit[0]/broken EQ 0
1170 </test>
1171
1172 </switch>
1173
1174 <switch name="z-position-left-ski">
1175 <output>gear/unit[24]/z-position</output>
1176 <default value="0"/>
1177
1178 <test logic="AND" value="-24">
1179 bushkit EQ 5
1180 gear/unit[1]/broken EQ 0
1181 </test>
1182
1183 </switch>
1184
1185 <switch name="z-position-right-ski">
1186 <output>gear/unit[25]/z-position</output>
1187 <default value="0"/>
1188
1189 <test logic="AND" value="-24">
1190 bushkit EQ 5
1191 gear/unit[2]/broken EQ 0
1192 </test>
1193
1194 </switch>
1195
1196 <!-- ================================================================== -->
1197 <!-- Contact points pontoons snow -->
1198 <!-- ================================================================== -->
1199
1200 <fcs_function name="z-position-ground-factor-left-forward-pontoons">
1201 <output>contact/unit[13]/z-position</output>
1202 <function>
1203 <ifthen>
1204 <and>
1205 <p>ground/snow-possible</p>
1206 <or>
1207 <gt>
1208 <p>contact/unit[13]/rolling_friction-factor</p>
1209 <v>2</v>
1210 </gt>
1211 <lt>
1212 <p>contact/unit[13]/rolling_friction-factor</p>
1213 <v>1</v>
1214 </lt>
1215 </or>
1216 </and>
1217 <sum>
1218 <p>contact/unit[13]/z-position</p>
1219 <product>
1220 <product>
1221 <p>/environment/surface/snow-thickness-factor</p>
1222 <p>/environment/surface/snow-thickness-multiplier</p>
1223 </product>
1224 <value>0.02</value>
1225 </product>
1226 </sum>
1227 <p>contact/unit[13]/z-position</p>
1228 </ifthen>
1229 </function>
1230 </fcs_function>
1231 <fcs_function name="z-position-ground-factor-left-aft-pontoons">
1232 <output>contact/unit[15]/z-position</output>
1233 <function>
1234 <ifthen>
1235 <and>
1236 <p>ground/snow-possible</p>
1237 <or>
1238 <gt>
1239 <p>contact/unit[15]/rolling_friction-factor</p>
1240 <v>2</v>
1241 </gt>
1242 <lt>
1243 <p>contact/unit[15]/rolling_friction-factor</p>
1244 <v>1</v>
1245 </lt>
1246 </or>
1247 </and>
1248 <sum>
1249 <p>contact/unit[15]/z-position</p>
1250 <product>
1251 <product>
1252 <p>/environment/surface/snow-thickness-factor</p>
1253 <p>/environment/surface/snow-thickness-multiplier</p>
1254 </product>
1255 <value>0.04</value>
1256 </product>
1257 </sum>
1258 <p>contact/unit[15]/z-position</p>
1259 </ifthen>
1260 </function>
1261 </fcs_function>
1262 <fcs_function name="z-position-ground-factor-left-aft-pontoons">
1263 <output>contact/unit[17]/z-position</output>
1264 <function>
1265 <ifthen>
1266 <and>
1267 <p>ground/snow-possible</p>
1268 <or>
1269 <gt>
1270 <p>contact/unit[17]/rolling_friction-factor</p>
1271 <v>2</v>
1272 </gt>
1273 <lt>
1274 <p>contact/unit[17]/rolling_friction-factor</p>
1275 <v>1</v>
1276 </lt>
1277 </or>
1278 </and>
1279 <sum>
1280 <p>contact/unit[17]/z-position</p>
1281 <product>
1282 <product>
1283 <p>/environment/surface/snow-thickness-factor</p>
1284 <p>/environment/surface/snow-thickness-multiplier</p>
1285 </product>
1286 <value>0.04</value>
1287 </product>
1288 </sum>
1289 <p>contact/unit[17]/z-position</p>
1290 </ifthen>
1291 </function>
1292 </fcs_function>
1293
1294 <fcs_function name="z-position-ground-factor-right-forward-pontoon">
1295 <output>contact/unit[14]/z-position</output>
1296 <function>
1297 <ifthen>
1298 <and>
1299 <p>ground/snow-possible</p>
1300 <or>
1301 <gt>
1302 <p>contact/unit[14]/rolling_friction-factor</p>
1303 <v>2</v>
1304 </gt>
1305 <lt>
1306 <p>contact/unit[14]/rolling_friction-factor</p>
1307 <v>1</v>
1308 </lt>
1309 </or>
1310 </and>
1311 <sum>
1312 <p>contact/unit[14]/z-position</p>
1313 <product>
1314 <product>
1315 <p>/environment/surface/snow-thickness-factor</p>
1316 <p>/environment/surface/snow-thickness-multiplier</p>
1317 </product>
1318 <value>0.02</value>
1319 </product>
1320 </sum>
1321 <p>contact/unit[14]/z-position</p>
1322 </ifthen>
1323 </function>
1324 </fcs_function>
1325 <fcs_function name="z-position-ground-factor-right-aft-pontoon">
1326 <output>contact/unit[16]/z-position</output>
1327 <function>
1328 <ifthen>
1329 <and>
1330 <p>ground/snow-possible</p>
1331 <or>
1332 <gt>
1333 <p>contact/unit[16]/rolling_friction-factor</p>
1334 <v>2</v>
1335 </gt>
1336 <lt>
1337 <p>contact/unit[16]/rolling_friction-factor</p>
1338 <v>1</v>
1339 </lt>
1340 </or>
1341 </and>
1342 <sum>
1343 <p>contact/unit[16]/z-position</p>
1344 <product>
1345 <product>
1346 <p>/environment/surface/snow-thickness-factor</p>
1347 <p>/environment/surface/snow-thickness-multiplier</p>
1348 </product>
1349 <value>0.04</value>
1350 </product>
1351 </sum>
1352 <p>contact/unit[16]/z-position</p>
1353 </ifthen>
1354 </function>
1355 </fcs_function>
1356 <fcs_function name="z-position-ground-factor-right-aft-pontoon">
1357 <output>contact/unit[18]/z-position</output>
1358 <function>
1359 <ifthen>
1360 <and>
1361 <p>ground/snow-possible</p>
1362 <or>
1363 <gt>
1364 <p>contact/unit[18]/rolling_friction-factor</p>
1365 <v>2</v>
1366 </gt>
1367 <lt>
1368 <p>contact/unit[18]/rolling_friction-factor</p>
1369 <v>1</v>
1370 </lt>
1371 </or>
1372 </and>
1373 <sum>
1374 <p>contact/unit[18]/z-position</p>
1375 <product>
1376 <product>
1377 <p>/environment/surface/snow-thickness-factor</p>
1378 <p>/environment/surface/snow-thickness-multiplier</p>
1379 </product>
1380 <value>0.04</value>
1381 </product>
1382 </sum>
1383 <p>contact/unit[18]/z-position</p>
1384 </ifthen>
1385 </function>
1386 </fcs_function>
1387
1388 <!-- ================================================================== -->
1389 <!-- Contact points amphibious -->
1390 <!-- ================================================================== -->
1391
1392 <switch name="z-position-left-fwd-pontoon">
1393 <output>gear/unit[19]/z-position</output>
1394 <default value="0"/>
1395
1396 <test logic="AND" value="-55">
1397 bushkit EQ 4
1398 </test>
1399 </switch>
1400
1401 <fcs_function name="z-position-ground-factor-left-fwd-amphibious">
1402 <output>gear/unit[19]/z-position</output>
1403 <function>
1404 <ifthen>
1405 <and>
1406 <p>ground/snow-possible</p>
1407 <or>
1408 <gt>
1409 <p>gear/unit[19]/rolling_friction-factor</p>
1410 <v>2</v>
1411 </gt>
1412 <lt>
1413 <p>gear/unit[19]/rolling_friction-factor</p>
1414 <v>1</v>
1415 </lt>
1416 </or>
1417 </and>
1418 <sum>
1419 <p>gear/unit[19]/z-position</p>
1420 <product>
1421 <product>
1422 <p>/environment/surface/snow-thickness-factor</p>
1423 <p>/environment/surface/snow-thickness-multiplier</p>
1424 </product>
1425 <value>0.07</value>
1426 </product>
1427 </sum>
1428 <p>gear/unit[19]/z-position</p>
1429 </ifthen>
1430 </function>
1431 </fcs_function>
1432
1433 <switch name="z-position-right-fwd-pontoon">
1434 <output>gear/unit[20]/z-position</output>
1435 <default value="0"/>
1436
1437 <test logic="AND" value="-54.5">
1438 bushkit EQ 4
1439 </test>
1440 </switch>
1441
1442 <fcs_function name="z-position-ground-factor-right-fwd-amphibious">
1443 <output>gear/unit[20]/z-position</output>
1444 <function>
1445 <ifthen>
1446 <and>
1447 <p>ground/snow-possible</p>
1448 <or>
1449 <gt>
1450 <p>gear/unit[20]/rolling_friction-factor</p>
1451 <v>2</v>
1452 </gt>
1453 <lt>
1454 <p>gear/unit[20]/rolling_friction-factor</p>
1455 <v>1</v>
1456 </lt>
1457 </or>
1458 </and>
1459 <sum>
1460 <p>gear/unit[20]/z-position</p>
1461 <product>
1462 <product>
1463 <p>/environment/surface/snow-thickness-factor</p>
1464 <p>/environment/surface/snow-thickness-multiplier</p>
1465 </product>
1466 <value>0.07</value>
1467 </product>
1468 </sum>
1469 <p>gear/unit[20]/z-position</p>
1470 </ifthen>
1471 </function>
1472 </fcs_function>
1473
1474 <switch name="z-position-left-aft-pontoon">
1475 <output>gear/unit[21]/z-position</output>
1476 <default value="0"/>
1477
1478 <test logic="AND" value="-52.1">
1479 bushkit EQ 4
1480 </test>
1481 </switch>
1482
1483 <fcs_function name="z-position-ground-factor-left-aft-amphibious">
1484 <output>gear/unit[21]/z-position</output>
1485 <function>
1486 <ifthen>
1487 <and>
1488 <p>ground/snow-possible</p>
1489 <or>
1490 <gt>
1491 <p>gear/unit[21]/rolling_friction-factor</p>
1492 <v>2</v>
1493 </gt>
1494 <lt>
1495 <p>gear/unit[21]/rolling_friction-factor</p>
1496 <v>1</v>
1497 </lt>
1498 </or>
1499 </and>
1500 <sum>
1501 <p>gear/unit[21]/z-position</p>
1502 <product>
1503 <product>
1504 <p>/environment/surface/snow-thickness-factor</p>
1505 <p>/environment/surface/snow-thickness-multiplier</p>
1506 </product>
1507 <value>0.08</value>
1508 </product>
1509 </sum>
1510 <p>gear/unit[21]/z-position</p>
1511 </ifthen>
1512 </function>
1513 </fcs_function>
1514
1515 <switch name="z-position-right-aft-pontoon">
1516 <output>gear/unit[22]/z-position</output>
1517 <default value="0"/>
1518
1519 <test logic="AND" value="-52.1">
1520 bushkit EQ 4
1521 </test>
1522 </switch>
1523
1524 <fcs_function name="z-position-ground-factor-right-aft-amphibious">
1525 <output>gear/unit[22]/z-position</output>
1526 <function>
1527 <ifthen>
1528 <and>
1529 <p>ground/snow-possible</p>
1530 <or>
1531 <gt>
1532 <p>gear/unit[22]/rolling_friction-factor</p>
1533 <v>2</v>
1534 </gt>
1535 <lt>
1536 <p>gear/unit[22]/rolling_friction-factor</p>
1537 <v>1</v>
1538 </lt>
1539 </or>
1540 </and>
1541 <sum>
1542 <p>gear/unit[22]/z-position</p>
1543 <product>
1544 <product>
1545 <p>/environment/surface/snow-thickness-factor</p>
1546 <p>/environment/surface/snow-thickness-multiplier</p>
1547 </product>
1548 <value>0.08</value>
1549 </product>
1550 </sum>
1551 <p>gear/unit[22]/z-position</p>
1552 </ifthen>
1553 </function>
1554 </fcs_function>
1555
1556 </channel>
1557
1558 <channel name="groundeffects">
1559
1560 <switch name="gear-spin-nose">
1561 <output>gear/gear-spin-nose</output>
1562 <default value="53"/>
1563 <test logic="OR" value="41">
1564 bushkit EQ 1
1565 bushkit EQ 2
1566 bushkit EQ 5
1567 </test>
1568 </switch>
1569
1570 <switch name="gear-spin-left">
1571 <output>gear/gear-spin-left</output>
1572 <default value="53"/>
1573 <test logic="OR" value="0">
1574 /controls/gear/brake-parking EQ 1
1575 /controls/gear/brake-left GT 0.95
1576 </test>
1577 <test logic="OR" value="24">
1578 bushkit EQ 2
1579 bushkit EQ 5
1580 </test>
1581 <test logic="OR" value="29">
1582 bushkit EQ 1
1583 </test>
1584 </switch>
1585
1586 <switch name="gear-spin-right">
1587 <output>gear/gear-spin-right</output>
1588 <default value="53"/>
1589 <test logic="OR" value="0">
1590 /controls/gear/brake-parking EQ 1
1591 /controls/gear/brake-right GT 0.95
1592 </test>
1593 <test logic="OR" value="24">
1594 bushkit EQ 2
1595 bushkit EQ 5
1596 </test>
1597 <test logic="OR" value="29">
1598 bushkit EQ 1
1599 </test>
1600 </switch>
1601
1602 <fcs_function name="gear/gear-burn-left">
1603 <function>
1604 <product>
1605 <or>
1606 <property>/gear/gear[1]/wow</property>
1607 <property>/gear/gear[20]/wow</property>
1608 </or>
1609 <property>/velocities/groundspeed-kt</property>
1610 <property>ground/solid</property>
1611 <product>
1612 <or>
1613 <property>/controls/gear/brake-parking</property>
1614 <eq>
1615 <property>/controls/gear/brake-left</property>
1616 <value>1</value>
1617 </eq>
1618 </or>
1619 <value>10</value>
1620 </product>
1621 </product>
1622 </function>
1623 </fcs_function>
1624
1625 <fcs_function name="gear/gear-burn-right">
1626 <function>
1627 <product>
1628 <or>
1629 <property>/gear/gear[2]/wow</property>
1630 <property>/gear/gear[22]/wow</property>
1631 </or>
1632 <property>/velocities/groundspeed-kt</property>
1633 <property>ground/solid</property>
1634 <product>
1635 <or>
1636 <property>/controls/gear/brake-parking</property>
1637 <eq>
1638 <property>/controls/gear/brake-right</property>
1639 <value>1</value>
1640 </eq>
1641 </or>
1642 <value>10</value>
1643 </product>
1644 </product>
1645 </function>
1646 </fcs_function>
1647
1648 <switch name="gear-on-pavement">
1649 <output>gear/on-pavement</output>
1650 <default value="0"/>
1651 <test logic="OR" value="1">
1652 ground/bumpiness LT 0.02
1653 </test>
1654 </switch>
1655
1656 <fcs_function name="gear/gear-screech">
1657 <function>
1658 <product>
1659 <property>gear/on-pavement</property>
1660 <or>
1661 <gt>
1662 <property>gear/gear-burn-left</property>
1663 <value>0</value>
1664 </gt>
1665 <gt>
1666 <property>gear/gear-burn-right</property>
1667 <value>0</value>
1668 </gt>
1669 </or>
1670 <property>/velocities/groundspeed-kt</property>
1671 </product>
1672 </function>
1673 </fcs_function>
1674
1675 <fcs_function name="gear/gear-drag">
1676 <function>
1677 <product>
1678 <not>
1679 <property>gear/on-pavement</property>
1680 </not>
1681 <or>
1682 <gt>
1683 <property>gear/gear-burn-left</property>
1684 <value>0</value>
1685 </gt>
1686 <gt>
1687 <property>gear/gear-burn-right</property>
1688 <value>0</value>
1689 </gt>
1690 </or>
1691 <property>/velocities/groundspeed-kt</property>
1692 </product>
1693 </function>
1694 </fcs_function>
1695
1696 <fcs_function name="ground/tail-ground-effect-speed-kt">
1697 <function>
1698 <product>
1699 <property>/fdm/jsbsim/contact/unit[3]/WOW</property>
1700 <property>/fdm/jsbsim/ground/solid</property>
1701 <property>/velocities/groundspeed-kt</property>
1702 </product>
1703 </function>
1704 </fcs_function>
1705
1706 <fcs_function name="ground/left-wing-ground-effect-speed-kt">
1707 <function>
1708 <product>
1709 <property>/fdm/jsbsim/contact/unit[4]/WOW</property>
1710 <property>/fdm/jsbsim/ground/solid</property>
1711 <property>/velocities/groundspeed-kt</property>
1712 <eq>
1713 <property>/fdm/jsbsim/wing-damage/left-wing</property>
1714 <value>0.0</value>
1715 </eq>
1716 </product>
1717 </function>
1718 </fcs_function>
1719
1720 <fcs_function name="ground/right-wing-ground-effect-speed-kt">
1721 <function>
1722 <product>
1723 <property>/fdm/jsbsim/contact/unit[5]/WOW</property>
1724 <property>/fdm/jsbsim/ground/solid</property>
1725 <property>/velocities/groundspeed-kt</property>
1726 <eq>
1727 <property>/fdm/jsbsim/wing-damage/right-wing</property>
1728 <value>0.0</value>
1729 </eq>
1730 </product>
1731 </function>
1732 </fcs_function>
1733
1734 <fcs_function name="ground/nose-gear-ground-effect-speed-kt">
1735 <function>
1736 <product>
1737 <property>/fdm/jsbsim/contact/unit[6]/WOW</property>
1738 <property>/gear/gear[0]/rollspeed-ms</property>
1739 <value>1.94384449</value><!-- m/s to knots -->
1740 </product>
1741 </function>
1742 </fcs_function>
1743
1744 <fcs_function name="ground/left-gear-ground-effect-speed-kt">
1745 <function>
1746 <product>
1747 <property>/fdm/jsbsim/contact/unit[7]/WOW</property>
1748 <property>/gear/gear[1]/rollspeed-ms</property>
1749 <value>1.94384449</value><!-- m/s to knots -->
1750 </product>
1751 </function>
1752 </fcs_function>
1753
1754 <fcs_function name="ground/right-gear-ground-effect-speed-kt">
1755 <function>
1756 <product>
1757 <property>/fdm/jsbsim/contact/unit[8]/WOW</property>
1758 <property>/gear/gear[2]/rollspeed-ms</property>
1759 <value>1.94384449</value><!-- m/s to knots -->
1760 </product>
1761 </function>
1762 </fcs_function>
1763
1764 <!-- touchdown smoke not damage-->
1765 <fcs_function name="ground/nose-tyre-smoke-ground-effect-speed-kt">
1766 <function>
1767 <or>
1768 <property>/gear/gear[0]/tyre-smoke</property>
1769 <product>
1770 <property>/gear/gear[0]/wow</property>
1771 <gt>
1772 <property>/velocities/groundspeed-kt</property>
1773 <value>20.0</value>
1774 </gt>
1775 <gt>
1776 <property>/fdm/jsbsim/ground/rolling_friction-factor</property>
1777 <value>1</value>
1778 </gt>
1779 </product>
1780 </or>
1781 </function>
1782 </fcs_function>
1783
1784 <fcs_function name="ground/left-tyre-smoke-ground-effect-speed-kt">
1785 <function>
1786 <or>
1787 <property>/gear/gear[1]/tyre-smoke</property>
1788 <product>
1789 <property>/gear/gear[1]/wow</property>
1790 <gt>
1791 <property>/velocities/groundspeed-kt</property>
1792 <value>20.0</value>
1793 </gt>
1794 <gt>
1795 <property>/fdm/jsbsim/ground/rolling_friction-factor</property>
1796 <value>1</value>
1797 </gt>
1798 </product>
1799 </or>
1800 </function>
1801 </fcs_function>
1802
1803 <fcs_function name="ground/right-tyre-smoke-ground-effect-speed-kt">
1804 <function>
1805 <or>
1806 <property>/gear/gear[2]/tyre-smoke</property>
1807 <product>
1808 <property>/gear/gear[2]/wow</property>
1809 <gt>
1810 <property>/velocities/groundspeed-kt</property>
1811 <value>20.0</value>
1812 </gt>
1813 <gt>
1814 <property>/fdm/jsbsim/ground/rolling_friction-factor</property>
1815 <value>1</value>
1816 </gt>
1817 </product>
1818 </or>
1819 </function>
1820 </fcs_function>
1821
1822 </channel>
1823
1824 <channel name="tiedowns">
1825
1826 <fcs_function name="tiedown-left-x">
1827 <output>external_reactions/tiedown-left/x</output>
1828 <function>
1829 <sin>
1830 <toradians>
1831 <property>/sim/model/c172p/tiedowns/left/heading-deg</property>
1832 </toradians>
1833 </sin>
1834 </function>
1835 </fcs_function>
1836
1837 <fcs_function name="tiedown-left-y">
1838 <output>external_reactions/tiedown-left/y</output>
1839 <function>
1840 <product>
1841 <value>-1</value>
1842 <cos>
1843 <toradians>
1844 <property>/sim/model/c172p/tiedowns/left/heading-deg</property>
1845 </toradians>
1846 </cos>
1847 </product>
1848 </function>
1849 </fcs_function>
1850
1851 <fcs_function name="tiedown-left-z">
1852 <output>external_reactions/tiedown-left/z</output>
1853 <function>
1854 <product>
1855 <value>-1</value>
1856 <sin>
1857 <toradians>
1858 <property>/sim/model/c172p/tiedowns/left/pitch-deg</property>
1859 </toradians>
1860 </sin>
1861 </product>
1862 </function>
1863 </fcs_function>
1864
1865 <fcs_function name="tiedown-right-x">
1866 <output>external_reactions/tiedown-right/x</output>
1867 <function>
1868 <product>
1869 <value>-1</value>
1870 <sin>
1871 <toradians>
1872 <property>/sim/model/c172p/tiedowns/right/heading-deg</property>
1873 </toradians>
1874 </sin>
1875 </product>
1876 </function>
1877 </fcs_function>
1878
1879 <fcs_function name="tiedown-right-y">
1880 <output>external_reactions/tiedown-right/y</output>
1881 <function>
1882 <cos>
1883 <toradians>
1884 <property>/sim/model/c172p/tiedowns/right/heading-deg</property>
1885 </toradians>
1886 </cos>
1887 </function>
1888 </fcs_function>
1889
1890 <fcs_function name="tiedown-right-z">
1891 <output>external_reactions/tiedown-right/z</output>
1892 <function>
1893 <product>
1894 <value>-1</value>
1895 <sin>
1896 <toradians>
1897 <property>/sim/model/c172p/tiedowns/right/pitch-deg</property>
1898 </toradians>
1899 </sin>
1900 </product>
1901 </function>
1902 </fcs_function>
1903
1904 <fcs_function name="tiedown-tail-x">
1905 <output>external_reactions/tiedown-tail/x</output>
1906 <function>
1907 <cos>
1908 <toradians>
1909 <property>/sim/model/c172p/tiedowns/tail/heading-deg</property>
1910 </toradians>
1911 </cos>
1912 </function>
1913 </fcs_function>
1914
1915 <fcs_function name="tiedown-tail-y">
1916 <output>external_reactions/tiedown-tail/y</output>
1917 <function>
1918 <sin>
1919 <toradians>
1920 <property>/sim/model/c172p/tiedowns/tail/heading-deg</property>
1921 </toradians>
1922 </sin>
1923 </function>
1924 </fcs_function>
1925
1926 <fcs_function name="tiedown-tail-z">
1927 <output>external_reactions/tiedown-tail/z</output>
1928 <function>
1929 <product>
1930 <value>-1</value>
1931 <sin>
1932 <toradians>
1933 <property>/sim/model/c172p/tiedowns/tail/pitch-deg</property>
1934 </toradians>
1935 </sin>
1936 </product>
1937 </function>
1938 </fcs_function>
1939
1940 <summer name="fcs/tiedown-left-mag-error">
1941 <input>/sim/model/c172p/tiedowns/left/length</input>
1942 <input>-/sim/model/c172p/tiedowns/left/ref-length</input>
1943 </summer>
1944 <fcs_function name="fcs/tiedown-left-magnitude">
1945 <function>
1946 <product>
1947 <property>/sim/model/c172p/securing/tiedownL-visible</property>
1948 <table>
1949 <independentVar>fcs/tiedown-left-mag-error</independentVar>
1950 <tableData>
1951 -1.0 -50.0
1952 -0.1 0.0
1953 0.0 0.0
1954 0.1 0.0
1955 1.0 7000.0
1956 </tableData>
1957 </table>
1958 </product>
1959 </function>
1960 <output>external_reactions/tiedown-left/magnitude</output>
1961 </fcs_function>
1962 <summer name="fcs/tiedown-right-mag-error">
1963 <input>/sim/model/c172p/tiedowns/right/length</input>
1964 <input>-/sim/model/c172p/tiedowns/right/ref-length</input>
1965 </summer>
1966 <fcs_function name="fcs/tiedown-right-magnitude">
1967 <function>
1968 <product>
1969 <property>/sim/model/c172p/securing/tiedownR-visible</property>
1970 <table>
1971 <independentVar>fcs/tiedown-right-mag-error</independentVar>
1972 <tableData>
1973 -1.0 -50.0
1974 -0.1 0.0
1975 0.0 0.0
1976 0.1 0.0
1977 1.0 7000.0
1978 </tableData>
1979 </table>
1980 </product>
1981 </function>
1982 <output>external_reactions/tiedown-right/magnitude</output>
1983 </fcs_function>
1984 <summer name="fcs/tiedown-tail-mag-error">
1985 <input>/sim/model/c172p/tiedowns/tail/length</input>
1986 <input>-/sim/model/c172p/tiedowns/tail/ref-length</input>
1987 </summer>
1988
1989 <fcs_function name="fcs/tiedown-tail-magnitude">
1990 <function>
1991 <product>
1992 <property>/sim/model/c172p/securing/tiedownT-visible</property>
1993 <table>
1994 <independentVar>fcs/tiedown-tail-mag-error</independentVar>
1995 <tableData>
1996 -1.0 -50.0
1997 -0.1 0.0
1998 0.0 0.0
1999 0.1 0.0
2000 1.0 7000.0
2001 </tableData>
2002 </table>
2003 </product>
2004 </function>
2005 <output>external_reactions/tiedown-tail/magnitude</output>
2006 </fcs_function>
2007
2008 </channel>
2009
2010 </system>