1
0
Fork 0

Various bug fixes to the C172p tutorials.

This commit is contained in:
Stuart Buchanan 2014-01-12 19:57:27 +00:00
parent c014e35aec
commit 3922c8c449
6 changed files with 274 additions and 172 deletions

View file

@ -9,7 +9,7 @@ The source of this altimeter setting varies. At high altitudes, a standard press
This tutorial will teach you how to set the altimeter based on the ATIS (Automatic Terminal Information Service) for Livermore Municipal airport.
</description>
<audio-dir>Aircraft/c172p/tutorial/radio</audio-dir>
<audio-dir>Aircraft/c172p/Tutorials/altimeter</audio-dir>
<timeofday>morning</timeofday>
<presets>
<airport-id>KLVK</airport-id>
@ -58,7 +58,6 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
<property>/controls/flight/elevator-trim</property>
<value>0.17</value>
</set>
<set>
<property>/instrumentation/comm[0]/frequencies/selected-mhz</property>
<value>119.650</value>
@ -67,22 +66,25 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
<step>
<message>In this lesson, you'll learn how to set the altimeter to the Livermore ATIS. I've already
set the radio to the correct frequency - 119.65 MHz</message>
set the radio to the correct frequency - 119.65</message>
<wait>10</wait>
</step>
<step>
<message>Listen to the ATIS message. If you cannot hear it, check the Sound Configuration item in the File menu.</message>
<wait>10</wait>
<wait>20</wait>
<set>
<property>/instrumentation/kma20/com1</property>
<value>-1</value>
</set>
</step>
<step>
<message>The ATIS message said the altimeter setting was 29.97.
We can set this using Equipment->Instrument Settings, or we can adjust
the altimeter so that the altimeter matches the altitude of Livermore - 380ft.
<message>The ATIS message said the altimeter setting was 30.13.
We can set this on the altimeter by using the small insert window on the right side.
Alternatively we can adjust the altimeter so that it matches the altitude of Livermore - 380ft.
</message>
<wait>10</wait>
<view>
<heading-offset-deg>353.8</heading-offset-deg>
<pitch-offset-deg>-20.3</pitch-offset-deg>
@ -96,10 +98,9 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
<step>
<message>To adjust the altimeter directly, use the knob on the bottom left. Click on the right
to increase the altitude, and left to decrease. Use the left mouse button to make small adjustments, and
the right button to make large adjustments.
side to increase the altitude, and left to decrease. Alternatively, use your mouse scroll wheel.
</message>
<wait>10</wait>
<view>
<heading-offset-deg>353.8</heading-offset-deg>
<pitch-offset-deg>-20.3</pitch-offset-deg>
@ -119,7 +120,8 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
</step>
<step>
<message>Set the altimeter to 380 feet, or the pressure setting to 29.97 inHG.</message>
<message>Set the altimeter to 380 feet, or the pressure setting to 30.13 inHG.</message>
<wait>10</wait>
<view>
<heading-offset-deg>353.8</heading-offset-deg>
<pitch-offset-deg>-20.3</pitch-offset-deg>
@ -142,7 +144,7 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
<condition>
<less-than>
<property>/instrumentation/altimeter/setting-inhg</property>
<value>29.96</value>
<value>30.12</value>
</less-than>
</condition>
</error>
@ -152,7 +154,7 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
<condition>
<greater-than>
<property>/instrumentation/altimeter/setting-inhg</property>
<value>29.98</value>
<value>30.14</value>
</greater-than>
</condition>
</error>
@ -163,11 +165,11 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
<and>
<greater-than>
<property>/instrumentation/altimeter/setting-inhg</property>
<value>29.96</value>
<value>30.12</value>
</greater-than>
<less-than>
<property>/instrumentation/altimeter/setting-inhg</property>
<value>29.98</value>
<value>30.14</value>
</less-than>
</and>
</condition>
@ -175,8 +177,8 @@ This tutorial will teach you how to set the altimeter based on the ATIS (Automat
</exit>
</step>
<end>
<message>If you set the pressure setting directly, you can double-check you've set the correct
value by checking the current altitude.</message>
<message>Tutorial complete. If you set the pressure setting directly,
you can double-check you've set the correct value by checking the current altitude.</message>
</end>
</PropertyList>

View file

@ -185,7 +185,7 @@ You start the tutorial cruising at around 1000ft and 90kts. To begin your descen
<exit>
<condition>
<less-than>
<property>/velocities/airspeed-kt</property>
<property>/velocities/groundspeed-kt</property>
<value>5.0</value>
</less-than>
</condition>

View file

@ -72,7 +72,8 @@ weather, the altimeter setting and the runway in use.
<wait>10</wait>
</step>
<step>
<message>To change the standby frequency, you can click on the left side of the knob to decrease it, and the right side to increase it. </message>
<message>To change the standby frequency, click on the highlighted knob. The outer knob changes the number on the left of the decimal place.
The inner knob changes the number on the right of the decimal place.</message>
<view>
<field-of-view>14.0</field-of-view>
<heading-offset-deg>336</heading-offset-deg>
@ -86,7 +87,7 @@ weather, the altimeter setting and the runway in use.
</marker>
</step>
<step>
<message>Using the middle mouse button changes the number on the left of the decimal place, while the left mouse button changes the number after the decimal place.</message>
<message>The left mouse button increases the value, while the middle button decreases it. Alternatively, you can use your mouse wheel.</message>
<view>
<field-of-view>14.0</field-of-view>
<heading-offset-deg>336</heading-offset-deg>
@ -157,26 +158,53 @@ weather, the altimeter setting and the runway in use.
</step>
<step>
<message>Listen to the ATIS message. If you cannot hear it,
look at the Sound Configuration dialog on the File menu.
It will tell you the current weather conditions, the runway in use, and the altimeter setting.</message>
</step>
<step>
<message>Once you've heard it, you can switch it off by swapping the frequency back to standby. Do that now.</message>
<message>We need to set the COMM1 output to our headset using the audio panel.
Use your left mouse button to drag the COMM1 switch upwards.</message>
<view>
<field-of-view>14.0</field-of-view>
<heading-offset-deg>336</heading-offset-deg>
<pitch-offset-deg>-20</pitch-offset-deg>
</view>
<marker>
<x-m>-0.3444</x-m>
<y-m>0.0684</y-m>
<z-m>0.0142</z-m>
<x-m>-0.3494</x-m>
<y-m>0.0884</y-m>
<z-m>0.1084</z-m>
<scale>1.0000</scale>
</marker>
<exit>
<condition>
<not>
<equals>
<property>/instrumentation/kma20/com1</property>
<value>0</value>
</equals>
</not>
</condition>
</exit>
</step>
<step>
<message>Listen to the ATIS message. If you cannot hear it, look at the Sound Configuration dialog on the File menu.
It will tell you the current weather conditions, the runway in use, and the altimeter setting.</message>
</step>
<step>
<message>Once you've heard it, you can switch it off by swapping the frequency back to standby, or toggling off the audio panel.
Do that now.</message>
<view>
<field-of-view>14.0</field-of-view>
<heading-offset-deg>336</heading-offset-deg>
<pitch-offset-deg>-20</pitch-offset-deg>
</view>
<marker>
<x-m>-0.3494</x-m>
<y-m>0.0884</y-m>
<z-m>0.1084</z-m>
<scale>1.0000</scale>
</marker>
<exit>
<condition>
<or>
<and>
<greater-than>
<property>/instrumentation/comm[0]/frequencies/standby-mhz</property>
@ -187,6 +215,11 @@ weather, the altimeter setting and the runway in use.
<value>119.66</value>
</less-than>
</and>
<equals>
<property>/instrumentation/kma20/com1</property>
<value>0</value>
</equals>
</or>
</condition>
</exit>
</step>

View file

@ -62,6 +62,27 @@ For more information on the before takeoff checklist, see Section 2-11 of the FA
<step>
<message>In this lesson we'll cover the pre-takeoff checks.</message>
<nasal>
<script>
# Script to simulate holding down the starter button until the engine starts
var starter = func() {
setprop("/controls/engines/engine/starter", 1);
if (! getprop("/engines/engine/running")) {
settimer(starter, 0);
}
};
# The FDM resets the starter property on each FDM cycle. By effectively starting
# a number of threads to continually keep setting the starter to true, we can
# get around this and give the engine the opportunity to catch.
starter();
starter();
starter();
starter();
starter();
</script>
</nasal>
</step>
<step>
@ -69,8 +90,7 @@ For more information on the before takeoff checklist, see Section 2-11 of the FA
<property>/controls/engines/engine/starter</property>
<value>false</value>
</set>
<message>You can access the pre-takeoff checklist by pressing ?,
or selecting Help->Aircraft Help from the menu.</message>
<message>You can access the pre-takeoff checklist by selecting Help->Checklists from the menu.</message>
<wait>10</wait>
</step>
@ -208,11 +228,11 @@ and that the aircraft has been rigged correctly.</message>
<and>
<greater-than>
<property>/engines/engine/rpm</property>
<value>1650</value>
<value>1600</value>
</greater-than>
<less-than>
<property>/engines/engine/rpm</property>
<value>1750</value>
<value>1700</value>
</less-than>
</and>
</condition>
@ -309,7 +329,7 @@ and that the aircraft has been rigged correctly.</message>
</step>
<step>
<message>Click the left hotspot twice, to switch to the right magneto.
<message>Click the left hotspot twice, to switch to the right magneto, or use your mouse scrollwheel.
There should be a small drop in the tachometer.</message>
<view>
<heading-offset-deg>11.3</heading-offset-deg>

View file

@ -117,6 +117,7 @@ This tutorial will take you through the pre-startup checklist and starting the C
</error>
<error>
<message>That's a bit too much. Pull it out slightly using your joystick throttle control, or PgDn.</message>
<message>That's a bit too much - pull it out slightly.</message>
<condition>
<greater-than>
<property>/controls/engines/engine/throttle</property>
@ -169,7 +170,8 @@ This tutorial will take you through the pre-startup checklist and starting the C
</step>
<step>
<message>We need to switch on the magnetos. Click the middle hotspot three times, so the key is set to BOTH.</message>
<message>We need to switch on the magnetos.
Click the middle hotspot three times, or use your mouse scroll wheel, so the key is set to BOTH.</message>
<view>
<heading-offset-deg>12.2</heading-offset-deg>
<pitch-offset-deg>-35.2</pitch-offset-deg>
@ -286,7 +288,7 @@ This tutorial will take you through the pre-startup checklist and starting the C
</condition>
</error>
<error>
<message>That's a bit high. Reduce throttle slightly with PgDn, or your joystick throttle control.</message>
<message>That's a bit high. Reduce throttle to below 1000 RPM using PgDn, or your joystick throttle control.</message>
<condition>
<greater-than>
<property>/engines/engine/rpm</property>
@ -295,7 +297,7 @@ This tutorial will take you through the pre-startup checklist and starting the C
</condition>
</error>
<error>
<message>That's too low. Increase throttle slightly with PgUp, or your joystick throttle control.</message>
<message>That's too low. Increase throttle to above 800 RPM with PgUp, or your joystick throttle control.</message>
<condition>
<less-than>
<property>/engines/engine/rpm</property>
@ -320,6 +322,6 @@ This tutorial will take you through the pre-startup checklist and starting the C
</step>
<end>
<message>Great. We're now ready to taxi to the runway.</message>
<message>Great, our lesson is complete. We're now ready to taxi to the runway.</message>
</end>
</PropertyList>

View file

@ -69,16 +69,12 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</set>
<set>
<property>/controls/engines/engine/throttle</property>
<value>0.07</value>
<value>0.2</value>
</set>
<set>
<property>/controls/engines/engine/starter</property>
<value>true</value>
</set>
<set>
<property>/engines/engine/running</property>
<value>true</value>
</set>
<set>
<property>/instrumentation/adf/frequencies/selected-khz</property>
<value>340</value>
@ -94,9 +90,29 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</init>
<step>
<message>In this lesson we'll taxi the aircraft from its parking
position infront of the FBO, along taxiways Juliet and Alpha to the run-up area near runway 07L.</message>
<wait>10</wait>
<message>In this lesson we'll taxi the aircraft from its parking position infront of the FBO,
along taxiways Juliet and Alpha to the run-up area near runway 07L.</message>
<nasal>
<script>
# Script to simulate holding down the starter button until the engine starts
var starter = func() {
setprop("/controls/engines/engine/starter", 1);
if (! getprop("/engines/engine/running")) {
settimer(starter, 0);
}
};
# The FDM resets the starter property on each FDM cycle. By effectively starting
# a number of threads to continually keep setting the starter to true, we can
# get around this and give the engine the opportunity to catch.
starter();
starter();
starter();
starter();
starter();
</script>
</nasal>
</step>
<step>
@ -106,25 +122,6 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</set>
<message>I've already started the engine. Press Shift-B to release the parking brake. Throttle up to about
20% to move forward slightly, then hold b to check that the normal brakes work.</message>
<error>
<message>Apply the brakes by pressing b.</message>
<condition>
<and>
<equals>
<property>/controls/gear/brake-parking</property>
<value>0</value>
</equals>
<equals>
<property>/controls/gear/brake-left</property>
<value>0</value>
</equals>
<equals>
<property>/controls/gear/brake-left</property>
<value>0</value>
</equals>
</and>
</condition>
</error>
<error>
<message>The parking brake is still on. Release it by pressing Shift-B.</message>
<condition>
@ -149,6 +146,25 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</and>
</condition>
</error>
<error>
<message>Apply the brakes by pressing b.</message>
<condition>
<and>
<equals>
<property>/controls/gear/brake-parking</property>
<value>0</value>
</equals>
<equals>
<property>/controls/gear/brake-left</property>
<value>0</value>
</equals>
<equals>
<property>/controls/gear/brake-left</property>
<value>0</value>
</equals>
</and>
</condition>
</error>
<exit>
<condition>
<and>
@ -173,6 +189,7 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
<message>Keep applying the brakes. You can steer the aircraft on the ground by either using 0/Enter on the
numeric keypad, or using the mouse in yoke mode (+) with the left mouse button held down. If you need to slow
down, just press b to apply the brakes.</message>
<wait>10</wait>
<error>
<message>Keep the brakes on until I tell you to start taxiing.</message>
<condition>
@ -191,7 +208,8 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</step>
<step>
<message>Release the brakes and taxi forwards. Make a right turn onto taxiway Juliet.</message>
<message>Release the brakes and taxi forwards. You may need to apply a little throttle to get going. Make a right turn onto taxiway Juliet.</message>
<wait>5</wait>
<error>
<message>That's left, not right.</message>
<condition>
@ -207,6 +225,15 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</or>
</condition>
</error>
<error>
<message>Apply a little throttle to get going, but then reduce it once you're moving.</message>
<condition>
<less-than>
<property>/velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>
</condition>
</error>
<exit>
<condition>
<and>
@ -243,6 +270,15 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</or>
</condition>
</error>
<error>
<message>You're going too fast. Reduce your throttle slightly and apply your brakes.</message>
<condition>
<greater-than>
<property>/velocities/groundspeed-kt</property>
<value>10.0</value>
</greater-than>
</condition>
</error>
<exit>
<condition>
<less-than>
@ -272,6 +308,15 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</or>
</condition>
</error>
<error>
<message>You're going too fast. Reduce your throttle slightly and apply your brakes.</message>
<condition>
<greater-than>
<property>/velocities/groundspeed-kt</property>
<value>10.0</value>
</greater-than>
</condition>
</error>
<exit>
<condition>
<less-than>
@ -374,7 +419,7 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</step>
<step>
<message>We've reached the run-up area. Brake slowly to a stop and set the parking brake.</message>
<message>We've reached the run-up area. Brake slowly to a stop and set the parking brake (shift-b).</message>
<exit>
<condition>
<equals>
@ -386,6 +431,6 @@ For more information on taxiing, see Section 2-9 of the FAA Airplane Flying Hand
</step>
<end>
<message>We've reached the run-up area. Well done</message>
<message>We've reached the run-up area. Well done.</message>
</end>
</PropertyList>