Debian Codegraph @

Aircraft/c172p/Tutorials/takeoff.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5 <name>Takeoff</name>
6
7 <description>
8 This tutorial starts from Hilo Intl Airport (PHTO), an airfield in the northeast of Hawaiʻi, in clear, still, weather.
9
10 This tutorial will teach you how to take-off from runway 21, and climb at 600 feet per minute. You will level off at 2000 ft to complete the tutorial.
11 </description>
12
13 <nasal>
14 <script>
15 c172p.repair_damage();
16 electrical.reset_battery_and_circuit_breakers();
17 c172p.click("engine-repair", 6.0);
18 c172p.dialog_battery_reload();
19 setprop("/engines/active-engine/oil-level", sim/model/c172p/engine_flag_0 ? 7 : 8);
20 setprop("/engines/active-engine/carb_ice", 0.0);
21 setprop("/fdm/jsbsim/engine/damage-level", 0.0);
22 </script>
23 </nasal>
24
25 <audio-dir>Tutorials/takeoff</audio-dir>
26 <timeofday>morning</timeofday>
27 <presets>
28 <airport-id></airport-id>
29 <on-ground>1</on-ground>
30 <altitude-ft>-9999</altitude-ft>
31 <latitude-deg>19.72415017471669</latitude-deg>
32 <longitude-deg>-155.0518970894882</longitude-deg>
33 <heading-deg>220</heading-deg>
34 <airspeed-kt>0</airspeed-kt>
35 <glideslope-deg>0</glideslope-deg>
36 <offset-azimuth-deg>0</offset-azimuth-deg>
37 <offset-distance-nm>0</offset-distance-nm>
38 <airport-requested>true</airport-requested>
39 <runway-requested>false</runway-requested>
40 <parking-requested>false</parking-requested>
41 </presets>
42
43 <step>
44 <set>
45 <property>/instrumentation/adf/frequencies/selected-khz</property>
46 <value>332</value> <!-- PAHOA NDB -->
47 </set>
48 <set>
49 <property>/environment/weather-scenario</property>
50 <value>Fair weather</value>
51 </set>
52 <set>
53 <property>instrumentation/altimeter/setting-inhg</property>
54 <value>29.95</value>
55 </set>
56 <set>
57 <property>/controls/gear/brake-parking</property>
58 <value>1</value>
59 </set>
60 <set>
61 <property>/controls/switches/master-bat</property>
62 <value>true</value>
63 </set>
64 <set>
65 <property>/controls/switches/master-alt</property>
66 <value>true</value>
67 </set>
68 <set>
69 <property>/controls/switches/master-avionics</property>
70 <value>true</value>
71 </set>
72 <set>
73 <property>/controls/flight/flaps</property>
74 <value>0.0</value>
75 </set>
76 <set>
77 <property>/controls/flight/elevator-trim</property>
78 <value>-0.17</value>
79 </set>
80 <set>
81 <property>/controls/switches/magnetos</property>
82 <value>3</value>
83 </set>
84 <set>
85 <property>/controls/engines/engine[0]/throttle</property>
86 <value>0.2</value>
87 </set>
88 <set>
89 <property>/controls/engines/engine[1]/throttle</property>
90 <value>0.2</value>
91 </set>
92 <set>
93 <property>/controls/engines/engine/primer</property>
94 <value>4</value>
95 </set>
96 <set>
97 <property>/sim/model/c172p/securing/chock</property>
98 <value>false</value>
99 </set>
100 <set>
101 <property>/sim/model/c172p/securing/cowl-plugs-visible</property>
102 <value>false</value>
103 </set>
104 <set>
105 <property>/sim/model/c172p/securing/tiedownL-visible</property>
106 <value>false</value>
107 </set>
108 <set>
109 <property>/sim/model/c172p/securing/tiedownR-visible</property>
110 <value>false</value>
111 </set>
112 <set>
113 <property>/sim/model/c172p/securing/tiedownT-visible</property>
114 <value>false</value>
115 </set>
116 <set>
117 <property>/sim/model/c172p/securing/pitot-cover-visible</property>
118 <value>false</value>
119 </set>
120 <set>
121 <property>/sim/model/c172p/cockpit/control-lock-placed</property>
122 <value>false</value>
123 </set>
124 <set>
125 <property>/sim/model/c172p/cockpit/control-lock-visible</property>
126 <value>false</value>
127 </set>
128 <nasal>
129 <script>
130 setprop("/controls/engines/current-engine/mixture", 1.0);
131 setprop("/controls/switches/starter", 1);
132 </script>
133 </nasal>
134 <message>At the start of the take-off roll, you will control the direction of the aircraft using the
135 nose-wheel steering and rudder. As the aircraft takes off, you will use the ailerons and elevator
136 to control the direction and attitude of the aircraft.
137 </message>
138 <view>
139 <heading-offset-deg>0.0</heading-offset-deg>
140 <pitch-offset-deg>-12</pitch-offset-deg>
141 <roll-offset-deg>0.0</roll-offset-deg>
142 <x-offset-m>-0.21</x-offset-m>
143 <y-offset-m>0.19</y-offset-m>
144 <field-of-view>73.6</field-of-view>
145 </view>
146 <wait>15</wait>
147 </step>
148
149 <step>
150 <message>
151 The nose-wheel and rudder is controlled using 0/Enter on the numeric keypad, or by using the mouse
152 in "yoke" mode with the left mouse button held down.
153 To switch the mouse to yoke mode, press either "TAB", or the right mouse button until it displays as a + sign.
154 </message>
155 <nasal>
156 <script>
157 var listeners = std.Vector.new();
158
159 listeners.append(setlistener("/engines/active-engine/running", func (node) {
160 if (node.getBoolValue()) {
161 setprop("/controls/switches/starter", 0);
162 foreach (var listener; listeners.vector) {
163 removelistener(listener);
164 }
165 listeners.clear();
166 }
167 }, 1, 0));
168 </script>
169 </nasal>
170 <wait>10</wait>
171 </step>
172
173 <step>
174 <message>Release the parking brakes using Shift-B</message>
175 <set>
176 <property>/controls/switches/starter</property>
177 <value>false</value>
178 </set>
179
180 <error>
181 <message>Release the parking brake using Shift B</message>
182 <condition>
183 <equals>
184 <property>/controls/gear/brake-parking</property>
185 <value>1</value>
186 </equals>
187 </condition>
188 </error>
189 </step>
190
191 <step>
192 <message>Smoothly apply full power using PgUp, controlling the direction using the nosewheel.</message>
193
194 <error>
195 <message>Release the parking brake using Shift B</message>
196 <condition>
197 <equals>
198 <property>/controls/gear/brake-parking</property>
199 <value>1</value>
200 </equals>
201 </condition>
202 </error>
203 <error>
204 <message>Apply full throttle for take-off.</message>
205 <condition>
206 <less-than>
207 <property>/controls/engines/current-engine/throttle</property>
208 <value>0.95</value>
209 </less-than>
210 </condition>
211 </error>
212
213 <exit>
214 <condition>
215 <greater-than>
216 <property>/velocities/airspeed-kt</property>
217 <value>5.0</value>
218 </greater-than>
219 </condition>
220 </exit>
221 </step>
222
223 <step>
224 <message>Stay on the center-line of the runway using the rudder. Steer using the mouse with the left button held down, or using 0/Enter on the numeric keypad</message>
225
226 <exit>
227 <condition>
228 <greater-than>
229 <property>/velocities/airspeed-kt</property>
230 <value>45.0</value>
231 </greater-than>
232 </condition>
233 </exit>
234 </step>
235
236 <step>
237 <message>Let the aircraft lift off at 65 knots and climb straight out on heading 225 at 600 feet per minute.</message>
238
239 <error>
240 <message>Gently raise the nose, by pressing the down key on the keypad, or moving the mouse back slightly.</message>
241 <condition>
242 <equals>
243 <property>/gear/gear[0]/wow</property>
244 <value>1</value>
245 </equals>
246 </condition>
247 </error>
248
249 <exit>
250 <condition>
251 <greater-than>
252 <property>/instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
253 <value>300</value>
254 </greater-than>
255 </condition>
256 </exit>
257 </step>
258
259 <step>
260 <message>Continue your climb on heading 225 at 600 feet per minute through 1900 feet.</message>
261
262 <error>
263 <message>Your climb angle is too shallow - raise the nose very slightly to increase your climb rate.</message>
264 <condition>
265 <less-than>
266 <property>/instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
267 <value>400</value>
268 </less-than>
269 </condition>
270 </error>
271 <error>
272 <message>Your climb angle is too great - lower the nose slightly to decrease your climb rate.</message>
273 <condition>
274 <greater-than>
275 <property>/instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
276 <value>900</value>
277 </greater-than>
278 </condition>
279 </error>
280 <error>
281 <message>You are heading too far left, Turn right slightly to heading 210.</message>
282 <condition>
283 <less-than>
284 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
285 <value>215</value>
286 </less-than>
287 </condition>
288 </error>
289 <error>
290 <message>You are heading too far right, Turn left slightly to heading 210.</message>
291 <condition>
292 <greater-than>
293 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
294 <value>235</value>
295 </greater-than>
296 </condition>
297 </error>
298 <error>
299 <message>You are in danger of being "behind the power curve". Drop the nose to speed up to 70 knots.</message>
300 <condition>
301 <less-than>
302 <property>/velocities/airspeed-kt</property>
303 <value>69.0</value>
304 </less-than>
305 </condition>
306 </error>
307
308 <exit>
309 <condition>
310 <greater-than>
311 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
312 <value>1900</value>
313 </greater-than>
314 </condition>
315 </exit>
316 </step>
317
318 <step>
319 <message>Level off at between 2000 and 2200 feet.</message>
320
321 <error>
322 <message>You are too low</message>
323 <condition>
324 <less-than>
325 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
326 <value>2000</value>
327 </less-than>
328 </condition>
329 </error>
330 <error>
331 <message>You are too high</message>
332 <condition>
333 <greater-than>
334 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
335 <value>2200</value>
336 </greater-than>
337 </condition>
338 </error>
339 <error>
340 <message>You are heading too far left, Turn right slightly to heading 210.</message>
341 <condition>
342 <less-than>
343 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
344 <value>215</value>
345 </less-than>
346 </condition>
347 </error>
348 <error>
349 <message>You are heading too far right, Turn left slightly to heading 210.</message>
350 <condition>
351 <greater-than>
352 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
353 <value>235</value>
354 </greater-than>
355 </condition>
356 </error>
357
358 <exit>
359 <condition>
360 <and>
361 <greater-than>
362 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
363 <value>2000</value>
364 </greater-than>
365 <less-than>
366 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
367 <value>2200</value>
368 </less-than>
369 <less-than>
370 <property>instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
371 <value>150</value>
372 </less-than>
373 <greater-than>
374 <property>instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
375 <value>-150</value>
376 </greater-than>
377 <greater-than>
378 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
379 <value>215</value>
380 </greater-than>
381 <less-than>
382 <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
383 <value>235</value>
384 </less-than>
385 </and>
386 </condition>
387 </exit>
388 </step>
389
390 <step>
391 <message>Congratulations, you've successfully taken off. Now try landing!</message>
392 </step>
393
394 </PropertyList>