Skip to content

Commit 072ea48

Browse files
committed
Fix the scripts to pass the XML validation.
1 parent 4d71448 commit 072ea48

File tree

6 files changed

+43
-43
lines changed

6 files changed

+43
-43
lines changed

scripts/Short_S23_1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
<set name="simulation/rpm-check-time-trigger" value="135"/>
381381
</event>
382382

383-
<event name="Reduce throttle" type="FG_DELTA" persistent="true">
383+
<event name="Reduce throttle" persistent="true">
384384
<description>Check engine RPM at 1 seconds intervals</description>
385385
<condition>
386386
simulation/sim-time-sec GE simulation/rpm-check-time-trigger
@@ -471,7 +471,7 @@
471471
<set name="fcs/mixture-cmd-norm[3]" value="0.5"/>
472472
</event>
473473

474-
<event name="Time Notify" type="FG_DELTA" persistent="true">
474+
<event name="Time Notify" persistent="true">
475475
<description>Output message at 5 seconds intervals</description>
476476
<condition>
477477
simulation/sim-time-sec GE simulation/notify-time-trigger

scripts/Short_S23_2.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@
165165
<set name="sperry-autopilot/heading-speed-valve-cmd-norm" value="0.0"/>
166166
<set name="sperry-autopilot/pitch-speed-valve-cmd-norm" value="0.0"/>
167167
<!-- set name="sperry-autopilot/roll-speed-valve-cmd-norm" value="0.0"/-->
168-
<!-- Set the reference values. -->
168+
<!-- Set the reference values. -->
169169
<set name="sperry-autopilot/roll-reference-deg" value="0.0"/>
170170
<!-- Enable the AP. -->
171171
<set name="sperry-autopilot/enabled-cmd-norm" value="1.0"/>
172172
<notify/>
173173
</event>
174174

175175

176-
<event name="Time Notify" type="FG_DELTA" persistent="true">
176+
<event name="Time Notify" persistent="true">
177177
<description>Output message at 5 seconds intervals</description>
178178
<condition>
179179
simulation/sim-time-sec GE simulation/notify-time-trigger

scripts/Short_S23_3.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
"The maximum speed in level flight at 5 500 ft. was 172 knots."
1717
([Cassidy:2004:FE], page 160)
18-
18+
1919
"Maximum engine speed - all out - was 2600 rev. per min. with
2020
+2 1/2 lb. sq. in. for 5 minutes in level flight."
2121
([Cassidy:2004:FE], page 167)
@@ -150,15 +150,15 @@
150150
<set name="sperry-autopilot/heading-speed-valve-cmd-norm" value="0.0"/>
151151
<set name="sperry-autopilot/pitch-speed-valve-cmd-norm" value="0.0"/>
152152
<!-- set name="sperry-autopilot/roll-speed-valve-cmd-norm" value="0.0"/-->
153-
<!-- Set the reference values. -->
153+
<!-- Set the reference values. -->
154154
<set name="sperry-autopilot/roll-reference-deg" value="0.0"/>
155155
<!-- Enable the AP. -->
156156
<set name="sperry-autopilot/enabled-cmd-norm" value="1.0"/>
157157
<notify/>
158158
</event>
159159

160160

161-
<event name="Time Notify" type="FG_DELTA" persistent="true">
161+
<event name="Time Notify" persistent="true">
162162
<description>Output message at 5 seconds intervals</description>
163163
<condition>
164164
simulation/sim-time-sec GE simulation/notify-time-trigger

scripts/Short_S23_4.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
<set name="sperry-autopilot/heading-speed-valve-cmd-norm" value="0.0"/>
179179
<set name="sperry-autopilot/pitch-speed-valve-cmd-norm" value="0.0"/>
180180
<!-- set name="sperry-autopilot/roll-speed-valve-cmd-norm" value="0.0"/-->
181-
<!-- Set the reference values. -->
181+
<!-- Set the reference values. -->
182182
<set name="sperry-autopilot/roll-reference-deg" value="0.0"/>
183183
<!-- Enable the AP. -->
184184
<set name="sperry-autopilot/enabled-cmd-norm" value="1.0"/>
@@ -583,7 +583,7 @@
583583
<set name="simulation/mixture-check-time-trigger" value="1" type="FG_DELTA"/>
584584
</event -->
585585

586-
<event name="Time Notify" type="FG_DELTA" persistent="true">
586+
<event name="Time Notify" persistent="true">
587587
<description>Output message at 5 seconds intervals</description>
588588
<condition>
589589
simulation/sim-time-sec GE simulation/notify-time-trigger

scripts/ZLT-NT-moored-1.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<property>mooring/total-distance-ft</property>
3232
</notify>
3333
<!-- Weigh-off. -->
34-
<set name="inertia/pointmass-weight-lbs[0]" value="2500.0"/>
34+
<set name="inertia/pointmass-weight-lbs[0]" value="2500.0"/>
3535
</event>
3636

3737
<event name="Initialize 2">
@@ -69,7 +69,7 @@
6969
<property>mooring/total-distance-ft</property>
7070
</notify>
7171
<!-- Connect the mooring. -->
72-
<set name="mooring/wire-connected" value="1.0"/>
72+
<set name="mooring/wire-connected" value="1.0"/>
7373
</event>
7474

7575
<event name="Strong wind from north">
@@ -85,10 +85,10 @@
8585
</notify>
8686
<!-- Ramp up the wind. -->
8787
<set name="atmosphere/wind-east-fps" value="30.0"
88-
action="FG_RAMP" tc ="30.0"/>
88+
action="FG_RAMP" tc ="30.0"/>
8989
</event>
9090

91-
<event name="Time Notify" type="FG_DELTA" persistent="true">
91+
<event name="Time Notify" persistent="true">
9292
<description>Output message at 10 second intervals</description>
9393
<notify>
9494
<property>static-condition/net-lift-lbs</property>

scripts/ah1s_flight_test.xml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0"?>
22
<?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"
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd">
77

88
<description>
99

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
1111
simulation/test-variant:
1212

1313
0) syntax check - nothing happens
@@ -30,7 +30,7 @@
3030
<property value="3.14159"> ap/afcs/psi-trim-rad </property>
3131
<property value="0.0"> propulsion/tank[0]/contents-lbs </property>
3232
<property value="0.0"> propulsion/tank[1]/contents-lbs </property>
33-
33+
3434
<!-- vehicle setup: ensure defaults -->
3535
<property value="1.0"> aero/setup/downwash-enable </property>
3636
<property value="0.05"> aero/setup/Nr_limiter </property>
@@ -67,10 +67,10 @@
6767
</notify>
6868
</event>
6969

70-
<!--
70+
<!--
7171
Example for using 'x-rpm-dict', make sure to disable the RPM governor above.
7272
-->
73-
<!--
73+
<!--
7474
<event name="Set RPM">
7575
<condition> simulation/sim-time-sec ge 1 </condition>
7676
<set name="fcs/collective-cmd-norm" value="0.0"/>
@@ -83,7 +83,7 @@
8383
<event name="Raise collective">
8484
<condition>
8585
simulation/test-variant gt 0
86-
simulation/sim-time-sec ge 10
86+
simulation/sim-time-sec ge 10
8787
</condition>
8888
<set name="fcs/collective-cmd-norm" value="0.35" action="FG_RAMP" tc="3.0"/>
8989
<set name="fcs/rudder-cmd-norm" value="0.35" action="FG_RAMP" tc="3.0"/>
@@ -108,7 +108,7 @@
108108
<event name="Lift off">
109109
<condition>
110110
simulation/test-variant gt 0
111-
simulation/sim-time-sec ge 15
111+
simulation/sim-time-sec ge 15
112112
</condition>
113113
<set name="fcs/collective-cmd-norm" value="0.615" action="FG_RAMP" tc="10.0"/>
114114
<set name="fcs/elevator-cmd-norm" value="-0.18" action="FG_RAMP" tc="20.0"/>
@@ -138,19 +138,19 @@
138138
<event name="Hover around at approx 75ft hagl (OGE)">
139139
<condition>
140140
simulation/test-variant gt 0
141-
position/h-agl-ft ge 50
141+
position/h-agl-ft ge 50
142142
</condition>
143143
<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"/>
146146
<set name="fcs/rudder-cmd-norm" value="0.39" action="FG_RAMP" tc="3.0"/>
147147
<notify/>
148148
</event>
149149

150150
<event name="Avoid rising over 100ft hagl">
151151
<condition>
152152
simulation/test-variant gt 0
153-
position/h-agl-ft ge 90
153+
position/h-agl-ft ge 90
154154
simulation/sim-time-sec lt 120
155155
</condition>
156156
<set name="fcs/collective-cmd-norm" value="0.6007" action="FG_RAMP" tc="5.0"/>
@@ -162,7 +162,7 @@
162162

163163
<!-- Raise attention when watching in FlightGear -->
164164
<event name="20 seconds before fly off">
165-
<condition>
165+
<condition>
166166
simulation/test-variant gt 0
167167
simulation/sim-time-sec ge 100
168168
</condition>
@@ -183,7 +183,7 @@
183183
<!-- =========== test-variant eq 1 (max speed) =========== -->
184184

185185
<event name="1: fly off">
186-
<condition>
186+
<condition>
187187
simulation/test-variant eq 1
188188
simulation/sim-time-sec ge 120
189189
</condition>
@@ -211,7 +211,7 @@
211211
</event>
212212

213213
<event name="1: Trying max speed at 5000 ft">
214-
<condition>
214+
<condition>
215215
simulation/test-variant eq 1
216216
simulation/sim-time-sec ge 120
217217
velocities/vc-kts ge 75
@@ -256,7 +256,7 @@
256256
-->
257257

258258
<event name="2: Switch to trim table based control">
259-
<condition>
259+
<condition>
260260
simulation/test-variant eq 2
261261
simulation/sim-time-sec ge 120
262262
</condition>
@@ -284,7 +284,7 @@
284284
</event>
285285

286286
<event name="2: Climb to 5000ft sl (with approx 1800 ft/min)">
287-
<condition>
287+
<condition>
288288
simulation/test-variant eq 2
289289
simulation/sim-time-sec ge 180
290290
</condition>
@@ -296,7 +296,7 @@
296296
</event>
297297

298298
<event name="2: Slowly fly away">
299-
<condition>
299+
<condition>
300300
simulation/test-variant eq 2
301301
simulation/sim-time-sec ge 300
302302
position/h-sl-ft ge 5000
@@ -309,7 +309,7 @@
309309
</event>
310310

311311
<event name="2: Avoid high speed">
312-
<condition>
312+
<condition>
313313
simulation/test-variant eq 2
314314
simulation/sim-time-sec ge 300
315315
position/h-sl-ft ge 5000
@@ -327,10 +327,10 @@
327327
Descending in autorotation comes pretty close to real
328328
flight data, but scripted landing is rather a painful
329329
task.
330-
331-
This test is orientated on the maximum glide distance
330+
331+
This test is orientated on the maximum glide distance
332332
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,
334334
or the similar chart found the Hefley paper /HE88/. )
335335
336336
HE88: Heffley, Robert K., Mnich, Marc A.,
@@ -340,7 +340,7 @@
340340
-->
341341

342342
<event name="3: reach 90kts at 5000ft sl">
343-
<condition>
343+
<condition>
344344
simulation/test-variant eq 3
345345
simulation/sim-time-sec ge 120
346346
</condition>
@@ -358,7 +358,7 @@
358358
</event>
359359

360360
<event name="3: keep 90kts">
361-
<condition>
361+
<condition>
362362
velocities/vc-kts ge 85
363363
simulation/test-variant eq 3
364364
simulation/sim-time-sec ge 120
@@ -405,7 +405,7 @@
405405
<event name="3: try a flare - ok, this will hurt!">
406406
<condition>
407407
simulation/test-variant eq 3
408-
simulation/sim-time-sec ge 240
408+
simulation/sim-time-sec ge 240
409409
position/h-agl-ft lt 190
410410
</condition>
411411
<set name="fcs/collective-cmd-norm" value="0.45" action="FG_RAMP" tc="20.0"/>
@@ -426,7 +426,7 @@
426426
<event name="3: try to level (or at least: avoid hitting with the rear bumper)">
427427
<condition>
428428
simulation/test-variant eq 3
429-
simulation/sim-time-sec ge 240
429+
simulation/sim-time-sec ge 240
430430
position/h-agl-ft lt 40
431431
</condition>
432432
<set name="fcs/elevator-cmd-norm" value="-0.2" action="FG_RAMP" tc="12.0"/>
@@ -446,7 +446,7 @@
446446
<condition>
447447
position/h-agl-ft lt 9.0
448448
simulation/test-variant eq 3
449-
simulation/sim-time-sec ge 240
449+
simulation/sim-time-sec ge 240
450450
</condition>
451451
<set name="simulation/terminate" value="0"/>
452452
<notify>
@@ -467,7 +467,7 @@
467467
<condition>
468468
position/h-agl-ft lt 9
469469
simulation/test-variant eq 3
470-
simulation/sim-time-sec ge 240
470+
simulation/sim-time-sec ge 240
471471
</condition>
472472
<set name="simulation/terminate" value="1"/>
473473
<delay> 10 </delay>
@@ -490,7 +490,7 @@
490490
bell-torque-sensor output.
491491
-->
492492
<event name="4: Climb w/o exceeding engine limits (56/50 PSI)">
493-
<condition>
493+
<condition>
494494
simulation/test-variant eq 4
495495
simulation/sim-time-sec ge 120
496496
</condition>
@@ -507,7 +507,7 @@
507507
</event>
508508

509509
<event name="4: Passing max height from operators manual (assuming 8500lbs grossweight)">
510-
<condition>
510+
<condition>
511511
simulation/test-variant eq 4
512512
simulation/sim-time-sec ge 120
513513
position/h-sl-ft ge 13000

0 commit comments

Comments
 (0)