|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?> |
3 | | -<runscript |
4 | | - name="AH-1S flight test" |
| 3 | +<runscript |
| 4 | + name="AH-1S flight test" |
5 | 5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
6 | 6 | xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd"> |
7 | 7 |
|
8 | 8 | <description> |
9 | 9 |
|
10 | | - Runs some performance tests on the model. The tests are selected via |
| 10 | + Runs some performance tests on the model. The tests are selected via |
11 | 11 | simulation/test-variant: |
12 | 12 |
|
13 | 13 | 0) syntax check - nothing happens |
|
30 | 30 | <property value="3.14159"> ap/afcs/psi-trim-rad </property> |
31 | 31 | <property value="0.0"> propulsion/tank[0]/contents-lbs </property> |
32 | 32 | <property value="0.0"> propulsion/tank[1]/contents-lbs </property> |
33 | | - |
| 33 | + |
34 | 34 | <!-- vehicle setup: ensure defaults --> |
35 | 35 | <property value="1.0"> aero/setup/downwash-enable </property> |
36 | 36 | <property value="0.05"> aero/setup/Nr_limiter </property> |
|
67 | 67 | </notify> |
68 | 68 | </event> |
69 | 69 |
|
70 | | - <!-- |
| 70 | + <!-- |
71 | 71 | Example for using 'x-rpm-dict', make sure to disable the RPM governor above. |
72 | 72 | --> |
73 | | - <!-- |
| 73 | + <!-- |
74 | 74 | <event name="Set RPM"> |
75 | 75 | <condition> simulation/sim-time-sec ge 1 </condition> |
76 | 76 | <set name="fcs/collective-cmd-norm" value="0.0"/> |
|
83 | 83 | <event name="Raise collective"> |
84 | 84 | <condition> |
85 | 85 | simulation/test-variant gt 0 |
86 | | - simulation/sim-time-sec ge 10 |
| 86 | + simulation/sim-time-sec ge 10 |
87 | 87 | </condition> |
88 | 88 | <set name="fcs/collective-cmd-norm" value="0.35" action="FG_RAMP" tc="3.0"/> |
89 | 89 | <set name="fcs/rudder-cmd-norm" value="0.35" action="FG_RAMP" tc="3.0"/> |
|
108 | 108 | <event name="Lift off"> |
109 | 109 | <condition> |
110 | 110 | simulation/test-variant gt 0 |
111 | | - simulation/sim-time-sec ge 15 |
| 111 | + simulation/sim-time-sec ge 15 |
112 | 112 | </condition> |
113 | 113 | <set name="fcs/collective-cmd-norm" value="0.615" action="FG_RAMP" tc="10.0"/> |
114 | 114 | <set name="fcs/elevator-cmd-norm" value="-0.18" action="FG_RAMP" tc="20.0"/> |
|
138 | 138 | <event name="Hover around at approx 75ft hagl (OGE)"> |
139 | 139 | <condition> |
140 | 140 | simulation/test-variant gt 0 |
141 | | - position/h-agl-ft ge 50 |
| 141 | + position/h-agl-ft ge 50 |
142 | 142 | </condition> |
143 | 143 | <set name="fcs/collective-cmd-norm" value="0.615" action="FG_RAMP" tc="5.0"/> |
144 | | - <set name="fcs/elevator-cmd-norm" value="-0.1558" tvalue="-0.222788" action="FG_RAMP" tc="5.0"/> |
145 | | - <set name="fcs/aileron-cmd-norm" value="0.19095" tvalue="0.242343" action="FG_RAMP" tc="5.0"/> |
| 144 | + <set name="fcs/elevator-cmd-norm" value="-0.1558" action="FG_RAMP" tc="5.0"/> |
| 145 | + <set name="fcs/aileron-cmd-norm" value="0.19095" action="FG_RAMP" tc="5.0"/> |
146 | 146 | <set name="fcs/rudder-cmd-norm" value="0.39" action="FG_RAMP" tc="3.0"/> |
147 | 147 | <notify/> |
148 | 148 | </event> |
149 | 149 |
|
150 | 150 | <event name="Avoid rising over 100ft hagl"> |
151 | 151 | <condition> |
152 | 152 | simulation/test-variant gt 0 |
153 | | - position/h-agl-ft ge 90 |
| 153 | + position/h-agl-ft ge 90 |
154 | 154 | simulation/sim-time-sec lt 120 |
155 | 155 | </condition> |
156 | 156 | <set name="fcs/collective-cmd-norm" value="0.6007" action="FG_RAMP" tc="5.0"/> |
|
162 | 162 |
|
163 | 163 | <!-- Raise attention when watching in FlightGear --> |
164 | 164 | <event name="20 seconds before fly off"> |
165 | | - <condition> |
| 165 | + <condition> |
166 | 166 | simulation/test-variant gt 0 |
167 | 167 | simulation/sim-time-sec ge 100 |
168 | 168 | </condition> |
|
183 | 183 | <!-- =========== test-variant eq 1 (max speed) =========== --> |
184 | 184 |
|
185 | 185 | <event name="1: fly off"> |
186 | | - <condition> |
| 186 | + <condition> |
187 | 187 | simulation/test-variant eq 1 |
188 | 188 | simulation/sim-time-sec ge 120 |
189 | 189 | </condition> |
|
211 | 211 | </event> |
212 | 212 |
|
213 | 213 | <event name="1: Trying max speed at 5000 ft"> |
214 | | - <condition> |
| 214 | + <condition> |
215 | 215 | simulation/test-variant eq 1 |
216 | 216 | simulation/sim-time-sec ge 120 |
217 | 217 | velocities/vc-kts ge 75 |
|
256 | 256 | --> |
257 | 257 |
|
258 | 258 | <event name="2: Switch to trim table based control"> |
259 | | - <condition> |
| 259 | + <condition> |
260 | 260 | simulation/test-variant eq 2 |
261 | 261 | simulation/sim-time-sec ge 120 |
262 | 262 | </condition> |
|
284 | 284 | </event> |
285 | 285 |
|
286 | 286 | <event name="2: Climb to 5000ft sl (with approx 1800 ft/min)"> |
287 | | - <condition> |
| 287 | + <condition> |
288 | 288 | simulation/test-variant eq 2 |
289 | 289 | simulation/sim-time-sec ge 180 |
290 | 290 | </condition> |
|
296 | 296 | </event> |
297 | 297 |
|
298 | 298 | <event name="2: Slowly fly away"> |
299 | | - <condition> |
| 299 | + <condition> |
300 | 300 | simulation/test-variant eq 2 |
301 | 301 | simulation/sim-time-sec ge 300 |
302 | 302 | position/h-sl-ft ge 5000 |
|
309 | 309 | </event> |
310 | 310 |
|
311 | 311 | <event name="2: Avoid high speed"> |
312 | | - <condition> |
| 312 | + <condition> |
313 | 313 | simulation/test-variant eq 2 |
314 | 314 | simulation/sim-time-sec ge 300 |
315 | 315 | position/h-sl-ft ge 5000 |
|
327 | 327 | Descending in autorotation comes pretty close to real |
328 | 328 | flight data, but scripted landing is rather a painful |
329 | 329 | task. |
330 | | - |
331 | | - This test is orientated on the maximum glide distance |
| 330 | +
|
| 331 | + This test is orientated on the maximum glide distance |
332 | 332 | condition shown in the 'Climb-descent chart' in the |
333 | | - AH-1S Operator's Manual (TM 55-1520-234-10, A.D. 1976, |
| 333 | + AH-1S Operator's Manual (TM 55-1520-234-10, A.D. 1976, |
334 | 334 | or the similar chart found the Hefley paper /HE88/. ) |
335 | 335 |
|
336 | 336 | HE88: Heffley, Robert K., Mnich, Marc A., |
|
340 | 340 | --> |
341 | 341 |
|
342 | 342 | <event name="3: reach 90kts at 5000ft sl"> |
343 | | - <condition> |
| 343 | + <condition> |
344 | 344 | simulation/test-variant eq 3 |
345 | 345 | simulation/sim-time-sec ge 120 |
346 | 346 | </condition> |
|
358 | 358 | </event> |
359 | 359 |
|
360 | 360 | <event name="3: keep 90kts"> |
361 | | - <condition> |
| 361 | + <condition> |
362 | 362 | velocities/vc-kts ge 85 |
363 | 363 | simulation/test-variant eq 3 |
364 | 364 | simulation/sim-time-sec ge 120 |
|
405 | 405 | <event name="3: try a flare - ok, this will hurt!"> |
406 | 406 | <condition> |
407 | 407 | simulation/test-variant eq 3 |
408 | | - simulation/sim-time-sec ge 240 |
| 408 | + simulation/sim-time-sec ge 240 |
409 | 409 | position/h-agl-ft lt 190 |
410 | 410 | </condition> |
411 | 411 | <set name="fcs/collective-cmd-norm" value="0.45" action="FG_RAMP" tc="20.0"/> |
|
426 | 426 | <event name="3: try to level (or at least: avoid hitting with the rear bumper)"> |
427 | 427 | <condition> |
428 | 428 | simulation/test-variant eq 3 |
429 | | - simulation/sim-time-sec ge 240 |
| 429 | + simulation/sim-time-sec ge 240 |
430 | 430 | position/h-agl-ft lt 40 |
431 | 431 | </condition> |
432 | 432 | <set name="fcs/elevator-cmd-norm" value="-0.2" action="FG_RAMP" tc="12.0"/> |
|
446 | 446 | <condition> |
447 | 447 | position/h-agl-ft lt 9.0 |
448 | 448 | simulation/test-variant eq 3 |
449 | | - simulation/sim-time-sec ge 240 |
| 449 | + simulation/sim-time-sec ge 240 |
450 | 450 | </condition> |
451 | 451 | <set name="simulation/terminate" value="0"/> |
452 | 452 | <notify> |
|
467 | 467 | <condition> |
468 | 468 | position/h-agl-ft lt 9 |
469 | 469 | simulation/test-variant eq 3 |
470 | | - simulation/sim-time-sec ge 240 |
| 470 | + simulation/sim-time-sec ge 240 |
471 | 471 | </condition> |
472 | 472 | <set name="simulation/terminate" value="1"/> |
473 | 473 | <delay> 10 </delay> |
|
490 | 490 | bell-torque-sensor output. |
491 | 491 | --> |
492 | 492 | <event name="4: Climb w/o exceeding engine limits (56/50 PSI)"> |
493 | | - <condition> |
| 493 | + <condition> |
494 | 494 | simulation/test-variant eq 4 |
495 | 495 | simulation/sim-time-sec ge 120 |
496 | 496 | </condition> |
|
507 | 507 | </event> |
508 | 508 |
|
509 | 509 | <event name="4: Passing max height from operators manual (assuming 8500lbs grossweight)"> |
510 | | - <condition> |
| 510 | + <condition> |
511 | 511 | simulation/test-variant eq 4 |
512 | 512 | simulation/sim-time-sec ge 120 |
513 | 513 | position/h-sl-ft ge 13000 |
|
0 commit comments