Debian Codegraph @

Aircraft/c172p/c172p.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?>
3 <!-- Source: http://forum.flightgear.org/viewtopic.php?f=25&t=21664&start=45 -->
4 <fdm_config name="c172" version="2.0" release="BETA"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
7
8 <fileheader>
9 <author> Unknown </author>
10 <filecreationdate> 2002-01-01 </filecreationdate>
11 <version> $Id: c172p.xml,v 1.41 Jan 2018 $ </version>
12 <!-- experimental stall and spin, up to flat spin March 2014, Dany93 (Daniel Dubreuil) -->
13 <!-- Source: http://forum.flightgear.org/viewtopic.php?f=25&t=21664&start=45 -->
14 <!-- this file with comments for stall and spin to help -->
15 <!-- further modifications for c172p-detailed 2015 - 2018 -->
16 <!-- with help and extra informations from okroth and algefaen -->
17 <description> Cessna 172P Skyhawk </description>
18 </fileheader>
19
20 <metrics>
21 <wingarea unit="FT2"> 174 </wingarea>
22 <wingspan unit="FT"> 35.8 </wingspan>
23 <chord unit="FT"> 4.9 </chord>
24 <htailarea unit="FT2"> 21.9 </htailarea>
25 <htailarm unit="FT"> 15.7 </htailarm>
26 <vtailarea unit="FT2"> 16.5 </vtailarea>
27 <vtailarm unit="FT"> 0 </vtailarm>
28 <location name="AERORP" unit="IN">
29 <x> 41.2 </x> <!-- initial: 40.6 (25% Mean Aerodynamic Chord) -->
30 <y> 0 </y>
31 <z> 29.3 </z>
32 </location>
33 <location name="EYEPOINT" unit="IN">
34 <x> 37 </x>
35 <y> 0 </y>
36 <z> 48 </z>
37 </location>
38 <location name="VRP" unit="IN">
39 <x> 34 </x>
40 <y> 0 </y>
41 <z> 35.75 </z>
42 </location>
43 </metrics>
44
45 <!--
46 Cessna 172P Skyhawk 1982 (160hp) POH p.6-10, Weight and Moment:
47 **Basic Empty** (= with full oil) 1467 lbs, 57300 lb-ins. Gives CG at 39.06 ins.
48 -->
49 <mass_balance>
50 <ixx unit="SLUG*FT2"> 948 </ixx>
51 <iyy unit="SLUG*FT2"> 1285 </iyy>
52 <izz unit="SLUG*FT2"> 1906 </izz>
53 <ixy unit="SLUG*FT2"> -0 </ixy>
54 <ixz unit="SLUG*FT2"> -0 </ixz>
55 <iyz unit="SLUG*FT2"> -0 </iyz>
56 <emptywt unit="LBS"> 1467 </emptywt>
57 <location name="CG" unit="IN">
58 <x> 39.06 </x>
59 <y> 0 </y>
60 <z> 25 </z>
61 </location>
62
63 <pointmass name="Pilot">
64 <weight unit="LBS"> 180 </weight>
65 <location name="POINTMASS" unit="IN">
66 <x> 36 </x>
67 <y> -14 </y>
68 <z> 24 </z>
69 </location>
70 </pointmass>
71
72 <pointmass name="Co-Pilot">
73 <weight unit="LBS"> 0 </weight>
74 <location name="POINTMASS" unit="IN">
75 <x> 36 </x>
76 <y> 14 </y>
77 <z> 24 </z>
78 </location>
79 </pointmass>
80
81 <pointmass name="Left Passenger">
82 <weight unit="LBS"> 0 </weight>
83 <location name="POINTMASS" unit="IN">
84 <x> 70 </x>
85 <y> -14 </y>
86 <z> 24 </z>
87 </location>
88 </pointmass>
89
90 <pointmass name="Right Passenger">
91 <weight unit="LBS"> 0 </weight>
92 <location name="POINTMASS" unit="IN">
93 <x> 70 </x>
94 <y> 14 </y>
95 <z> 24 </z>
96 </location>
97 </pointmass>
98
99 <pointmass name="Baggage">
100 <weight unit="LBS"> 0 </weight>
101 <location name="POINTMASS" unit="IN">
102 <x> 95 </x>
103 <y> 0 </y>
104 <z> 24 </z>
105 </location>
106 </pointmass>
107
108 <!-- Bushkits 1 to 5, pointmass [5] to [14], [15] is 180 hp engine (below) -->
109 <!-- Weight and drag are managed by Systems/bushkit.xml -->
110 <pointmass name="Left bush wheel 26 inches">
111 <weight unit="LBS"> 0 </weight>
112 <location name="POINTMASS" unit="IN">
113 <x> 58.2 </x>
114 <y> -43 </y>
115 <z> -15.5 </z>
116 </location>
117 </pointmass>
118 <pointmass name="Right bush wheel 26 inches">
119 <weight unit="LBS"> 0 </weight>
120 <location name="POINTMASS" unit="IN">
121 <x> 58.2 </x>
122 <y> 43 </y>
123 <z> -15.5 </z>
124 </location>
125 </pointmass>
126 <pointmass name="Left bush wheel 36 inches">
127 <weight unit="LBS"> 0 </weight>
128 <location name="POINTMASS" unit="IN">
129 <x> 58.2 </x>
130 <y> -43 </y>
131 <z> -15.5 </z>
132 </location>
133 </pointmass>
134 <pointmass name="Right bush wheel 36 inches">
135 <weight unit="LBS"> 0 </weight>
136 <location name="POINTMASS" unit="IN">
137 <x> 58.2 </x>
138 <y> 43 </y>
139 <z> -15.5 </z>
140 </location>
141 </pointmass>
142 <pointmass name="Left float">
143 <weight unit="LBS"> 0 </weight>
144 <location name="POINTMASS" unit="IN">
145 <x> 41 </x>
146 <y> -43 </y>
147 <z> -25 </z>
148 </location>
149 </pointmass>
150 <pointmass name="Right float">
151 <weight unit="LBS"> 0 </weight>
152 <location name="POINTMASS" unit="IN">
153 <x> 41 </x>
154 <y> 43 </y>
155 <z> -25 </z>
156 </location>
157 </pointmass>
158 <pointmass name="Left amphibious">
159 <weight unit="LBS"> 0 </weight>
160 <location name="POINTMASS" unit="IN">
161 <x> 41 </x>
162 <y> -43 </y>
163 <z> -25 </z>
164 </location>
165 </pointmass>
166 <pointmass name="Right amphibious">
167 <weight unit="LBS"> 0 </weight>
168 <location name="POINTMASS" unit="IN">
169 <x> 41 </x>
170 <y> 43 </y>
171 <z> -25 </z>
172 </location>
173 </pointmass>
174 <pointmass name="Left ski">
175 <weight unit="LBS"> 0 </weight>
176 <location name="POINTMASS" unit="IN">
177 <x> 58.2 </x>
178 <y> -43 </y>
179 <z> -15.5 </z>
180 </location>
181 </pointmass>
182 <pointmass name="Right ski">
183 <weight unit="LBS"> 0 </weight>
184 <location name="POINTMASS" unit="IN">
185 <x> 58.2 </x>
186 <y> 43 </y>
187 <z> -15.5 </z>
188 </location>
189 </pointmass>
190
191 <!-- Extra weight for the aircraft with 180 hp engine, **Basic empty** (= with full oil), pointmass [15]; managed by Systems/bushkit.xml -->
192 <!-- for empty aircraft CG at x = 38.12 ins, from Cessna 172S - N552SP POH (1998) p.6-12, Weight and moment tabulation: 1642 lbs, 62600 lb-ins -->
193 <pointmass name="extra weight 180hp">
194 <weight unit="LBS"> 0 </weight>
195 <location name="POINTMASS" unit="IN">
196 <x> 30.29 </x>
197 <y> 0 </y>
198 <z> 26.6 </z>
199 </location>
200 </pointmass>
201
202 <!-- Loss of weight due to lacking oil, pointmass [16]. engine.nas, c172p-engine.xml -->
203 <pointmass name="lacking oil weight">
204 <weight unit="LBS"> 0 </weight>
205 <location name="POINTMASS" unit="IN">
206 <x> -19.7 </x>
207 <y> 0 </y>
208 <z> 26.6 </z>
209 </location>
210 </pointmass>
211
212 <!-- pointmass [17] -->
213 <pointmass name="Wing-Ice">
214 <weight unit="LBS"> 0 </weight>
215 <location name="POINTMASS" unit="IN">
216 <x> 36.14 </x>
217 <y> 0.00 </y>
218 <z> 56.88 </z>
219 </location>
220 </pointmass>
221 <!-- pointmass [18] -->
222 <pointmass name="Elevator-Ice">
223 <weight unit="LBS"> 0 </weight>
224 <location name="POINTMASS" unit="IN">
225 <x> 208.77 </x>
226 <y> 0.00 </y>
227 <z> 29.19 </z>
228 </location>
229 </pointmass>
230 <!-- pointmass [19] -->
231 <pointmass name="Stabilizer-Ice">
232 <weight unit="LBS"> 0 </weight>
233 <location name="POINTMASS" unit="IN">
234 <x> 228.60 </x>
235 <y> 0.00 </y>
236 <z> 64.48 </z>
237
238 </location>
239 </pointmass>
240 <!-- pointmass [20] -->
241 <pointmass name="Fuselage-Ice">
242 <weight unit="LBS"> 0 </weight>
243 <location name="POINTMASS" unit="IN">
244 <x> -24.00 </x>
245 <y> 0.00 </y>
246 <z> 25.79 </z>
247 </location>
248 </pointmass>
249 <!-- pointmass [21] -->
250 <pointmass name="Windshield-Ice">
251 <weight unit="LBS"> 0 </weight>
252 <location name="POINTMASS" unit="IN">
253 <x> 18.40 </x>
254 <y> 0.00 </y>
255 <z> 50.91 </z>
256 </location>
257 </pointmass>
258 <!-- pointmass [22] -->
259 <pointmass name="Propeller-Ice">
260 <weight unit="LBS"> 0 </weight>
261 <location name="POINTMASS" unit="IN">
262 <x> -37.39 </x>
263 <y> 0.00 </y>
264 <z> 30.04 </z>
265 </location>
266 </pointmass>
267
268 </mass_balance>
269
270 <ground_reactions>
271 <documentation>
272 The hydrodynamic interactions of the floats are modelled by
273 external forces.
274 </documentation>
275
276 <contact type="BOGEY" name="NOSE">
277 <location unit="IN">
278 <x> -7.3 </x>
279 <y> 0 </y>
280 <z> -20.3 </z> <!-- managed in Systems/c172p-ground-effects.xml -->
281 </location>
282 <static_friction> 0.8 </static_friction>
283 <dynamic_friction> 0.5 </dynamic_friction>
284 <rolling_friction> 0.02 </rolling_friction>
285 <spring_coeff unit="LBS/FT"> 3600 </spring_coeff>
286 <damping_coeff unit="LBS/FT/SEC"> 1200 </damping_coeff>
287 <max_steer unit="DEG"> 30 </max_steer> <!-- limited to 10 deg NWS, but can turn up to 30 with side force -->
288 <brake_group> NONE </brake_group>
289 <retractable>0</retractable>
290 </contact>
291 <contact type="BOGEY" name="LEFT_MAIN">
292 <location unit="IN">
293 <x> 57.3 </x>
294 <y> -43 </y>
295 <z> -15.3 </z> <!-- managed in Systems/c172p-ground-effects.xml -->
296 </location>
297 <static_friction> 0.8 </static_friction>
298 <dynamic_friction> 0.5 </dynamic_friction>
299 <rolling_friction> 0.02 </rolling_friction>
300 <spring_coeff unit="LBS/FT"> 5400 </spring_coeff>
301 <damping_coeff unit="LBS/FT/SEC"> 1800 </damping_coeff>
302 <max_steer unit="DEG"> 0.0 </max_steer>
303 <brake_group> LEFT </brake_group>
304 <retractable>0</retractable>
305 </contact>
306 <contact type="BOGEY" name="RIGHT_MAIN">
307 <location unit="IN">
308 <x> 57.3 </x>
309 <y> 43 </y>
310 <z> -15.1 </z> <!-- managed in Systems/c172p-ground-effects.xml -->
311 </location>
312 <static_friction> 0.8 </static_friction>
313 <dynamic_friction> 0.5 </dynamic_friction>
314 <rolling_friction> 0.02 </rolling_friction>
315 <spring_coeff unit="LBS/FT"> 5400 </spring_coeff>
316 <damping_coeff unit="LBS/FT/SEC"> 1800 </damping_coeff>
317 <max_steer unit="DEG"> 0.0 </max_steer>
318 <brake_group> RIGHT </brake_group>
319 <retractable>0</retractable>
320 </contact>
321
322 <!-- Damage Mod -->
323 <!-- contact 3, 4, 5 -->
324 <contact type="STRUCTURE" name="TAIL_SKID">
325 <location unit="IN">
326 <x> 226.7 </x>
327 <y> 0 </y>
328 <z> 17 </z>
329 </location>
330 <static_friction> 0.5 </static_friction>
331 <dynamic_friction> 0.25 </dynamic_friction>
332 <spring_coeff unit="LBS/FT"> 2000 </spring_coeff>
333 <damping_coeff unit="LBS/FT/SEC"> 1000 </damping_coeff>
334 </contact>
335 <contact type="STRUCTURE" name="LEFT_TIP">
336 <location unit="IN">
337 <x> 20 </x>
338 <y> -232 </y>
339 <z> 50 </z>
340 </location>
341 <static_friction> 0.75 </static_friction>
342 <dynamic_friction> 0.5 </dynamic_friction>
343 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
344 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
345 </contact>
346 <contact type="STRUCTURE" name="RIGHT_TIP">
347 <location unit="IN">
348 <x> 20 </x>
349 <y> 232 </y>
350 <z> 50 </z>
351 </location>
352 <static_friction> 0.75 </static_friction>
353 <dynamic_friction> 0.5 </dynamic_friction>
354 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
355 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
356 </contact>
357
358 <!-- contact 6, 7, 8 -->
359 <contact type="STRUCTURE" name="FRONT_BROKEN_GEAR">
360 <location unit="IN">
361 <x> -6.8 </x>
362 <y> 0 </y>
363 <z> 0 </z>
364 </location>
365 <static_friction> 0.9 </static_friction>
366 <dynamic_friction> 0.5 </dynamic_friction>
367 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
368 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
369 </contact>
370 <contact type="STRUCTURE" name="LEFT_BROKEN_GEAR">
371 <location unit="IN">
372 <x> 58.2 </x>
373 <y> -48 </y>
374 <z> 0 </z>
375 </location>
376 <static_friction> 0.8 </static_friction>
377 <dynamic_friction> 0.4 </dynamic_friction>
378 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
379 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
380 </contact>
381 <contact type="STRUCTURE" name="RIGHT_BROKEN_GEAR">
382 <location unit="IN">
383 <x> 58.2 </x>
384 <y> 48 </y>
385 <z> 0 </z>
386 </location>
387 <static_friction> 0.8 </static_friction>
388 <dynamic_friction> 0.4 </dynamic_friction>
389 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
390 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
391 </contact>
392
393 <!-- contact 9, 10, 11, 12 -->
394 <contact type="STRUCTURE" name="NOSE_TOP">
395 <location unit="IN">
396 <x> -119 </x>
397 <y> 0 </y>
398 <z> 35 </z>
399 </location>
400 <static_friction> .75 </static_friction>
401 <dynamic_friction> .5 </dynamic_friction>
402 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
403 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
404 </contact>
405 <contact type="STRUCTURE" name="NOSE">
406 <location unit="IN">
407 <x> -119 </x>
408 <y> 0 </y>
409 <z> 8 </z>
410 </location>
411 <static_friction> 3.0 </static_friction>
412 <dynamic_friction> 2.0 </dynamic_friction>
413 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
414 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
415 </contact>
416 <contact type="STRUCTURE" name="COCKPIT_TOP">
417 <location unit="IN">
418 <x> -4.7 </x>
419 <y> 0 </y>
420 <z> 60 </z>
421 </location>
422 <static_friction> 3.0 </static_friction>
423 <dynamic_friction> 2.0 </dynamic_friction>
424 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
425 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
426 </contact>
427 <contact type="STRUCTURE" name="TOP_VS">
428 <location unit="IN">
429 <x> 253.5 </x>
430 <y> 0 </y>
431 <z> 90 </z>
432 </location>
433 <static_friction> 3.0 </static_friction>
434 <dynamic_friction> 2.0 </dynamic_friction>
435 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
436 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
437 </contact>
438
439 <!-- contact 13, 14, 15, 16, 17, 18 -->
440 <contact type="STRUCTURE" name="LFfloat">
441 <location unit="IN">
442 <x>3.230</x>
443 <y>-56.889</y>
444 <z>38.5</z>
445 </location>
446 <static_friction> 0.5 </static_friction>
447 <dynamic_friction> 0.2 </dynamic_friction>
448 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
449 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
450 </contact>
451 <contact type="STRUCTURE" name="RFfloat">
452 <location unit="IN">
453 <x>3.230</x>
454 <y>56.889</y>
455 <z>38.5</z>
456 </location>
457 <static_friction> 0.5 </static_friction>
458 <dynamic_friction> 0.2 </dynamic_friction>
459 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
460 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
461 </contact>
462 <contact type="STRUCTURE" name="LMfloat">
463 <location unit="IN">
464 <x>70.16</x>
465 <y>-56.889</y>
466 <z>38.5</z>
467 </location>
468 <static_friction> 0.5 </static_friction>
469 <dynamic_friction> 0.2 </dynamic_friction>
470 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
471 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
472 </contact>
473 <contact type="STRUCTURE" name="RMfloat">
474 <location unit="IN">
475 <x>70.16</x>
476 <y>56.889</y>
477 <z>38.5</z>
478 </location>
479 <static_friction> 0.5 </static_friction>
480 <dynamic_friction> 0.2 </dynamic_friction>
481 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
482 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
483 </contact>
484 <contact type="STRUCTURE" name="LRfloat">
485 <location unit="IN">
486 <x>160.71</x>
487 <y>-56.889</y>
488 <z>38.5</z>
489 </location>
490 <static_friction> 0.5 </static_friction>
491 <dynamic_friction> 0.2 </dynamic_friction>
492 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
493 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
494 </contact>
495 <contact type="STRUCTURE" name="RRfloat">
496 <location unit="IN">
497 <x>160.71</x>
498 <y>56.889</y>
499 <z>38.5</z>
500 </location>
501 <static_friction> 0.5 </static_friction>
502 <dynamic_friction> 0.2 </dynamic_friction>
503 <spring_coeff unit="LBS/FT"> 1830.15 </spring_coeff>
504 <damping_coeff unit="LBS/FT/SEC"> 366.03 </damping_coeff>
505 </contact>
506
507 <!-- contact 19, 20, 21, 22 -->
508 <contact type="BOGEY" name="LFFloatGear">
509 <location unit="IN">
510 <x>-44.8</x>
511 <y>-56.889</y>
512 <z>0</z>
513 </location>
514 <static_friction> 0.05</static_friction>
515 <dynamic_friction>0.05</dynamic_friction>
516 <rolling_friction>0.02</rolling_friction>
517 <spring_coeff unit="LBS/FT"> 5400 </spring_coeff>
518 <damping_coeff unit="LBS/FT/SEC"> 1600 </damping_coeff>
519 <max_steer unit="DEG">360</max_steer>
520 <brake_group>NONE</brake_group>
521 <retractable>1</retractable>
522 </contact>
523 <contact type="BOGEY" name="RFFloatGear">
524 <location unit="IN">
525 <x>-44.8</x>
526 <y>56.889</y>
527 <z>0</z>
528 </location>
529 <static_friction> 0.05</static_friction>
530 <dynamic_friction>0.05</dynamic_friction>
531 <rolling_friction>0.02</rolling_friction>
532 <spring_coeff unit="LBS/FT"> 5400 </spring_coeff>
533 <damping_coeff unit="LBS/FT/SEC"> 1600 </damping_coeff>
534 <max_steer unit="DEG">360</max_steer>
535 <brake_group>NONE</brake_group>
536 <retractable>1</retractable>
537 </contact>
538 <contact type="BOGEY" name="LMFloatGear">
539 <location unit="IN">
540 <x>73.1</x>
541 <y>-56.889</y>
542 <z>0</z>
543 </location>
544 <static_friction> 0.80</static_friction>
545 <dynamic_friction>0.50</dynamic_friction>
546 <rolling_friction>0.02</rolling_friction>
547 <spring_coeff unit="LBS/FT"> 5400 </spring_coeff>
548 <damping_coeff unit="LBS/FT/SEC"> 1600 </damping_coeff>
549 <max_steer unit="DEG">0</max_steer>
550 <brake_group>LEFT</brake_group>
551 <retractable>1</retractable>
552 </contact>
553 <contact type="BOGEY" name="RMFloatGear">
554 <location unit="IN">
555 <x>73.1</x>
556 <y>56.889</y>
557 <z>0</z>
558 </location>
559 <static_friction> 0.80</static_friction>
560 <dynamic_friction>0.50</dynamic_friction>
561 <rolling_friction>0.02</rolling_friction>
562 <spring_coeff unit="LBS/FT"> 5400 </spring_coeff>
563 <damping_coeff unit="LBS/FT/SEC"> 1600 </damping_coeff>
564 <max_steer unit="DEG">0</max_steer>
565 <brake_group>RIGHT</brake_group>
566 <retractable>1</retractable>
567 </contact>
568
569 <!-- contact 23 = 2 wheels on nose ski.
570 The ski wheels friction would have a
571 rolling friction on a hard surface and
572 slide or drag on snow -->
573 <!-- contact 23, 24, 25 -->
574 <contact type="BOGEY" name="NOSE_SKI">
575 <location unit="IN">
576 <x> 18.44 </x>
577 <y> 0 </y>
578 <z> -10 </z>
579 </location>
580 <static_friction> 0.8 </static_friction>
581 <dynamic_friction> 0.5 </dynamic_friction>
582 <rolling_friction> 0.02 </rolling_friction>
583 <spring_coeff unit="LBS/FT"> 1800 </spring_coeff>
584 <damping_coeff unit="LBS/FT/SEC"> 600 </damping_coeff>
585 <max_steer unit="DEG"> 10 </max_steer>
586 <brake_group> NONE </brake_group>
587 <retractable>0</retractable>
588 </contact>
589 <contact type="BOGEY" name="LEFT_SKI">
590 <location unit="IN">
591 <x> 86.4 </x>
592 <y> -51 </y>
593 <z> -10 </z>
594 </location>
595 <static_friction> 0.8 </static_friction>
596 <dynamic_friction> 0.5 </dynamic_friction>
597 <rolling_friction> 0.02 </rolling_friction>
598 <spring_coeff unit="LBS/FT"> 50 </spring_coeff>
599 <damping_coeff unit="LBS/FT/SEC"> 15 </damping_coeff>
600 <max_steer unit="DEG"> 0.0 </max_steer>
601 <brake_group> NONE </brake_group>
602 <retractable>0</retractable>
603 </contact>
604 <contact type="BOGEY" name="RIGHT_SKI">
605 <location unit="IN">
606 <x> 86.4 </x>
607 <y> 52 </y>
608 <z> -10 </z>
609 </location>
610 <static_friction> 0.8 </static_friction>
611 <dynamic_friction> 0.5 </dynamic_friction>
612 <rolling_friction> 0.02 </rolling_friction>
613 <spring_coeff unit="LBS/FT"> 50 </spring_coeff>
614 <damping_coeff unit="LBS/FT/SEC"> 15 </damping_coeff>
615 <max_steer unit="DEG"> 0.0 </max_steer>
616 <brake_group>NONE </brake_group>
617 <retractable>0</retractable>
618 </contact>
619
620 </ground_reactions>
621
622 <propulsion>
623 <engine file="eng_io320">
624 <!--
625 <location unit="IN">
626 <x> -19.7 </x>
627 <y> 0 </y>
628 <z> 26.6 </z>
629 </location>
630 <orient unit="DEG">
631 <roll> 0.0 </roll>
632 <pitch> 0 </pitch>
633 <yaw> 0 </yaw>
634 </orient>
635 -->
636 <feed>4</feed> <!-- from intermediate tank (float chamber 4) -->
637 <thruster file="prop_75in2f">
638 <!-- <thruster file="prop_75in_2f_NACA_15-30deg"> --> <!-- for settling -->
639 <location unit="IN">
640 <x> -37.7 </x>
641 <y> 0 </y>
642 <z> 29.3 </z>
643 </location>
644 <orient unit="DEG">
645 <roll> 0.0 </roll>
646 <pitch> 0.0 </pitch>
647 <yaw> 0.0 </yaw>
648 </orient>
649 <sense> 1 </sense>
650 <p_factor> 15 </p_factor>
651 </thruster>
652 </engine>
653
654 <engine file="eng_io360">
655 <!--
656 <location unit="IN">
657 <x> -19.7 </x>
658 <y> 0 </y>
659 <z> 26.6 </z>
660 </location>
661 <orient unit="DEG">
662 <roll> 0.0 </roll>
663 <pitch> 0 </pitch>
664 <yaw> 0 </yaw>
665 </orient>
666 -->
667 <feed>4</feed> <!-- from intermediate tank (float chamber 4) -->
668 <thruster file="prop_76in2f_NACA_20deg">
669 <!-- <thruster file="prop_76in2f_NACA_15-25deg"> --> <!-- for settling -->
670 <location unit="IN">
671 <x> -37.7 </x>
672 <y> 0 </y>
673 <z> 29.3 </z>
674 </location>
675 <orient unit="DEG">
676 <roll> 0.0 </roll>
677 <pitch> 0.0 </pitch>
678 <yaw> 0.0 </yaw>
679 </orient>
680 <sense> 1 </sense>
681 <p_factor> 15 </p_factor>
682 </thruster>
683 </engine>
684
685 <!-- Tank number 0 -->
686 <tank type="FUEL">
687 <location unit="IN">
688 <x> 48 </x>
689 <y>-44 </y>
690 <z> 55 </z>
691 </location>
692 <capacity unit="LBS">129.43</capacity>
693 <contents unit="LBS">0.0 </contents>
694 <type>AVGAS</type>
695 </tank>
696
697 <!-- Tank number 1 -->
698 <tank type="FUEL">
699 <location unit="IN">
700 <x> 48 </x>
701 <y> 44 </y>
702 <z> 55 </z>
703 </location>
704 <capacity unit="LBS">129.43</capacity>
705 <contents unit="LBS">0.0 </contents>
706 <type>AVGAS</type>
707 </tank>
708
709 <!-- Tank number 2 -->
710 <tank type="FUEL">
711 <location unit="IN">
712 <x> 48 </x>
713 <y>-44 </y>
714 <z> 55 </z>
715 </location>
716 <capacity unit="LBS">204</capacity>
717 <contents unit="LBS">0.0 </contents>
718 <type>AVGAS</type>
719 </tank>
720
721 <!-- Tank number 3 -->
722 <tank type="FUEL">
723 <location unit="IN">
724 <x> 48 </x>
725 <y> 44 </y>
726 <z> 55 </z>
727 </location>
728 <capacity unit="LBS">204</capacity>
729 <contents unit="LBS">0.0 </contents>
730 <type>AVGAS</type>
731 </tank>
732
733 <!-- Tank number 4, Float chamber -->
734 <tank type="FUEL">
735 <location unit="IN">
736 <x>-10 </x>
737 <y> 0 </y>
738 <z> 26 </z>
739 </location>
740 <capacity unit="LBS">0.1</capacity>
741 <contents unit="LBS">0.0</contents>
742 <priority>1</priority>
743 <type>AVGAS</type>
744 </tank>
745
746 </propulsion>
747
748 <flight_control name="FCS: c172">
749 <channel name="Pitch">
750 <kinematic name="fcs/elevator-cmd-norm-filtered">
751 <input>fcs/elevator-cmd-norm</input>
752 <traverse>
753 <setting>
754 <position>-1</position>
755 <time>0</time>
756 </setting>
757 <setting>
758 <position>1</position>
759 <time>0.30</time>
760 </setting>
761 </traverse>
762 </kinematic>
763
764 <switch name="fcs/stick-force-per-g-qbarUW-psf">
765 <default value="0"/>
766 <test logic="OR" value="aero/qbarUW-psf">
767 fcs/stick-force-per-g EQ 1
768 </test>
769 </switch>
770
771 <scheduled_gain name="fcs/elevator-cmd-norm-gain">
772 <input>fcs/elevator-cmd-norm-filtered</input>
773 <table>
774 <independentVar>fcs/stick-force-per-g-qbarUW-psf</independentVar>
775 <tableData>
776 15 1.0000
777 16 0.9375
778 18 0.8333
779 20 0.7500
780 22 0.6818
781 24 0.6250
782 26 0.5769
783 28 0.5357
784 30 0.5000
785 32 0.4688
786 34 0.4412
787 36 0.4167
788 38 0.3947
789 40 0.3750
790 42 0.3571
791 44 0.3409
792 46 0.3261
793 48 0.3125
794 50 0.3000
795 52 0.2885
796 54 0.2778
797 56 0.2679
798 58 0.2586
799 60 0.2500
800 62 0.2419
801 64 0.2344
802 66 0.2273
803 68 0.2206
804 70 0.2143
805 72 0.2083
806 74 0.2027
807 76 0.1974
808 78 0.1923
809 80 0.1875
810 82 0.1829
811 84 0.1786
812 </tableData>
813 </table>
814 <clipto>
815 <min>-1</min>
816 <max>1</max>
817 </clipto>
818 </scheduled_gain>
819
820 <summer name="Pitch Trim Sum">
821 <input>fcs/elevator-cmd-norm-gain</input>
822 <input>fcs/pitch-trim-cmd-norm</input>
823 <clipto>
824 <min>-1</min>
825 <max>1</max>
826 </clipto>
827 <output>/sim/model/c172p/cockpit/yoke-elevator</output>
828 </summer>
829
830 <aerosurface_scale name="Elevator Control">
831 <input>fcs/pitch-trim-sum</input>
832 <gain>0.01745</gain>
833 <range>
834 <min>-28</min>
835 <max>23</max>
836 </range>
837 <output>fcs/elevator-pos-rad</output>
838 </aerosurface_scale>
839
840 <aerosurface_scale name="Elevator Position Normalized">
841 <input>fcs/elevator-pos-deg</input>
842 <domain>
843 <min>-28</min>
844 <max>23</max>
845 </domain>
846 <range>
847 <min>-1</min>
848 <max>1</max>
849 </range>
850 <output>fcs/elevator-pos-norm</output>
851 </aerosurface_scale>
852 </channel>
853
854 <channel name="Roll">
855 <kinematic name="fcs/aileron-cmd-norm-filtered">
856 <input>fcs/aileron-cmd-norm</input>
857 <traverse>
858 <setting>
859 <position>-1</position>
860 <time>0</time>
861 </setting>
862 <setting>
863 <position>1</position>
864 <time>0.15</time>
865 </setting>
866 </traverse>
867 </kinematic>
868
869 <scheduled_gain name="fcs/aileron-cmd-norm-gain">
870 <input>fcs/aileron-cmd-norm-filtered</input>
871 <table>
872 <independentVar>fcs/stick-force-per-g-qbarUW-psf</independentVar>
873 <tableData>
874 30 1.0000
875 32 0.9375
876 34 0.8824
877 36 0.8333
878 38 0.7895
879 40 0.7500
880 42 0.7143
881 44 0.6818
882 46 0.6522
883 48 0.6250
884 50 0.6000
885 52 0.5769
886 54 0.5556
887 56 0.5357
888 58 0.5172
889 60 0.5000
890 62 0.4839
891 64 0.4688
892 66 0.4545
893 68 0.4412
894 70 0.4286
895 72 0.4167
896 74 0.4054
897 76 0.3947
898 78 0.3846
899 80 0.3750
900 82 0.3659
901 84 0.3571
902 </tableData>
903 </table>
904 <clipto>
905 <min>-1</min>
906 <max>1</max>
907 </clipto>
908 </scheduled_gain>
909
910 <summer name="Roll Trim Sum">
911 <input>fcs/aileron-cmd-norm-gain</input>
912 <input>fcs/roll-trim-cmd-norm</input>
913 <clipto>
914 <min>-1</min>
915 <max>1</max>
916 </clipto>
917 <output>/sim/model/c172p/cockpit/yoke-aileron</output>
918 </summer>
919
920 <summer name="Yoke Roll Sum">
921 <!--
922 Currently no aileron trim feedback to yoke. The C172 has an asymetrically mounted wing in order to
923 compensate for roll-forces in cruise. This is simulated by the aileron-trim prop.
924 Aileron _input_ (yoke) should be neutral, when the input device (joystick) is neutral.
925 Also, don't confuse with rudder-trim (which there is an option for).
926 For disuccsion see: https://github.com/c172p-team/c172p/issues/1471
927 -->
928 <input>fcs/aileron-cmd-norm-filtered</input>
929 <clipto>
930 <min>-1</min>
931 <max>1</max>
932 </clipto>
933 <output>/sim/model/c172p/cockpit/yoke-aileron</output>
934 </summer>
935
936 <aerosurface_scale name="Left Aileron Control">
937 <input>fcs/roll-trim-sum</input>
938 <gain>0.01745</gain>
939 <range>
940 <min>-20</min>
941 <max>15</max>
942 </range>
943 <output>fcs/left-aileron-pos-rad</output>
944 </aerosurface_scale>
945
946 <aerosurface_scale name="Left Aileron Position Normalized">
947 <input>fcs/left-aileron-pos-deg</input>
948 <domain>
949 <min>-20</min>
950 <max>15</max>
951 </domain>
952 <range>
953 <min>-1</min>
954 <max>1</max>
955 </range>
956 <output>fcs/left-aileron-pos-norm</output>
957 </aerosurface_scale>
958
959 <aerosurface_scale name="Right Aileron Control">
960 <input>-fcs/roll-trim-sum</input>
961 <gain>0.01745</gain>
962 <range>
963 <min>-20</min>
964 <max>15</max>
965 </range>
966 <output>fcs/right-aileron-pos-rad</output>
967 </aerosurface_scale>
968
969 <aerosurface_scale name="Right Aileron Position Normalized">
970 <input>fcs/right-aileron-pos-deg</input>
971 <domain>
972 <min>-20</min>
973 <max>15</max>
974 </domain>
975 <range>
976 <min>1</min>
977 <max>-1</max>
978 </range>
979 <output>fcs/right-aileron-pos-norm</output>
980 </aerosurface_scale>
981 </channel>
982
983 <channel name="Yaw">
984 <kinematic name="fcs/rudder-cmd-norm-filtered">
985 <input>fcs/rudder-cmd-norm</input>
986 <traverse>
987 <setting>
988 <position>-1</position>
989 <time>0</time>
990 </setting>
991 <setting>
992 <position>1</position>
993 <time>0.15</time>
994 </setting>
995 </traverse>
996 </kinematic>
997
998 <scheduled_gain name="fcs/rudder-cmd-norm-gain">
999 <input>fcs/rudder-cmd-norm-filtered</input>
1000 <table>
1001 <independentVar>fcs/stick-force-per-g-qbarUW-psf</independentVar>
1002 <tableData>
1003 30 1.0000
1004 32 0.9375
1005 34 0.8824
1006 36 0.8333
1007 38 0.7895
1008 40 0.7500
1009 42 0.7143
1010 44 0.6818
1011 46 0.6522
1012 48 0.6250
1013 50 0.6000
1014 52 0.5769
1015 54 0.5556
1016 56 0.5357
1017 58 0.5172
1018 60 0.5000
1019 62 0.4839
1020 64 0.4688
1021 66 0.4545
1022 68 0.4412
1023 70 0.4286
1024 72 0.4167
1025 74 0.4054
1026 76 0.3947
1027 78 0.3846
1028 80 0.3750
1029 82 0.3659
1030 84 0.3571
1031 </tableData>
1032 </table>
1033 <clipto>
1034 <min>-1</min>
1035 <max>1</max>
1036 </clipto>
1037 </scheduled_gain>
1038
1039 <summer name="Yaw Trim Sum">
1040 <input>fcs/rudder-cmd-norm-gain</input>
1041 <input>fcs/yaw-trim-cmd-norm</input>
1042 <input>fcs/yaw-trim-cockpit</input>
1043 <clipto>
1044 <min>-1</min>
1045 <max>1</max>
1046 </clipto>
1047 <output>/sim/model/c172p/cockpit/pedals-rudder</output>
1048 </summer>
1049
1050 <aerosurface_scale name="Rudder Control">
1051 <input>fcs/yaw-trim-sum</input>
1052 <gain>0.01745</gain>
1053 <range>
1054 <min>-16</min>
1055 <max>16</max>
1056 </range>
1057 <output>fcs/rudder-pos-rad</output>
1058 </aerosurface_scale>
1059
1060 <aerosurface_scale name="Rudder Position Normalized">
1061 <input>fcs/rudder-pos-deg</input>
1062 <domain>
1063 <min>-16</min>
1064 <max>16</max>
1065 </domain>
1066 <range>
1067 <min>-1</min>
1068 <max>1</max>
1069 </range>
1070 <output>fcs/rudder-pos-norm</output>
1071 </aerosurface_scale>
1072
1073 </channel>
1074
1075 <channel name="Braking">
1076 <summer name="fcs/parking-brake-sum">
1077 <input>/sim/model/c172p/securing/chock-visible</input>
1078 <input>/fdm/jsbsim/damage/repairing</input>
1079 <input>/controls/gear/brake-parking</input>
1080 </summer>
1081
1082 <fcs_function name="fcs/left-brake-sum">
1083 <function>
1084 <max>
1085 <property>fcs/parking-brake-sum</property>
1086 <property>/controls/gear/brake-left</property>
1087 </max>
1088 </function>
1089 <output>fcs/left-brake-cmd-norm</output>
1090 </fcs_function>
1091
1092 <fcs_function name="fcs/right-brake-sum">
1093 <function>
1094 <max>
1095 <property>fcs/parking-brake-sum</property>
1096 <property>/controls/gear/brake-right</property>
1097 </max>
1098 </function>
1099 <output>fcs/right-brake-cmd-norm</output>
1100 </fcs_function>
1101 </channel>
1102
1103 <channel name="NWS">
1104 <switch name="fcs/nws-enabled">
1105 <default value="0"/>
1106 <test logic="OR" value="1"> <!-- NWS mechanically centered if gear is fully extended -->
1107 /gear/gear[0]/compression-norm gt 0.001
1108 </test>
1109 </switch>
1110
1111 <fcs_function name="left brake nose-gear">
1112 <function name="fcs/nose-gear-left-brake-steer-factor">
1113 <product>
1114 <property>fcs/left-brake-cmd-norm</property>
1115 <value>-1</value>
1116 </product>
1117 </function>
1118 </fcs_function>
1119
1120 <fcs_function name="right brake nose-gear">
1121 <function name="fcs/nose-gear-right-brake-steer-factor">
1122 <product>
1123 <property>fcs/right-brake-cmd-norm</property>
1124 <value>1</value>
1125 </product>
1126 </function>
1127 </fcs_function>
1128
1129 <summer name="fcs/brake-sum">
1130 <input>fcs/nose-gear-right-brake-steer-factor</input>
1131 <input>fcs/nose-gear-left-brake-steer-factor</input>
1132 </summer>
1133
1134 <switch name="fcs/brake-influence-enabled"> <!-- brake should not influence nws if the aircraft is not moving -->
1135 <default value="0"/>
1136 <test logic="OR" value="1">
1137 /gear/gear[0]/rollspeed-ms gt 0.25
1138 </test>
1139 </switch>
1140
1141 <fcs_function name="fcs/brake-sum-adjusted">
1142 <function>
1143 <product>
1144 <property>fcs/brake-influence-enabled</property>
1145 <property>fcs/brake-sum</property>
1146 </product>
1147 </function>
1148 </fcs_function>
1149
1150 <fcs_function name="fcs/nws-cmd-deg"> <!-- Drive the nose wheel with the rudder and brakes -->
1151 <function>
1152 <table>
1153 <independentVar lookup="row">fcs/brake-sum-adjusted</independentVar>
1154 <independentVar lookup="column">/controls/flight/rudder</independentVar>
1155 <tableData>
1156 -1 0 1
1157 -1 -30 0 10
1158 0 -10 0 10
1159 1 -10 0 30
1160 </tableData>
1161 </table>
1162 </function>
1163 </fcs_function>
1164
1165 <fcs_function name="fcs/nws-cmd-deg-adjusted">
1166 <function>
1167 <product>
1168 <property>fcs/nws-cmd-deg</property>
1169 <property>fcs/nws-enabled</property>
1170 </product>
1171 </function>
1172 </fcs_function>
1173
1174 <actuator name="fcs/steer-deg-actuator">
1175 <input>fcs/nws-cmd-deg-adjusted</input>
1176 <rate_limit>80</rate_limit> <!-- 80 deg / s , or 1/8 second to full deflection with NWS -->
1177 <output>fcs/steer-pos-deg-actuator</output>
1178 </actuator>
1179 <switch name="fcs/steer-pos-deg">
1180 <default value="fcs/steer-pos-deg-actuator"/>
1181 <test value="external_reactions/towbar/steer-deg">
1182 external_reactions/towbar/attached eq 1
1183 gear/unit[0]/WOW eq 1
1184 </test>
1185 </switch>
1186 </channel>
1187
1188 <channel name="Flaps">
1189 <!-- Disable flap movement if electrical voltage is too low -->
1190 <switch name="Flaps Command">
1191 <default value="fcs/flap-cmd-norm"/>
1192 <output>fcs/flap-input-norm</output>
1193
1194 <!-- Route back the (normalized) output of the <kinematic>
1195 to its input in order to disable it.
1196 -->
1197 <test logic="AND" value="fcs/flap-pos-norm">
1198 /systems/electrical/outputs/flaps le 16
1199 </test>
1200 </switch>
1201
1202 <kinematic name="Flaps Control">
1203 <input>fcs/flap-input-norm</input>
1204 <traverse>
1205 <setting>
1206 <position>0</position>
1207 <time>0</time>
1208 </setting>
1209 <setting>
1210 <position>10</position>
1211 <time>2</time>
1212 </setting>
1213 <setting>
1214 <position>20</position>
1215 <time>1</time>
1216 </setting>
1217 <setting>
1218 <position>30</position>
1219 <time>1</time>
1220 </setting>
1221 </traverse>
1222 <output>fcs/flap-pos-deg</output>
1223 </kinematic>
1224
1225 <aerosurface_scale name="Flap Position Normalizer">
1226 <input>fcs/flap-pos-deg</input>
1227 <domain>
1228 <min>0</min> <!-- Flaps actual minimum position -->
1229 <max>30</max> <!-- Flaps actual maximum position -->
1230 </domain>
1231 <range>
1232 <min>0</min> <!-- Flaps normalized minimum position -->
1233 <max>1</max> <!-- Flaps normalized maximum position -->
1234 </range>
1235 <output>fcs/flap-pos-norm</output>
1236 </aerosurface_scale>
1237
1238 <kinematic name="Flaps Lever">
1239 <input>/controls/flight/flaps</input>
1240 <traverse>
1241 <setting>
1242 <position>0</position>
1243 <time>0</time>
1244 </setting>
1245 <setting>
1246 <position>1</position>
1247 <time>1</time>
1248 </setting>
1249 </traverse>
1250 <output>/sim/model/c172p/cockpit/flaps-lever</output>
1251 </kinematic>
1252 </channel>
1253
1254 <channel name="Cowl Grill">
1255 <switch name="cooling-factor-winterkit">
1256 <!-- winter kit reduces cooling airflow -->
1257 <default value=".514"/>
1258 <test logic="AND" value="0.20">
1259 /engines/active-engine/winter-kit-installed EQ 1
1260 </test>
1261 <output>/engines/active-engine/cooling-factor-winterkit</output>
1262 </switch>
1263 <aerosurface_scale name="icing-nose-air-inlet">
1264 <!-- ice accumulation in nose inlets reduces cooling airflow -->
1265 <input>/fdm/jsbsim/ice/fuselage</input> <!-- ice in inches -->
1266 <gain>1.0</gain>
1267 <zero_centered>false</zero_centered>
1268 <domain>
1269 <min>0.00</min>
1270 <max>0.010</max> <!-- at this inch the max-range is output (thicker ice does not increase effect further) -->
1271 </domain>
1272 <range>
1273 <!-- reducing factor: 1=no reduction/0=full blocked; min=no-ice, max=full-ice -->
1274 <min>1.00</min>
1275 <max>0.75</max>
1276 </range>
1277 <clipto>
1278 <min>0.75</min>
1279 <max>1.00</max>
1280 </clipto>
1281 <output>/engines/active-engine/cooling-factor-noseicing</output>
1282 </aerosurface_scale>
1283 <fcs_function name="engine-cooling-factor">
1284 <function>
1285 <product>
1286 <property>/engines/active-engine/cooling-factor-winterkit</property>
1287 <property>/engines/active-engine/cooling-factor-noseicing</property>
1288 </product>
1289 </function>
1290 <clipto>
1291 <min>0</min>
1292 <max>1</max>
1293 </clipto>
1294 <output>/engines/active-engine/cooling-factor</output> <!-- final cooling factor to engine -->
1295 </fcs_function>
1296 </channel>
1297
1298 <channel name="Mixture">
1299 <!-- If the engine was primed enough times and throttle
1300 is in starter position, then mixture is 1.
1301 -->
1302 <fcs_function name="fcs/mixture-primer-cmd">
1303 <function>
1304 <table>
1305 <independentVar lookup="row">/controls/engines/engine/primer</independentVar>
1306 <independentVar lookup="column">/controls/engines/current-engine/throttle</independentVar>
1307 <tableData>
1308 0.09 0.1 0.5 0.51
1309 2 0 0 0 0
1310 3 0 1 1 0
1311 4 0 1 1 0
1312 5 0 1 1 0
1313 6 0 1 1 0
1314 7 0 0 0 0
1315 </tableData>
1316 </table>
1317 </function>
1318 </fcs_function>
1319
1320 <!-- Mixture unit
1321 Used for normal operation.
1322 Mixture lever 0.0->1.0 setting is translated to jsbsim internal values.
1323 -->
1324 <fcs_function name="fcs/mixture-unit-cmd">
1325 <function>
1326 <product>
1327 <value>1.27</value> <!-- 1.65 / 1.3 -->
1328 <sqrt>
1329 <property>/controls/engines/current-engine/mixture</property>
1330 </sqrt>
1331 </product>
1332 </function>
1333 <output>fcs/mixture-cmd-norm[0]</output>
1334 <output>fcs/mixture-cmd-norm[1]</output>
1335 </fcs_function>
1336
1337 <pure_gain name="fcs/mixture-primer[0]">
1338 <input>fcs/mixture-cmd-norm[0]</input>
1339 <gain>fcs/mixture-primer-cmd</gain>
1340 </pure_gain>
1341
1342 <pure_gain name="fcs/mixture-primer[1]">
1343 <input>fcs/mixture-cmd-norm[1]</input>
1344 <gain>fcs/mixture-primer-cmd</gain>
1345 </pure_gain>
1346
1347 <!-- Primer logic for 160 HP engine -->
1348 <switch name="Mixture Position 160 HP">
1349 <default value="fcs/mixture-cmd-norm[0]"/>
1350 <output>fcs/mixture-pos-norm[0]</output>
1351 <!-- Use primer if used and engine is cold. If engine
1352 is warm, then the mixture lever is used.
1353 -->
1354 <test logic="AND" value="fcs/mixture-primer[0]">
1355 /controls/engines/engine/use-primer eq 1
1356 /engines/engine[0]/oil-temperature-degf le 75
1357 </test>
1358 </switch>
1359
1360 <!-- Primer logic for 180 HP engine -->
1361 <switch name="Mixture Position 180 HP">
1362 <default value="fcs/mixture-cmd-norm[1]"/>
1363 <output>fcs/mixture-pos-norm[1]</output>
1364 <!-- Use primer if used and engine is cold. If engine
1365 is warm, then the mixture lever is used.
1366 -->
1367 <test logic="AND" value="fcs/mixture-primer[1]">
1368 /controls/engines/engine/use-primer eq 1
1369 /engines/engine[1]/oil-temperature-degf le 75
1370 </test>
1371 </switch>
1372 </channel>
1373
1374 <channel name="Landing Gear">
1375 <!-- Disable gear movement if electrical voltage is too low -->
1376 <switch name="Gear Command">
1377 <default value="gear/gear-cmd-norm"/>
1378 <output>gear/gear-input-norm</output>
1379 <!-- Route back the (normalized) output of the <kinematic>
1380 to its input in order to disable it.
1381 -->
1382 <test logic="OR" value="gear/gear-pos-norm">
1383 /sim/model/c172p/hydraulics/hydraulic-pump eq 0
1384 </test>
1385 </switch>
1386 <kinematic name="Gr">
1387 <input>gear/gear-input-norm</input>
1388 <traverse>
1389 <setting>
1390 <position>0</position>
1391 <time>0 </time>
1392 </setting>
1393 <setting>
1394 <position>1</position>
1395 <time>5</time>
1396 </setting>
1397 </traverse>
1398 <output>gear/gear-pos-norm</output>
1399 </kinematic>
1400
1401 <kinematic name="/controls/gear/water-rudder-down">
1402 <input>/controls/gear/water-rudder</input>
1403 <traverse>
1404 <setting>
1405 <position>0</position>
1406 <time>0 </time>
1407 </setting>
1408 <setting>
1409 <position>1</position>
1410 <time>1</time>
1411 </setting>
1412 </traverse>
1413 </kinematic>
1414 </channel>
1415 </flight_control>
1416
1417 <aerodynamics>
1418 <property value="0.0">ice/wing</property>
1419
1420 <alphalimits unit="RAD">
1421 <min>-0.087</min>
1422 <max>0.28</max>
1423 </alphalimits>
1424
1425 <hysteresis_limits unit="RAD">
1426 <min>0.15</min>
1427 <max>0.297</max>
1428 </hysteresis_limits>
1429
1430 <function name="aero/function/kCDge">
1431 <description>Change_in_drag_due_to_ground_effect</description>
1432 <table>
1433 <independentVar>aero/h_b-mac-ft</independentVar>
1434 <tableData>
1435 0.0000 0.4800
1436 0.1000 0.5150
1437 0.1500 0.6290
1438 0.2000 0.7090
1439 0.3000 0.8150
1440 0.4000 0.8820
1441 0.5000 0.9280
1442 0.6000 0.9620
1443 0.7000 0.9880
1444 0.8000 1.0000
1445 0.9000 1.0000
1446 1.0000 1.0000
1447 1.1000 1.0000
1448 </tableData>
1449 </table>
1450 </function>
1451
1452 <function name="aero/function/kCLge">
1453 <description>Change_in_lift_due_to_ground_effect</description>
1454 <table>
1455 <independentVar>aero/h_b-mac-ft</independentVar>
1456 <tableData>
1457 0.0000 1.2030
1458 0.1000 1.1270
1459 0.1500 1.0900
1460 0.2000 1.0730
1461 0.3000 1.0460
1462 0.4000 1.0280
1463 0.5000 1.0190
1464 0.6000 1.0130
1465 0.7000 1.0080
1466 0.8000 1.0060
1467 0.9000 1.0030
1468 1.0000 1.0020
1469 1.1000 1.0000
1470 </tableData>
1471 </table>
1472 </function>
1473
1474 <function name="aero/function/vel-propwash-fps">
1475 <description> propeller induced velocity </description>
1476 <sum>
1477 <property>propulsion/engine/prop-induced-velocity_fps</property>
1478 <property>propulsion/engine[1]/prop-induced-velocity_fps</property>
1479 </sum>
1480 </function>
1481
1482 <function name="aero/function/qbar-propwash-psf">
1483 <description> q bar due to the propeller induced velocity </description>
1484 <product>
1485 <property>aero/function/vel-propwash-fps</property>
1486 <property>aero/function/vel-propwash-fps</property>
1487 <property>atmosphere/rho-slugs_ft3</property>
1488 <value>0.5</value>
1489 </product>
1490 </function>
1491
1492 <function name="aero/function/velocity-induced-fps">
1493 <description> velocity including the propulsion induced velocity.</description>
1494 <sum>
1495 <property>velocities/u-aero-fps</property>
1496 <property>propulsion/engine/prop-induced-velocity_fps</property>
1497 <property>propulsion/engine[1]/prop-induced-velocity_fps</property>
1498 </sum>
1499 </function>
1500
1501 <function name="aero/function/qbar-induced-psf">
1502 <description> q bar including the propulsion induced velocity.</description>
1503 <product>
1504 <property>aero/function/velocity-induced-fps</property>
1505 <property>aero/function/velocity-induced-fps</property>
1506 <property>atmosphere/rho-slugs_ft3</property>
1507 <value>0.5</value>
1508 </product>
1509 </function>
1510
1511 <function name="aero/function/total-wing-damage">
1512 <description>Total damage on wings</description>
1513 <product>
1514 <sum>
1515 <property>wing-damage/left-wing</property>
1516 <property>wing-damage/right-wing</property>
1517 </sum>
1518 <value>0.5</value>
1519 </product>
1520 </function>
1521
1522 <function name="fcs/aileron-pos-rad-avgd">
1523 <description>Averaged aileron position</description>
1524 <avg>
1525 <property>fcs/left-aileron-pos-rad</property>
1526 <product>
1527 <property>fcs/right-aileron-pos-rad</property>
1528 <value>-1</value>
1529 </product>
1530 </avg>
1531 </function>
1532
1533 <axis name="DRAG">
1534
1535 <!--taken from SenecaII by Torsten Dreyer-->
1536 <function name="aero/coefficient/CDicew">
1537 <description>Drag_due_to_ice_on_wing</description>
1538 <product>
1539 <property>aero/qbar-area</property>
1540 <table>
1541 <independentVar>ice/wing</independentVar>
1542 <tableData>
1543 0.0 0
1544 0.5 0.12
1545 1.0 0.24
1546 2.0 0.6
1547 </tableData>
1548 </table>
1549 </product>
1550 </function>
1551
1552 <function name="aero/coefficient/CDo">
1553 <description>Drag_at_zero_lift</description>
1554 <product>
1555 <property>aero/qbar-psf</property>
1556 <property>metrics/Sw-sqft</property>
1557 <value>0.027</value>
1558 <property>gear/drag-coef[1]</property> <!-- bush wheels 26" -->
1559 <property>gear/drag-coef[2]</property> <!-- bush wheels 36" -->
1560 <property>gear/drag-coef[3]</property> <!-- Floats -->
1561 <property>gear/drag-coef[4]</property> <!-- Amphibious -->
1562 <property>gear/drag-coef[5]</property> <!-- Ski -->
1563 <property>gear/drag-coef[6]</property> <!-- Amphibious gear extended -->
1564 </product>
1565 </function>
1566
1567 <function name="aero/coefficient/CDDf">
1568 <description>Delta_drag_due_to_flap_deflection</description>
1569 <product>
1570 <property>aero/qbar-psf</property>
1571 <property>metrics/Sw-sqft</property>
1572 <property>aero/function/kCDge</property>
1573 <table>
1574 <independentVar>fcs/flap-pos-deg</independentVar>
1575 <tableData>
1576 0.0000 0.0000
1577 10.0000 0.0070
1578 20.0000 0.0120
1579 30.0000 0.0180
1580 </tableData>
1581 </table>
1582 </product>
1583 </function>
1584
1585 <function name="aero/coefficient/CDwbh">
1586 <description>Drag_due_to_alpha</description>
1587 <product>
1588 <property>aero/qbar-psf</property>
1589 <property>metrics/Sw-sqft</property>
1590 <property>aero/function/kCDge</property>
1591 <table>
1592 <independentVar lookup="row">aero/alpha-rad</independentVar>
1593 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
1594 <tableData>
1595 0 10 20 30
1596 -0.0873 0.0041 0 0.0005 0.0014
1597 -0.0698 0.0013 0.0004 0.0025 0.0041
1598 -0.0524 0.0001 0.0023 0.0059 0.0084
1599 -0.0349 0.0003 0.0057 0.0108 0.0141
1600 -0.0175 0.002 0.0105 0.0172 0.0212
1601 0.0000 0.0052 0.0168 0.0251 0.0299
1602 0.0175 0.0099 0.0248 0.0346 0.0402
1603 0.0349 0.0162 0.0342 0.0457 0.0521
1604 0.0524 0.024 0.0452 0.0583 0.0655
1605 0.0698 0.0334 0.0577 0.0724 0.0804
1606 0.0873 0.0442 0.0718 0.0881 0.0968
1607 0.1047 0.0566 0.0874 0.1053 0.1148
1608 0.1222 0.0706 0.1045 0.124 0.1343
1609 0.1396 0.086 0.1232 0.1442 0.1554
1610 0.1571 0.0962 0.1353 0.1573 0.169
1611 0.1745 0.1069 0.1479 0.1708 0.183
1612 0.1920 0.118 0.161 0.1849 0.1975
1613 0.2094 0.1298 0.1746 0.1995 0.2126
1614 0.2269 0.1424 0.1892 0.2151 0.2286
1615 0.2443 0.1565 0.2054 0.2323 0.2464
1616 0.3491 0.2537 0.3298 0.3755 0.3983
1617 0.5236 0.45 0.585 0.666 0.7065
1618 0.6981 0.7 0.91 1.036 1.099
1619 0.8727 1 1.3 1.48 1.57
1620 1.0472 1.35 1.755 1.998 2.1195
1621 1.2217 1.5 1.95 2.22 2.355
1622 1.3963 1.57 2.041 2.3236 2.4649
1623 1.5710 1.6 2.08 2.368 2.512
1624 </tableData>
1625 </table>
1626 <property>gear/drag-coef[1]</property>
1627 <property>gear/drag-coef[2]</property>
1628 <property>gear/drag-coef[3]</property>
1629 <property>gear/drag-coef[4]</property>
1630 <property>gear/drag-coef[5]</property>
1631 <property>gear/drag-coef[6]</property> <!-- Amphibious gear extended -->
1632 </product>
1633 </function>
1634
1635 <function name="aero/coefficient/CDDe">
1636 <description>Drag_due_to_Elevator_Deflection</description>
1637 <product>
1638 <property>aero/qbar-psf</property>
1639 <property>metrics/Sw-sqft</property>
1640 <property>fcs/mag-elevator-pos-rad</property>
1641 <value>0.0000</value>
1642 </product>
1643 </function>
1644
1645 <function name="aero/coefficient/CDbeta">
1646 <description>Drag_due_to_sideslip</description>
1647 <product>
1648 <property>aero/qbar-psf</property>
1649 <property>metrics/Sw-sqft</property>
1650 <property>aero/mag-beta-rad</property>
1651 <value>0.1500</value>
1652 <property>gear/drag-coef[1]</property>
1653 <property>gear/drag-coef[2]</property>
1654 <property>gear/drag-coef[3]</property>
1655 <property>gear/drag-coef[4]</property>
1656 <property>gear/drag-coef[5]</property>
1657 <property>gear/drag-coef[6]</property> <!-- Amphibious gear extended -->
1658 </product>
1659 </function>
1660
1661 <function name="aero/coefficient/CDdoorL">
1662 <description>Drag_due_to_door_left</description>
1663 <product>
1664 <property>aero/qbar-psf</property>
1665 <property>metrics/Sw-sqft</property>
1666 <property>/sim/model/door-positions/leftDoor/position-norm-effective</property>
1667 <value>0.0300</value>
1668 </product>
1669 </function>
1670
1671 <function name="aero/coefficient/CDdoorR">
1672 <description>Drag_due_to_door_right</description>
1673 <product>
1674 <property>aero/qbar-psf</property>
1675 <property>metrics/Sw-sqft</property>
1676 <property>/sim/model/door-positions/rightDoor/position-norm-effective</property>
1677 <value>0.0300</value>
1678 </product>
1679 </function>
1680
1681 <function name="aero/coefficient/CDbaggagedoor">
1682 <description>Drag_due_to_door_left</description>
1683 <product>
1684 <property>aero/qbar-psf</property>
1685 <property>metrics/Sw-sqft</property>
1686 <property>/sim/model/door-positions/baggageDoor/position-norm-effective</property>
1687 <value>0.0300</value>
1688 </product>
1689 </function>
1690
1691 <function name="aero/coefficient/CDwindow-l">
1692 <description>Drag_due_to_window_left</description>
1693 <product>
1694 <property>aero/qbar-psf</property>
1695 <property>metrics/Sw-sqft</property>
1696 <property>/sim/model/door-positions/leftWindow/position-norm</property>
1697 <value>0.0010</value>
1698 </product>
1699 </function>
1700
1701 <function name="aero/coefficient/CDwindow-r">
1702 <description>Drag_due_to_window_right</description>
1703 <product>
1704 <property>aero/qbar-psf</property>
1705 <property>metrics/Sw-sqft</property>
1706 <property>/sim/model/door-positions/rightWindow/position-norm</property>
1707 <value>0.0010</value>
1708 </product>
1709 </function>
1710
1711 </axis>
1712
1713 <axis name="SIDE">
1714 <function name="aero/coefficient/CYb">
1715 <description>Side_force_due_to_beta</description>
1716 <product>
1717 <property>aero/qbar-psf</property>
1718 <property>metrics/Sw-sqft</property>
1719 <table>
1720 <independentVar lookup="row">aero/beta-rad</independentVar>
1721 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
1722 <tableData>
1723 0.0000 30.0000
1724 -0.3490 0.1370 0.1060
1725 0.0000 0.0000 0.0000
1726 0.3490 -0.1370 -0.1060
1727 </tableData>
1728 </table>
1729 </product>
1730 </function>
1731
1732 <function name="aero/coefficient/CYdr">
1733 <description>Side_force_due_to_rudder</description>
1734 <product>
1735 <property>aero/qbar-psf</property>
1736 <property>metrics/Sw-sqft</property>
1737 <property>fcs/rudder-pos-rad</property>
1738 <value>0.150</value>
1739 </product>
1740 </function>
1741 </axis>
1742
1743 <axis name="LIFT">
1744
1745 <!--taken from SenecaII by Torsten Dreyer-->
1746 <function name="aero/coefficient/CLicew">
1747 <description>Lift_decrease_due_to_ice_on_wing</description>
1748 <product>
1749 <property>aero/qbar-area</property>
1750 <table>
1751 <independentVar>ice/wing</independentVar>
1752 <tableData>
1753 0.0 0
1754 0.5 -0.6
1755 1.0 -1.2
1756 2.0 -2.4
1757 </tableData>
1758 </table>
1759 </product>
1760 </function>
1761
1762 <function name="aero/coefficient/CLwbh">
1763 <description>Lift_due_to_alpha</description>
1764 <product>
1765 <property>aero/qbar-psf</property>
1766 <property>metrics/Sw-sqft</property>
1767 <property>aero/function/kCLge</property>
1768 <table>
1769 <independentVar lookup="row">aero/alpha-rad</independentVar>
1770 <independentVar lookup="column">aero/stall-hyst-norm</independentVar>
1771 <tableData>
1772 0.00 1.00
1773 -0.09 -0.22 -0.22
1774 0.00 0.25 0.25
1775 0.09 0.73 0.73
1776 0.10 0.83 0.78
1777 0.12 0.92 0.79
1778 0.14 1.02 0.81
1779 0.16 1.08 0.82
1780 0.17 1.13 0.83
1781 0.19 1.19 0.85
1782 0.21 1.25 0.86
1783 0.24 1.35 0.88
1784 0.26 1.44 0.90
1785 0.28 1.47 0.92
1786 0.30 1.43 0.95
1787 0.32 1.38 0.99
1788 0.34 1.30 1.05
1789 0.36 1.15 1.15
1790 0.52 1.47 1.47
1791 0.70 1.65 1.65
1792 0.87 1.47 1.47
1793 1.05 1.17 1.17
1794 1.57 0.01 0.01
1795 </tableData>
1796 </table>
1797 <table>
1798 <independentVar>aero/function/total-wing-damage</independentVar>
1799 <tableData>
1800 0.0000 1
1801 1.0000 0
1802 </tableData>
1803 </table>
1804 </product>
1805 </function>
1806
1807 <function name="aero/coefficient/CLDf">
1808 <description>Delta_lift_due_to_flap_deflection</description>
1809 <product>
1810 <property>aero/qbar-psf</property>
1811 <property>metrics/Sw-sqft</property>
1812 <property>aero/function/kCLge</property>
1813 <table>
1814 <independentVar>fcs/flap-pos-deg</independentVar>
1815 <tableData>
1816 0.0000 0.0000
1817 10.0000 0.2000
1818 20.0000 0.3000
1819 30.0000 0.3500
1820 </tableData>
1821 </table>
1822 </product>
1823 </function>
1824
1825 <function name="aero/coefficient/CLDe">
1826 <description>Lift_due_to_Elevator_Deflection</description>
1827 <product>
1828 <property>aero/qbar-psf</property>
1829 <property>metrics/Sw-sqft</property>
1830 <property>fcs/elevator-pos-rad</property>
1831 <value>0.4300</value>
1832 </product>
1833 </function>
1834
1835 <function name="aero/coefficient/CLadot">
1836 <!-- 'qbar-psf' has been replaced by 'qbarUW-psf'.
1837 See JSBSim issue #89 Pitch oscillations at rest, Brakes "ON", with pure crosswind
1838 https://github.com/JSBSim-Team/jsbsim/issues/89 -->
1839 <description>Lift_due_to_alpha_rate</description>
1840 <product>
1841 <!-- <property>aero/qbar-psf</property> -->
1842 <property>aero/qbarUW-psf</property>
1843 <property>metrics/Sw-sqft</property>
1844 <property>aero/alphadot-rad_sec</property>
1845 <property>aero/ci2vel</property>
1846 <value>1.7000</value>
1847 </product>
1848 </function>
1849
1850 <function name="aero/coefficient/CLq">
1851 <description>Lift_due_to_pitch_rate</description>
1852 <product>
1853 <property>aero/qbar-psf</property>
1854 <property>metrics/Sw-sqft</property>
1855 <property>velocities/q-aero-rad_sec</property>
1856 <property>aero/ci2vel</property>
1857 <value>3.9000</value>
1858 </product>
1859 </function>
1860 </axis>
1861
1862 <axis name="ROLL">
1863 <function name="aero/coefficient/Clb">
1864 <description>Roll_moment_due_to_beta</description>
1865 <product>
1866 <property>aero/qbar-psf</property>
1867 <property>metrics/Sw-sqft</property>
1868 <property>metrics/bw-ft</property>
1869 <property>aero/beta-rad</property>
1870 <value>-0.092</value>
1871 <!--
1872 stall and spin (1):
1873 via diedra effect.
1874 Makes the higher (downwind) wing drop at forward slip
1875 and worsens the spin in a skidding turn.
1876 But if too great, prevents the spin departure in a slipping turn
1877 -->
1878 <table>
1879 <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
1880 <tableData>
1881 0.279 1
1882 0.297 3.5
1883 </tableData>
1884 </table>
1885 </product>
1886 </function>
1887
1888 <function name="aero/coefficient/Clp">
1889 <description>Roll_moment_due_to_roll_rate_(roll_damping)</description>
1890 <product>
1891 <property>aero/qbar-psf</property>
1892 <property>metrics/Sw-sqft</property>
1893 <property>metrics/bw-ft</property>
1894 <property>aero/bi2vel</property>
1895 <property>velocities/p-aero-rad_sec</property>
1896 <value>-0.484</value>
1897 <!--
1898 stall and spin (2):
1899 less roll damping
1900 <table>
1901 <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
1902 <tableData>
1903 0.279 1
1904 0.297 0.4
1905 </tableData>
1906 </table>
1907 -->
1908 </product>
1909 </function>
1910
1911 <function name="aero/coefficient/Clr">
1912 <description>Roll_moment_due_to_yaw_rate</description>
1913 <product>
1914 <property>aero/qbar-psf</property>
1915 <property>metrics/Sw-sqft</property>
1916 <property>metrics/bw-ft</property>
1917 <property>aero/bi2vel</property>
1918 <property>velocities/r-aero-rad_sec</property>
1919 <table>
1920 <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
1921 <tableData>
1922 0.00 0.0798
1923 0.07 0.2039
1924 0.09 0.1869
1925 </tableData>
1926 </table>
1927 <table>
1928 <!--
1929 stall and spin (3):
1930 yaw effect
1931 -->
1932 <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
1933 <independentVar lookup="column">velocities/r-aero-rad_sec</independentVar>
1934 <independentVar lookup="table">aero/stall-hyst-norm</independentVar>
1935 <tableData breakPoint="0">
1936 -0.15 -0.1 0 0.1 0.15
1937 0.279 1 1 1 1 1
1938 0.297 35 30 1 30 35
1939 0.5 5 5 1 5 5
1940 </tableData>
1941 <tableData breakPoint="1">
1942 -0.15 -0.1 0 0.1 0.15
1943 0.297 35 30 1 30 35
1944 0.5 5 5 1 5 5
1945 </tableData>
1946 </table>
1947 </product>
1948 </function>
1949
1950 <function name="aero/coefficient/ClDa">
1951 <description>Roll_moment_due_to_aileron</description>
1952 <product>
1953 <property>aero/qbar-psf</property>
1954 <property>metrics/Sw-sqft</property>
1955 <property>metrics/bw-ft</property>
1956 <property>fcs/aileron-pos-rad-avgd</property>
1957 <value>0.2</value>
1958 <!--
1959 stall and spin (4):
1960 less efficient ailerons
1961 -->
1962 <table>
1963 <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
1964 <independentVar lookup="column">aero/stall-hyst-norm</independentVar>
1965 <tableData>
1966 0 1
1967 0.279 1 0.3
1968 0.297 0.3 0.3
1969 0.611 -0.1 -0.1
1970 </tableData>
1971 </table>
1972 <table>
1973 <independentVar>aero/function/total-wing-damage</independentVar>
1974 <tableData>
1975 0.0000 1
1976 1.0000 0
1977 </tableData>
1978 </table>
1979 </product>
1980 </function>
1981
1982 <function name="aero/coefficient/Cldr">
1983 <description>Roll_moment_due_to_rudder</description>
1984 <product>
1985 <property>aero/qbar-psf</property>
1986 <property>metrics/Sw-sqft</property>
1987 <property>metrics/bw-ft</property>
1988 <property>fcs/rudder-pos-rad</property>
1989 <value>0.0147</value>
1990 </product>
1991 </function>
1992
1993 <function name="aero/coefficient/Cllwdmg">
1994 <description>Roll_moment_due_to_damaged_left_wing</description>
1995 <product>
1996 <property>aero/qbar-psf</property>
1997 <property>metrics/Sw-sqft</property>
1998 <property>metrics/bw-ft</property>
1999 <property>wing-damage/left-wing</property>
2000 <value>-0.3</value>
2001 </product>
2002 </function>
2003
2004 <function name="aero/coefficient/Clrwdmg">
2005 <description>Roll_moment_due_to_damaged_right_wing</description>
2006 <product>
2007 <property>aero/qbar-psf</property>
2008 <property>metrics/Sw-sqft</property>
2009 <property>metrics/bw-ft</property>
2010 <property>wing-damage/right-wing</property>
2011 <value>0.3</value>
2012 </product>
2013 </function>
2014 </axis>
2015
2016 <axis name="PITCH">
2017 <function name="aero/coefficient/Cmo">
2018 <description>Pitching_moment_at_zero_alpha</description>
2019 <product>
2020 <property>aero/qbar-psf</property>
2021 <property>metrics/Sw-sqft</property>
2022 <property>metrics/cbarw-ft</property>
2023 <table>
2024 <independentVar lookup="row">aero/qbar-psf</independentVar>
2025 <tableData>
2026 13.6 0.09
2027 21.2 0.04
2028 </tableData>
2029 </table>
2030 </product>
2031 </function>
2032
2033 <function name="aero/coefficient/Cmalpha">
2034 <description>Pitch_moment_due_to_alpha</description>
2035 <product>
2036 <property>aero/qbar-psf</property>
2037 <property>metrics/Sw-sqft</property>
2038 <property>metrics/cbarw-ft</property>
2039 <property>aero/alpha-rad</property>
2040 <value>-1</value> <!-- -0.61 to -0.65 Megginson, -0.89 Roskam-->
2041 <!--
2042 stall and spin (5):
2043 horizontal tail stall (for flat spin)
2044 -->
2045 <table>
2046 <independentVar lookup="row">aero/alpha-deg</independentVar>
2047 <tableData>
2048 20 1
2049 25 0.6
2050 35 0.4
2051 45 0.5
2052 55 0.4
2053 65 0.2
2054 90 0.1
2055 </tableData>
2056 </table>
2057 </product>
2058 </function>
2059
2060 <function name="aero/coefficient/Cmq">
2061 <description>Pitch_moment_due_to_pitch_rate</description>
2062 <product>
2063 <property>aero/qbar-psf</property>
2064 <property>metrics/Sw-sqft</property>
2065 <property>metrics/cbarw-ft</property>
2066 <property>aero/ci2vel</property>
2067 <property>velocities/q-aero-rad_sec</property>
2068 <value>-12.4000</value>
2069 </product>
2070 </function>
2071
2072 <function name="aero/coefficient/Cmadot">
2073 <!-- 'qbar-psf' has been replaced by 'qbarUW-psf'.
2074 See JSBSim issue #89 Pitch oscillations at rest, Brakes "ON", with pure crosswind
2075 https://github.com/JSBSim-Team/jsbsim/issues/89 -->
2076 <description>Pitch_moment_due_to_alpha_rate</description>
2077 <product>
2078 <!-- <property>aero/qbar-psf</property> -->
2079 <property>aero/qbarUW-psf</property>
2080 <property>metrics/Sw-sqft</property>
2081 <property>metrics/cbarw-ft</property>
2082 <property>aero/ci2vel</property>
2083 <property>aero/alphadot-rad_sec</property>
2084 <value>-7.2700</value>
2085 </product>
2086 </function>
2087
2088 <function name="aero/coefficient/Cmde">
2089 <description>Pitch_moment_due_to_elevator_deflection</description>
2090 <product>
2091 <property>aero/function/qbar-induced-psf</property>
2092 <property>metrics/Sw-sqft</property>
2093 <property>metrics/cbarw-ft</property>
2094 <property>fcs/elevator-pos-rad</property>
2095 <value>-1</value>
2096 <!--
2097 stall and spin (6):
2098 elevator loss of efficiency when stalled
2099 -->
2100 <table>
2101 <independentVar lookup="row">fcs/elevator-pos-rad</independentVar>
2102 <independentVar lookup="column">aero/alpha-deg</independentVar>
2103 <tableData>
2104 18 25 35 45 55 65 90
2105 -0.49 1 0.5 0.2 0.1 0.1 0.1 0.1
2106 0 1 0.6 0.3 0.15 0.1 0.1 0.1
2107 0.40 1 0.9 0.8 0.7 0.6 0.5 0.4
2108 </tableData>
2109 </table>
2110 </product>
2111 </function>
2112
2113 <function name="aero/coefficient/Cmdf">
2114 <description>PitchMoment_due_to_flaps</description>
2115 <product>
2116 <property>aero/qbar-psf</property>
2117 <property>metrics/Sw-sqft</property>
2118 <property>metrics/cbarw-ft</property>
2119 <table>
2120 <independentVar>fcs/flap-pos-deg</independentVar>
2121 <tableData>
2122 <!-- delta pitch moment to reflect 95kts approach, 75kts flaps 10 and 60kts flaps 30 final with no trim change -->
2123 0.0000 0.0000
2124 10.0000 -0.008
2125 20.0000 -0.016
2126 30.0000 -0.024
2127 </tableData>
2128 </table>
2129 </product>
2130 </function>
2131 </axis>
2132
2133 <axis name="YAW">
2134 <function name="aero/coefficient/Cnb">
2135 <description>Yaw_moment_due_to_beta</description>
2136 <product>
2137 <property>aero/qbar-psf</property>
2138 <property>metrics/Sw-sqft</property>
2139 <property>metrics/bw-ft</property>
2140 <table>
2141 <independentVar>aero/beta-rad</independentVar>
2142 <tableData>
2143 -0.3490 -0.0205
2144 0.0000 0.0000
2145 0.3490 0.0205
2146 </tableData>
2147 </table>
2148 </product>
2149 </function>
2150
2151 <function name="aero/coefficient/Cnspw">
2152 <description>Yaw_moment_due_to_spiraling_propwash</description>
2153 <product>
2154 <property>aero/function/qbar-propwash-psf</property>
2155 <property>metrics/Sw-sqft</property>
2156 <property>metrics/bw-ft</property>
2157 <value>-0.05</value>
2158 <property>aero/coefficient/spiral-propwash-coeff</property> <!-- in-flight tuning factor -->
2159 </product>
2160 </function>
2161
2162 <function name="aero/coefficient/Cnr">
2163 <description>Yaw_moment_due_to_yaw_rate</description>
2164 <product>
2165 <property>aero/qbar-psf</property>
2166 <property>metrics/Sw-sqft</property>
2167 <property>metrics/bw-ft</property>
2168 <property>aero/bi2vel</property>
2169 <property>velocities/r-aero-rad_sec</property>
2170 <value>-0.0937</value>
2171 </product>
2172 </function>
2173
2174 <function name="aero/coefficient/Cnrf">
2175 <description>Yaw_moment_due_to_flat_spin</description>
2176 <!--
2177 stall and spin (7):
2178 Feedback loop on yaw rate for flat spin.
2179 Accelerates the yaw rate when stalled, up to a self-maintained flat spin (like a dead leaf).
2180 r-aero-rad_sec with non-zero coefficients mainly sets the max yawing rate, if attained.
2181 The coefficients set the yaw moment, thus the speed too, and the flatness of the spin.
2182 Too great coefficients give an divergent effect and a non-recoverable spin.
2183 (tricky)
2184 -->
2185 <product>
2186 <property>aero/qbar-psf</property>
2187 <property>metrics/Sw-sqft</property>
2188 <property>metrics/bw-ft</property>
2189 <property>aero/bi2vel</property>
2190 <table>
2191 <independentVar lookup="row">velocities/r-aero-rad_sec</independentVar>
2192 <independentVar lookup="column">aero/alpha-wing-rad</independentVar>
2193 <tableData>
2194 0.279 0.4
2195 -15 0 0
2196 -5 0 0
2197 -3 0 -0.25
2198 -1 0 0
2199 0 0 0
2200 1 0 0
2201 3 0 0.25
2202 5 0 0
2203 15 0 0
2204 </tableData>
2205 </table>
2206 </product>
2207 </function>
2208
2209 <function name="aero/coefficient/Cnda">
2210 <description>Yaw_moment_due_to_aileron</description>
2211 <!--
2212 stall and spin (8):
2213 adverse yaw: can also induce a adverse turn and spin when stalled
2214 -->
2215 <product>
2216 <property>aero/qbar-psf</property>
2217 <property>metrics/Sw-sqft</property>
2218 <property>metrics/bw-ft</property>
2219 <property>fcs/aileron-pos-rad-avgd</property>
2220 <table>
2221 <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
2222 <independentVar lookup="column">aero/beta-rad</independentVar>
2223 <tableData>
2224 -0.35 0 0.35
2225 0 -0.0216 -0.0216 -0.0216
2226 0.070 -0.039 -0.0786 -0.039
2227 0.094 -0.025 -0.0504 -0.025
2228 </tableData>
2229 </table>
2230 <table>
2231 <independentVar>aero/function/total-wing-damage</independentVar>
2232 <tableData>
2233 0.0000 1
2234 1.0000 0
2235 </tableData>
2236 </table>
2237 <property>/controls/flight/adv-yaw-fact1</property> <!-- tuning factor for tests in flight -->
2238 </product>
2239 </function>
2240
2241 <function name="aero/coefficient/Cnp">
2242 <description>Yaw_moment_due_to_roll-rate</description>
2243 <product>
2244 <property>aero/qbar-psf</property>
2245 <property>metrics/Sw-sqft</property>
2246 <property>metrics/bw-ft</property>
2247 <property>aero/bi2vel</property>
2248 <property>velocities/p-aero-rad_sec</property>
2249 <table>
2250 <independentVar lookup="row">aero/alpha-wing-rad</independentVar>
2251 <tableData>
2252 0 -0.0278
2253 0.070 -0.0960
2254 0.094 -0.0649
2255 </tableData>
2256 </table>
2257 <property>/controls/flight/adv-yaw-fact2</property> <!-- tuning factor for tests in flight -->
2258 </product>
2259 </function>
2260
2261 <function name="aero/coefficient/Cndr">
2262 <description>Yaw_moment_due_to_rudder</description>
2263 <product>
2264 <property>aero/function/qbar-induced-psf</property>
2265 <property>metrics/Sw-sqft</property>
2266 <property>metrics/bw-ft</property>
2267 <property>fcs/rudder-pos-rad</property>
2268 <value>-0.0645</value>
2269 </product>
2270 </function>
2271 </axis>
2272
2273 </aerodynamics>
2274
2275 <external_reactions>
2276 <force name="hydro-X" frame="LOCAL">
2277 <location unit="IN">
2278 <x> 32.6 </x>
2279 <y> 0 </y>
2280 <z> 38.5 </z>
2281 </location>
2282 <direction>
2283 <x> 1.0 </x>
2284 <y> 0.0 </y>
2285 <z> 0.0 </z>
2286 </direction>
2287 </force>
2288 <force name="hydro-Y" frame="LOCAL">
2289 <location unit="IN">
2290 <x> 32.6 </x>
2291 <y> 0 </y>
2292 <z> 38.5 </z>
2293 </location>
2294 <direction>
2295 <x> 0.0 </x>
2296 <y> 1.0 </y>
2297 <z> 0.0 </z>
2298 </direction>
2299 </force>
2300 <force name="hydro-Z" frame="LOCAL">
2301 <location unit="IN">
2302 <x> 32.6 </x>
2303 <y> 0 </y>
2304 <z> 38.5 </z>
2305 </location>
2306 <direction>
2307 <x> 0.0 </x>
2308 <y> 0.0 </y>
2309 <z>-1.0 </z>
2310 </direction>
2311 </force>
2312 <force name="hydro-pitch[0]" frame="LOCAL">
2313 <location unit="IN">
2314 <x> 20.6 </x>
2315 <y> 0 </y>
2316 <z> 38.5 </z>
2317 </location>
2318 <direction>
2319 <x> 0.0 </x>
2320 <y> 0.0 </y>
2321 <z>-1.0 </z>
2322 </direction>
2323 </force>
2324 <force name="hydro-pitch[1]" frame="LOCAL">
2325 <location unit="IN">
2326 <x> 44.6 </x>
2327 <y> 0 </y>
2328 <z> 38.5 </z>
2329 </location>
2330 <direction>
2331 <x> 0.0 </x>
2332 <y> 0.0 </y>
2333 <z>-1.0 </z>
2334 </direction>
2335 </force>
2336 <force name="hydro-yaw[0]" frame="BODY">
2337 <location unit="IN">
2338 <x> 32.6 </x>
2339 <y>-12.0 </y>
2340 <z> 38.5 </z>
2341 </location>
2342 <direction>
2343 <x> 1.0 </x>
2344 <y> 0.0 </y>
2345 <z> 0.0 </z>
2346 </direction>
2347 </force>
2348 <force name="hydro-yaw[1]" frame="BODY">
2349 <location unit="IN">
2350 <x> 32.6 </x>
2351 <y> 12.0 </y>
2352 <z> 38.5 </z>
2353 </location>
2354 <direction>
2355 <x> 1.0 </x>
2356 <y> 0.0 </y>
2357 <z> 0.0 </z>
2358 </direction>
2359 </force>
2360 <force name="hydro-roll[0]" frame="LOCAL">
2361 <location unit="IN">
2362 <x> 32.6 </x>
2363 <y>-12.0 </y>
2364 <z> 38.5 </z>
2365 </location>
2366 <direction>
2367 <x> 0.0 </x>
2368 <y> 0.0 </y>
2369 <z>-1.0 </z>
2370 </direction>
2371 </force>
2372 <force name="hydro-roll[1]" frame="LOCAL">
2373 <location unit="IN">
2374 <x> 32.6 </x>
2375 <y> 12.0 </y>
2376 <z> 38.5 </z>
2377 </location>
2378 <direction>
2379 <x> 0.0 </x>
2380 <y> 0.0 </y>
2381 <z>-1.0 </z>
2382 </direction>
2383 </force>
2384
2385 <!-- Tiedowns use body frame (x positive forward, y positive
2386 right, z positive down).
2387 -->
2388 <force name="tiedown-left" frame="BODY">
2389 <location unit="M">
2390 <x> 0.1188</x>
2391 <y>-2.2998</y>
2392 <z> 0.4008</z>
2393 </location>
2394 <direction>
2395 <x>0.0</x>
2396 <y>0.0</y>
2397 <z>1.0</z>
2398 </direction>
2399 </force>
2400 <force name="tiedown-right" frame="BODY">
2401 <location unit="M">
2402 <x> 0.1188</x>
2403 <y> 2.2998</y>
2404 <z> 0.4008</z>
2405 </location>
2406 <direction>
2407 <x>0.0</x>
2408 <y>0.0</y>
2409 <z>1.0</z>
2410 </direction>
2411 </force>
2412 <force name="tiedown-tail" frame="BODY">
2413 <location unit="M">
2414 <x> 4.7116</x>
2415 <y> 0.0000</y>
2416 <z>-0.6663</z>
2417 </location>
2418 <direction>
2419 <x>0.0</x>
2420 <y>0.0</y>
2421 <z>1.0</z>
2422 </direction>
2423 </force>
2424 <force name="ai-wake" frame="BODY">
2425 <location unit="IN">
2426 <!-- Center of the main wing leading edge -->
2427 <x>32.0</x>
2428 <y> 0.0</y>
2429 <z>52.5</z>
2430 </location>
2431 <direction>
2432 <!-- These are dummy values. They are ignored by FlightGear.
2433 Their purpose is to avoid JSBSim display warning messages
2434 about <direction> not being specified.
2435 -->
2436 <x>1.0</x>
2437 <y>0.0</y>
2438 <z>0.0</z>
2439 </direction>
2440 </force>
2441 <moment name="ai-wake" frame="BODY">
2442 <direction>
2443 <!-- These are dummy values. They are ignored by FlightGear.
2444 Their purpose is to avoid JSBSim display warning messages
2445 about <direction> not being specified.
2446 -->
2447 <x>1.0</x>
2448 <y>0.0</y>
2449 <z>0.0</z>
2450 </direction>
2451 </moment>
2452
2453 <force name="mooring-north" frame="LOCAL">
2454 <location unit="FT">
2455 <x> 0.0 </x>
2456 <y> 0.0 </y>
2457 <z> 0.0 </z>
2458 </location>
2459 <direction>
2460 <x> 1.0 </x>
2461 <y> 0.0 </y>
2462 <z> 0.0 </z>
2463 </direction>
2464 </force>
2465 <force name="mooring-east" frame="LOCAL">
2466 <location unit="FT">
2467 <x> 0.0 </x>
2468 <y> 0.0 </y>
2469 <z> 0.0 </z>
2470 </location>
2471 <direction>
2472 <x> 0.0 </x>
2473 <y> 1.0 </y>
2474 <z> 0.0 </z>
2475 </direction>
2476 </force>
2477 <force name="mooring-down" frame="LOCAL">
2478 <location unit="FT">
2479 <x> 0.0 </x>
2480 <y> 0.0 </y>
2481 <z> 1.0 </z>
2482 </location>
2483 <direction>
2484 <x> 1.0 </x>
2485 <y> 0.0 </y>
2486 <z> 0.0 </z>
2487 </direction>
2488 </force>
2489
2490 <force name="hitch" frame="BODY" unit="LBS" >
2491 <location unit="M">
2492 <x> 4.7116</x>
2493 <y> 0.0000</y>
2494 <z>-0.6663</z>
2495 </location>
2496 <direction>
2497 <x>0.0</x>
2498 <y>0.0</y>
2499 <z>0.0</z>
2500 </direction>
2501 </force>
2502
2503 <force name="towbar" frame="BODY">
2504 <location unit="IN">
2505 <x>-10.31</x>
2506 <y>0</y>
2507 <z>-47.17</z>
2508 </location>
2509 <direction>
2510 <x>1</x>
2511 <y>0</y>
2512 <z>0</z>
2513 </direction>
2514 </force>
2515 </external_reactions>
2516
2517 <system file="bushkit"/>
2518 <system file="fuel"/>
2519 <system file="c172p-engine"/>
2520 <system file="c172p-skis"/>
2521 <system file="hydrodynamics"/>
2522 <system file="c172p-hydrodynamics"/>
2523 <system file="c172p-ground-effects"/>
2524 <system file="c172p-damage"/>
2525 <system file="c172p-sounds"/>
2526 <system file="c172p-heat"/>
2527 <system file="external-heat"/> <!-- integrate external-heater, thanks to HHS for allowing use-->
2528 <system file="propulsion"/>
2529 <system file="indicated-airspeed"/>
2530 <system file="icing"/>
2531 <system file="static-sources"/> <!-- integrate alternate static source simulation -->
2532
2533 <!-- Mooring setup for FlightGear. -->
2534 <system file="mooring-jsbsim"/>
2535
2536 <system file="towbar"/> <!-- integrate towbar -->
2537
2538 <!--
2539 <output name="JSBout172C.csv" type="CSV" rate="60">
2540 <property> aero/qbar-psf </property>
2541 <property> accelerations/udot-ft_sec2 </property>
2542 <property> accelerations/vdot-ft_sec2 </property>
2543 <property> accelerations/wdot-ft_sec2 </property>
2544 <property> accelerations/a-pilot-x-ft_sec2 </property>
2545 <property> accelerations/a-pilot-y-ft_sec2 </property>
2546 <property> accelerations/a-pilot-z-ft_sec2 </property>
2547 <property> accelerations/n-pilot-x-norm </property>
2548 <property> accelerations/n-pilot-y-norm </property>
2549 <property> accelerations/n-pilot-z-norm </property>
2550 <rates> ON </rates>
2551 <velocities> ON </velocities>
2552 <forces> ON </forces>
2553 <moments> ON </moments>
2554 <position> ON </position>
2555 <fcs> OFF </fcs>
2556 <propulsion> OFF </propulsion>
2557 <aerosurfaces> OFF </aerosurfaces>
2558 <fcs> OFF </fcs>
2559 <ground_reactions> OFF </ground_reactions>
2560 </output>
2561 -->
2562
2563 </fdm_config>