-
Notifications
You must be signed in to change notification settings - Fork 9
/
c182s.xml
2252 lines (2115 loc) · 88 KB
/
c182s.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?>
<!-- Source: http://forum.flightgear.org/viewtopic.php?f=25&t=21664&start=45 -->
<fdm_config name="c182s" version="2.0" release="BETA"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<fileheader>
<author> Unknown, HHS, Dany93 </author>
<filecreationdate> 2021-02-19 </filecreationdate>
<version> $Id: c172p.xml,v 1.40 June 2015 $ </version>
<!-- experimental stall and spin, up to flat spin March 2014 -->
<!-- Source: http://forum.flightgear.org/viewtopic.php?f=25&t=21664&start=45 -->
<!-- this file with comments for stall and spin to help -->
<!-- from further modifications for c172p-detailed 2015 -->
<!--many coefficients from David Megginson: http://www.megginson.com/Aviation/roskam-coefficients.html#sec.data-->
<description> Cessna C-182S </description>
</fileheader>
<metrics>
<wingarea unit="FT2"> 174 </wingarea>
<wingspan unit="FT"> 36 </wingspan>
<chord unit="FT"> 4.9 </chord>
<htailarea unit="FT2"> 21.9 </htailarea>
<htailarm unit="FT"> 17.7 </htailarm>
<vtailarea unit="FT2"> 16.5 </vtailarea>
<vtailarm unit="FT">17.7 </vtailarm>
<location name="AERORP" unit="IN">
<x>37.37 </x>
<y> 0 </y>
<z>32.94 </z>
</location>
<location name="EYEPOINT" unit="IN">
<x> -13 </x>
<y> 0 </y>
<z> 23.68 </z>
</location>
<location name="VRP" unit="IN"><!--Datum according POH -->
<x>-3.25</x>
<y> 0 </y>
<z>0 </z>
</location>
</metrics>
<mass_balance> <!--SLUG*FT2 from http://www.megginson.com/Aviation/roskam-coefficients.html#sec.data-->
<ixx unit="SLUG*FT2"> 948 </ixx>
<iyy unit="SLUG*FT2"> 1346 </iyy>
<izz unit="SLUG*FT2"> 1967</izz>
<ixy unit="SLUG*FT2"> -0 </ixy>
<ixz unit="SLUG*FT2"> -0 </ixz>
<iyz unit="SLUG*FT2"> -0 </iyz>
<emptywt unit="LBS"> 1925 </emptywt>
<location name="CG" unit="IN">
<x>40.31</x><!--according to POH and W&B calculator http://www.freechecklists.net/Resources/Cessna/182S+Skylane/-->
<y> 0 </y>
<z> 0 </z>
</location>
<pointmass name="Pilot">
<weight unit="LBS"> 180 </weight>
<location name="POINTMASS" unit="IN">
<x> 37 </x>
<y>-9.88</y>
<z> 0 </z>
</location>
</pointmass>
<pointmass name="Co-Pilot">
<weight unit="LBS"> 0 </weight> <!-- <weight unit="LBS">180</weight> -->
<location name="POINTMASS" unit="IN">
<x> 37 </x>
<y> 9.88 </y>
<z> 0 </z>
</location>
</pointmass>
<pointmass name="Left Passenger">
<weight unit="LBS"> 0 </weight> <!-- <weight unit="LBS">180</weight> -->
<location name="POINTMASS" unit="IN">
<x> 74 </x>
<y> -9.88 </y>
<z> 0 </z>
</location>
</pointmass>
<pointmass name="Right Passenger">
<weight unit="LBS"> 0 </weight> <!-- <weight unit="LBS">180</weight> -->
<location name="POINTMASS" unit="IN">
<x> 74 </x>
<y> 9.88 </y>
<z> 0 </z>
</location>
</pointmass>
<pointmass name="BaggageA">
<weight unit="LBS"> 0 </weight>
<location name="POINTMASS" unit="IN">
<x> 97 </x>
<y> 0 </y>
<z> 0 </z>
</location>
</pointmass>
<pointmass name="BaggageB">
<weight unit="LBS"> 0 </weight>
<location name="POINTMASS" unit="IN">
<x> 116 </x>
<y> 0 </y>
<z> 0 </z>
</location>
</pointmass>
<pointmass name="Ice">
<weight unit="LBS"> 0 </weight>
<location name="POINTMASS" unit="IN">
<x>37.37 </x>
<y> 0 </y>
<z>32.94 </z>
</location>
</pointmass>
</mass_balance>
<ground_reactions>
<!-- based on: https://www.researchgate.net/figure/Typical-air-spring-and-oil-damper-force-curves-for-a-light-aircraft_fig3_224989810-->
<contact type="BOGEY" name="NOSE">
<location unit="IN">
<x>-10.31 </x>
<y> 0 </y>
<z>-47.09</z><!--includes offset due to gear compression animation, should be -47.17-->
</location>
<static_friction> 1.4 </static_friction>
<dynamic_friction> 0.6 </dynamic_friction>
<rolling_friction> 0.03 </rolling_friction>
<strut_force>
<function>
<sum>
<product>
<value>-1</value>
<table>
<independentVar>gear/unit[0]/compression-ft</independentVar>
<tableData>
0.00 000
0.005 258
0.05 516
0.15 774
0.40 2400
</tableData>
</table>
</product>
<ifthen>
<ge>
<property> gear/unit[0]/compression-velocity-fps </property>
<value> 0.0 </value>
</ge>
<product>
<value>-1</value>
<table>
<independentVar> gear/unit[0]/compression-velocity-fps </independentVar>
<tableData>
-18.00 -13500
-9.18 -4500
0.00 0
9.18 4500
18.0 13500
</tableData>
</table>
</product>
<product>
<value>-1</value>
<property> fcs/gear-compression-velocity-dep-nose</property>
<property> gear/unit[0]/compression-velocity-fps </property>
</product>
</ifthen>
</sum>
</function>
</strut_force>
<!--<spring_coeff unit="LBS/FT">2400 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">490 </damping_coeff>
<damping_coeff_rebound type="SQUARE" unit="LBS/FT2/SEC2">0</damping_coeff_rebound>-->
<max_steer unit="DEG"> 29 </max_steer><!-- limited to 10 deg NWS, but can turn up to 30 with side force -->
<table name="CORNERING_COEFF" type="internal">
<tableData> <!-- jsbsim-pacejka.py 5.0 0.03 2.85 1.4 1.03 1.4 https://github.com/JSBSim-Team/jsbsim/issues/127 https://github.com/JSBSim-Team/jsbsim/issues/127-->
-90.0 -0.6276256632207626
-85.0 -0.6417393571173159
-80.0 -0.6578124074897472
-75.0 -0.6761339658692869
-70.0 -0.6970340668693019
-65.0 -0.7208796953965572
-60.0 -0.7480586200367123
-55.0 -0.7789376993218241
-50.0 -0.8137693871814174
-45.0 -0.852494972166421
-40.0 -0.8943455737614107
-35.0 -0.9370583530652546
-30.0 -0.9754028875043508
-25.0 -0.9986292585314367
-20.0 -0.9867956894252938
-15.0 -0.9078708239414398
-10.0 -0.722622440415344
-5.0 -0.4088092889390962
0.0 0.0
5.0 0.4088092889390962
10.0 0.722622440415344
15.0 0.9078708239414398
20.0 0.9867956894252938
25.0 0.9986292585314367
30.0 0.9754028875043508
35.0 0.9370583530652546
40.0 0.8943455737614107
45.0 0.852494972166421
50.0 0.8137693871814174
55.0 0.7789376993218241
60.0 0.7480586200367123
65.0 0.7208796953965572
70.0 0.6970340668693019
75.0 0.6761339658692869
80.0 0.6578124074897472
85.0 0.6417393571173159
90.0 0.6276256632207626
</tableData>
</table>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="BOGEY" name="LEFT_MAIN">
<location unit="IN">
<x>54.43 </x>
<y>-51.56 </y>
<z>-43.67 </z><!--includes offset due to gear compression animation, should be -41.56-->
</location>
<static_friction> 0.5 </static_friction>
<dynamic_friction> 0.4</dynamic_friction>
<rolling_friction> 0.03 </rolling_friction>
<!--<strut_force>
<function>
<sum>
<product>
<value>-1</value>
<table>
<independentVar>gear/unit[1]/compression-ft</independentVar>
<tableData>
0.00 000
0.4 3600
</tableData>
</table>
</product>
<ifthen>
<ge>
<property> gear/unit[1]/compression-velocity-fps </property>
<value> 0</value>
</ge>
<product>
<value>-1</value>
<table>
<independentVar> gear/unit[1]/compression-velocity-fps </independentVar>
<tableData>
-1 -442
0.00 0
1 442
</tableData>
</table>
</product>
<product>
<value>-1</value>
<property> fcs/gear-compression-velocity-dep</property>
<property> gear/unit[1]/compression-velocity-fps </property>
</product>
</ifthen>
</sum>
</function>
</strut_force>-->
<spring_coeff unit="LBS/FT">3600 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">295</damping_coeff>
<damping_coeff_rebound type="SQUARE" unit="LBS/FT2/SEC2">295 </damping_coeff_rebound>
<max_steer unit="DEG"> 0.0 </max_steer>
<table name="CORNERING_COEFF" type="internal">
<tableData> <!-- jsbsim-pacejka.py 5.0 0.06 2.8 0.5 1.03 0.5 -->
-90.0 -0.5760395836174765
-85.0 -0.5776440181093163
-80.0 -0.5803918992801416
-75.0 -0.584501031700121
-70.0 -0.5902476568617109
-65.0 -0.5979865464058901
-60.0 -0.6081793463286825
-55.0 -0.6214348494943271
-50.0 -0.6385661913510731
-45.0 -0.6606706311692149
-40.0 -0.6892340269266315
-35.0 -0.726240829612553
-30.0 -0.7741813043425955
-25.0 -0.8355026710967953
-20.0 -0.9097416834082445
-15.0 -0.9818532434458513
-10.0 -0.9824937511496707
-5.0 -0.7127565569007203
0.0 0.0
5.0 0.7127565569007203
10.0 0.9824937511496707
15.0 0.9818532434458513
20.0 0.9097416834082445
25.0 0.8355026710967953
30.0 0.7741813043425955
35.0 0.726240829612553
40.0 0.6892340269266315
45.0 0.6606706311692149
50.0 0.6385661913510731
55.0 0.6214348494943271
60.0 0.6081793463286825
65.0 0.5979865464058901
70.0 0.5902476568617109
75.0 0.584501031700121
80.0 0.5803918992801416
85.0 0.5776440181093163
90.0 0.5760395836174765
</tableData>
</table>
<brake_group> LEFT </brake_group>
<retractable>0</retractable>
</contact>
<contact type="BOGEY" name="RIGHT_MAIN">
<location unit="IN">
<x>54.43 </x>
<y>51.56 </y>
<z>-43.67 </z><!--includes offset due to gear compression animation, should be -41.56-->
</location>
<static_friction> 0.5</static_friction>
<dynamic_friction> 0.4 </dynamic_friction>
<rolling_friction> 0.03 </rolling_friction>
<!--<strut_force>
<function>
<sum>
<product>
<value>-1</value>
<table>
<independentVar>gear/unit[2]/compression-ft</independentVar>
<tableData>
0.00 000
0.4 3600
</tableData>
</table>
</product>
<ifthen>
<ge>
<property> gear/unit[2]/compression-velocity-fps </property>
<value> 0.1 </value>
</ge>
<product>
<value>-1</value>
<table>
<independentVar> gear/unit[2]/compression-velocity-fps </independentVar>
<tableData>
-1 -442
0.00 0
1 442
</tableData>
</table>
</product>
<product>
<value>-1</value>
<property> fcs/gear-compression-velocity-dep</property>
<property> gear/unit[2]/compression-velocity-fps </property>
</product>
</ifthen>
</sum>
</function>
</strut_force>-->
<spring_coeff unit="LBS/FT">3600 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">295</damping_coeff>
<damping_coeff_rebound type="SQUARE" unit="LBS/FT2/SEC2">295</damping_coeff_rebound>
<max_steer unit="DEG"> 0.0 </max_steer>
<table name="CORNERING_COEFF" type="internal">
<tableData> <!-- jsbsim-pacejka.py 5.0 0.06 2.8 0.5 1.03 0.5 -->
-90.0 -0.5760395836174765
-85.0 -0.5776440181093163
-80.0 -0.5803918992801416
-75.0 -0.584501031700121
-70.0 -0.5902476568617109
-65.0 -0.5979865464058901
-60.0 -0.6081793463286825
-55.0 -0.6214348494943271
-50.0 -0.6385661913510731
-45.0 -0.6606706311692149
-40.0 -0.6892340269266315
-35.0 -0.726240829612553
-30.0 -0.7741813043425955
-25.0 -0.8355026710967953
-20.0 -0.9097416834082445
-15.0 -0.9818532434458513
-10.0 -0.9824937511496707
-5.0 -0.7127565569007203
0.0 0.0
5.0 0.7127565569007203
10.0 0.9824937511496707
15.0 0.9818532434458513
20.0 0.9097416834082445
25.0 0.8355026710967953
30.0 0.7741813043425955
35.0 0.726240829612553
40.0 0.6892340269266315
45.0 0.6606706311692149
50.0 0.6385661913510731
55.0 0.6214348494943271
60.0 0.6081793463286825
65.0 0.5979865464058901
70.0 0.5902476568617109
75.0 0.584501031700121
80.0 0.5803918992801416
85.0 0.5776440181093163
90.0 0.5760395836174765
</tableData>
</table>
<brake_group> RIGHT </brake_group>
<retractable>0</retractable>
</contact>
<contact type="BOGEY" name="TAIL_SKID">
<location unit="IN">
<x> 219.33 </x>
<y> 0 </y>
<z> 4.15 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT"> 1900 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 540 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="belly_front">
<location unit="IN">
<x>0.021 </x>
<y>0.0 </y>
<z> -15.29 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">100 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="belly_aft_left">
<location unit="IN">
<x>62 </x>
<y>-10.36 </y>
<z> -21.31 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">1000 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="belly_aft_right">
<location unit="IN">
<x>62 </x>
<y>10.36 </y>
<z> -21.31 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">1000</damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="LEFT_WINGTIP">
<location unit="IN">
<x>12.03 </x>
<y>-212.86 </y>
<z> 33.37 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">1000 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="RIGHT_WINGTIP">
<location unit="IN">
<x> 12.03 </x>
<y> 212.86 </y>
<z> 33.37 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">1000 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="NOSETIP">
<location unit="IN">
<x> -92.50 </x>
<y> 0</y>
<z> 0 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT"> 100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 1000 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="ROOF_FRONT">
<location unit="IN">
<x> -4.82 </x>
<y> 0</y>
<z> 31.37 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">1000 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="ROOF_BACK">
<location unit="IN">
<x>58.47</x>
<y> 0</y>
<z>30.62 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">1000 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
<contact type="STRUCTURE" name="HSTAB_TIP">
<location unit="IN">
<x> 214.47 </x>
<y> 0</y>
<z>79.41 </z>
</location>
<static_friction> 1.0 </static_friction>
<dynamic_friction> 1.0 </dynamic_friction>
<rolling_friction> 1.0 </rolling_friction>
<spring_coeff unit="LBS/FT">100 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC">1000 </damping_coeff>
<max_steer unit="DEG"> 0.0 </max_steer>
<brake_group> NONE </brake_group>
<retractable>0</retractable>
</contact>
</ground_reactions>
<propulsion>
<engine file="engIO540AB1A5">
<location unit="IN">
<x>-40.94 </x>
<y> 0 </y>
<z> 0 </z>
</location>
<orient unit="DEG">
<roll> 0.0 </roll>
<pitch> 0 </pitch>
<yaw> 0 </yaw>
</orient>
<feed>5</feed>
<thruster file="prop_79in3v">
<location unit="IN">
<x> -73.62 </x>
<y> 0 </y>
<z> 0</z>
</location>
<orient unit="DEG">
<roll> 0.0 </roll>
<pitch> 0.0 </pitch>
<yaw> 0.0 </yaw>
</orient>
<sense> 1 </sense>
<p_factor>15 </p_factor>
</thruster>
</engine>
<!-- 0: left wing -->
<tank type="FUEL"> <!-- Tank number 0 with 44 gallons =290.5lbs ?? kerosin but should be AVGas!-->
<location unit="IN">
<x> 36.27 </x>
<y>-59.49 </y>
<z> 31.21</z>
</location>
<drain_location unit="M">
<x> 1.057 </x>
<y>-1.11821 </y>
<z> 0.68779 </z>
</drain_location>
<capacity unit="LBS"> 264.88 </capacity>
<contents unit="LBS"> 264.88</contents>
<temperature>50</temperature>
<density unit="LBS/GAL"> 6.02 </density>
<standpipe>2</standpipe>
<type>AVGAS</type>
</tank>
<!-- 1: right wing -->
<tank type="FUEL"> <!-- Tank number 1 with 44 gallons =290.5lbs kerosin but should be AVGas!-->
<location unit="IN">
<x> 36.27 </x>
<y> 59.49 </y>
<z> 31.21 </z>
</location>
<drain_location unit="M">
<x> 1.057 </x>
<y> 1.11821 </y>
<z> 0.68779 </z>
</drain_location>
<capacity unit="LBS"> 264.88 </capacity>
<contents unit="LBS"> 264.88 </contents>
<temperature>50</temperature>
<density unit="LBS/GAL"> 6.02 </density>
<standpipe>2</standpipe>
<type>AVGAS</type>
</tank>
<!-- 2: Fuel selector sump -->
<tank type="FUEL">
<location unit="IN">
<x>0.45</x>
<y>0</y>
<z>-0.40</z>
</location>
<drain_location unit="M">
<x>0.45</x>
<y>0</y>
<z>-0.45</z>
</drain_location>
<capacity unit="LBS">0.1</capacity> <!-- todo: arbitrary numer as i dont know exact ones -->
<contents unit="LBS">0</contents>
<temperature>50</temperature>
<density unit="LBS/GAL"> 6.02 </density>
<type>AVGAS</type>
</tank>
<!-- 3: Strainer sump -->
<tank type="FUEL">
<location unit="IN">
<x>-0.28</x>
<y>0</y>
<z>-0.30</z>
</location>
<drain_location unit="M">
<x>-0.28</x>
<y>0</y>
<z>-0.50</z>
</drain_location>
<capacity unit="LBS">0.1</capacity>
<contents unit="LBS">0</contents>
<temperature>50</temperature>
<density unit="LBS/GAL"> 6.02 </density>
<type>AVGAS</type>
</tank>
<!-- 4: Fuel pipe -->
<tank type="FUEL">
<location unit="IN">
<x>-0.35</x>
<y>0</y>
<z>-0.30</z>
</location>
<drain_location unit="M">
<x>-0.35</x>
<y>0</y>
<z>-0.50</z>
</drain_location>
<capacity unit="LBS">0.05</capacity>
<contents unit="LBS">0</contents>
<temperature>50</temperature>
<density unit="LBS/GAL"> 6.02 </density>
<type>AVGAS</type>
</tank>
<!-- 5: engine manifold (engine feeds from here) -->
<tank type="FUEL">
<location unit="IN">
<x>-0.60</x>
<y>0</y>
<z>-0.30</z>
</location>
<drain_location unit="M">
<x>-0.60</x>
<y>0</y>
<z>-0.50</z>
</drain_location>
<capacity unit="LBS">0.1</capacity>
<contents unit="LBS">0</contents>
<temperature>50</temperature>
<density unit="LBS/GAL"> 6.02 </density>
<type>AVGAS</type>
</tank>
<!-- 6: "virtual" mix-to-engine tank (workaround for starter mixture) -->
<tank type="FUEL">
<location unit="IN">
<x>0</x>
<y>0</y>
<z>0</z>
</location>
<drain_location unit="M">
<x>0</x>
<y>0</y>
<z>0</z>
</drain_location>
<capacity unit="LBS">0.001</capacity>
<contents unit="LBS">0</contents>
<priority>0</priority>
</tank>
</propulsion>
<system file="fuel"/> <!-- integrate advanced fuel system -->
<system file="external-heat"/> <!-- integrate external-heater -->
<system file="electrical"/> <!-- load electrical system -->
<system file="cabin-heat_and_air"/> <!-- cabin heat and air -->
<system file="damage"/> <!-- integrate damage detection -->
<system file="static-sources"/> <!-- integrate alternate static source simulation -->
<system file="towbar"/> <!-- integrate towbar -->
<flight_control name="FCS: c182s">
<!--Cessna 182S POH Page 7-12: nose gear steer deg=11deg, by applying left or right brake increasing steer deg up to 29deg-->
<!-- Control input channel, inspired from PA28 -->
<!-- https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/Aircraft/PA28/Systems/pa28-fcs.xml#l11 -->
<!-- see discussion in https://github.com/HHS81/c182s/pull/582#issuecomment-2030922438 -->
<channel name="Control Inputs">
<lag_filter name="fcs/aileron-yoke">
<input>/controls/flight/aileron</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/elevator-yoke">
<input>/controls/flight/elevator</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/elevator-trim-knob">
<input>/controls/flight/elevator-trim</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/rudder-pedal">
<input>/controls/flight/rudder</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/rudder-trim-knob">
<input>/controls/flight/rudder-trim</input>
<c1>20</c1>
</lag_filter>
</channel>
<channel name="ground reaction">
<!-- can be used for idividuell damping as an example based on velocity or anything else-->
<fcs_function name="fcs/gear-compression-velocity-dep-nose">
<function>
<table>
<independentVar>velocities/u-fps</independentVar>
<tableData>
0.0 0
110 0
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="fcs/gear-compression-velocity-dep">
<function>
<table>
<independentVar>velocities/u-fps</independentVar>
<tableData>
0.0 442
110 442
</tableData>
</table>
</function>
</fcs_function>
</channel>
<!-- following code by Jonathan Redpath aka legoboyvdlp-->
<channel name="NWS">
<switch name="fcs/nws-enabled">
<default value="0"/>
<test logic="OR" value="1"> <!-- NWS mechanically centered if gear is fully extended -->
/gear/gear[0]/compression-norm gt 0.001
</test>
</switch>
<fcs_function name="left brake nose-gear">
<function name="fcs/nose-gear-left-brake-steer-factor">
<product>
<property>fcs/left-brake-cmd-norm</property>
<value>-1</value>
</product>
</function>
</fcs_function>
<fcs_function name="right brake nose-gear">
<function name="fcs/nose-gear-right-brake-steer-factor">
<product>
<property>fcs/right-brake-cmd-norm</property>
<value>1</value>
</product>
</function>
</fcs_function>
<summer name="fcs/brake-sum">
<input>fcs/nose-gear-right-brake-steer-factor</input>
<input>fcs/nose-gear-left-brake-steer-factor</input>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
</summer>
<switch name="fcs/brake-influence-enabled"> <!-- brake should not influence nws if the aircraft is not moving -->
<default value="0"/>
<test logic="OR" value="1">
/gear/gear[0]/rollspeed-ms gt 0.25
</test>
</switch>
<fcs_function name="fcs/brake-sum-adjusted">
<function>
<product>
<property>fcs/brake-influence-enabled</property>
<property>fcs/brake-sum</property>
</product>
</function>
</fcs_function>
<fcs_function name="fcs/nws-cmd-deg"> <!-- Drive the nose wheel with the rudder and brakes -->
<function>
<table>
<independentVar lookup="row">fcs/brake-sum-adjusted</independentVar>
<independentVar lookup="column">/controls/flight/rudder</independentVar>
<tableData>
-1 0 1
-1 -29 0 11
0 -11 0 11
1 -11 0 29
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="fcs/nws-cmd-deg-adjusted">
<function>
<product>
<property>fcs/nws-cmd-deg</property>
<property>fcs/nws-enabled</property>
</product>
</function>
</fcs_function>
<actuator name="fcs/steer-deg-actuator">
<input>fcs/nws-cmd-deg-adjusted</input>
<rate_limit>80</rate_limit> <!-- 80 deg / s , or 1/8 second to full deflection with NWS -->
<output>fcs/steer-pos-deg-actuator</output>
</actuator>
<switch name="fcs/steer-pos-deg">
<default value="fcs/steer-pos-deg-actuator"/>
<test value="external_reactions/towbar/steer-deg">
external_reactions/towbar/attached eq 1
gear/unit[0]/WOW eq 1
</test>
</switch>
</channel>
<channel name="Pitch">
<summer name="Pitch Trim Sum">
<input>fcs/elevator-yoke</input>
<input>fcs/elevator-trim-knob</input>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
</summer>
<aerosurface_scale name="Elevator Control">
<input>fcs/pitch-trim-sum</input>
<gain>0.01745</gain>
<range>
<min>-28</min>
<max>21</max>
</range>
<output>fcs/elevator-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="Elevator Position Normalized">
<input>fcs/elevator-pos-deg</input>
<domain>
<min>-28</min>
<max>21</max>
</domain>
<range>
<min>-1</min>
<max>1</max>
</range>
<output>fcs/elevator-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Roll">
<summer name="Roll Trim Sum">
<input>fcs/aileron-yoke</input>
<input>fcs/roll-trim-cmd-norm</input>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
<output>fcs/roll-trim-sum</output>
</summer>
<summer name="Aileron Norm Left">
<input>fcs/roll-trim-sum</input>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
<output>fcs/left-aileron-pos-norm</output>
</summer>
<aerosurface_scale name="Left Aileron Control">
<input>fcs/roll-trim-sum</input>
<range>
<min>-0.366519</min>
<max>0.261799</max>
</range>
<output>fcs/left-aileron-pos-rad</output>
</aerosurface_scale>
<summer name="Aileron Norm Right">
<input>fcs/roll-trim-sum</input>
<clipto>
<min>-1.0</min>
<max>1.0</max>
</clipto>
<output>fcs/right-aileron-pos-norm</output>
</summer>
<aerosurface_scale name="Right Aileron Control">
<input>fcs/roll-trim-sum</input>
<range>
<min>0.261799 </min>
<max>-0.366519</max>
</range>
<output>fcs/right-aileron-pos-rad</output>
</aerosurface_scale>
</channel>
<channel name="Yaw">
<summer name="Yaw Trim Sum">
<input>-fcs/rudder-pedal</input>
<input>-fcs/rudder-trim-knob</input>
<clipto>
<min>-1</min>
<max>1</max>
</clipto>
</summer>
<aerosurface_scale name="Rudder Control"><!-- Perpendicular to hinge line-->
<input>fcs/yaw-trim-sum</input>
<gain>0.01745</gain>
<range>
<min>-27</min>
<max>27</max>
</range>
<output>fcs/rudder-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="Rudder Position Normalized">
<input>fcs/rudder-pos-deg</input><!-- Perpendicular to hinge line-->
<domain>
<min>-27</min>
<max>27</max>
</domain>
<range>
<min>-1</min>
<max>1</max>
</range>