-
Notifications
You must be signed in to change notification settings - Fork 462
/
737_cruise_steady_turn_simplex.xml
94 lines (83 loc) · 3.41 KB
/
737_cruise_steady_turn_simplex.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?>
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd"
name="Cruise flight in 737.">
<description>
This is a very simple script that trims the aircraft with running
engines at altitude and runs out to 100 seconds. Some state data
is printed out at ten second intervals.
</description>
<use aircraft="737" initialize="cruise_steady_turn_init"/>
<run start="0" end="100" dt="0.008333">
<property value="0"> simulation/notify-time-trigger </property>
<event name="Set engines running">
<condition> simulation/sim-time-sec le 0.1 </condition>
<set name="propulsion/engine[0]/set-running" value="1"/>
<set name="propulsion/engine[1]/set-running" value="1"/>
<notify/>
</event>
<!--
For "do_simple_trim" (Classic trim):
0: Longitudinal
1: Full
2: Ground
3: Pullup
4: Custom
5: Turn
6: None
-->
<event name="Trim">
<condition> simulation/sim-time-sec gt 0.1 </condition>
<set name="simulation/do_simplex_trim" value="1"/>
<delay>5.0</delay>
<notify>
<property>propulsion/engine[0]/n2</property>
<property>propulsion/engine[1]/n2</property>
<property>propulsion/engine[0]/thrust-lbs</property>
<property>propulsion/engine[1]/thrust-lbs</property>
<property>velocities/vc-kts</property>
<property>velocities/vc-fps</property>
<property>velocities/vt-fps</property>
<property>attitude/phi-rad</property>
<property>attitude/theta-rad</property>
<property>attitude/psi-rad</property>
</notify>
</event>
<event name="Linearization">
<condition> simulation/sim-time-sec gt 0.1 </condition>
<set name="simulation/do_linearization" value="1"/>
<delay>5.0</delay>
<notify>
<property>propulsion/engine[0]/n2</property>
<property>propulsion/engine[0]/thrust-lbs</property>
<property>propulsion/engine[1]/n2</property>
<property>propulsion/engine[1]/thrust-lbs</property>
<property>velocities/vc-kts</property>
<property>velocities/vc-fps</property>
<property>velocities/vt-fps</property>
<property>attitude/phi-rad</property>
<property>attitude/theta-rad</property>
<property>attitude/psi-rad</property>
</notify>
</event>
<event name="Repeating Notify" persistent="true">
<description>Output message at 5 second intervals</description>
<notify>
<property>propulsion/engine[0]/n2</property>
<property>propulsion/engine[1]/n2</property>
<property>propulsion/engine[0]/thrust-lbs</property>
<property>propulsion/engine[1]/thrust-lbs</property>
<property>position/h-agl-ft</property>
<property>velocities/vc-kts</property>
<property>velocities/vc-fps</property>
<property>velocities/vt-fps</property>
<property>attitude/phi-rad</property>
<property>attitude/theta-rad</property>
<property>attitude/psi-rad</property>
</notify>
<condition> simulation/sim-time-sec >= simulation/notify-time-trigger </condition>
<set name="simulation/notify-time-trigger" value="5" type="FG_DELTA"/>
</event>
</run>
</runscript>