Debian Codegraph @

Aircraft/Instruments-3d/glider/vario/S3/README.install

raw
1 # Copyright 2020-2023 Benedikt Wolf
2 # with parts by Gilberto Agonstinho, WooT, Joshau Davidsonm, Colin Geniet
3 # This file is part of FlightGear.
4 #
5 # FlightGear is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # FlightGear is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with FlightGear. If not, see <http://www.gnu.org/licenses/>.
17
18
19 To install this instrument into your aircraft, you need to do the following:
20
21 1. Enable a second altimeter (<altimeter n="1">) module through the aircraft's instrumentation.xml (in case a custom one is used).
22 Make sure instrumentation/altimeter[1]/serviceable is set to true via your -set.xml file.
23 2. Add S3.nas to your aircraft's list of included nasal files:
24 <nasal>
25 ...
26 <s3>
27 <file>Aircraft/Instruments-3d/glider/vario/S3/S3.nas</file>
28 </s3>
29 ...
30 </nasal>
31 ** Note that it is important to put the file into <s3></s3> tags, as the animation xml may in the future reference the instrument by that name
32 3. Add the model to your aircraft:
33 <model>
34 <path>Aircraft/Instruments-3d/glider/vario/S3/S3.xml</path>
35 ...
36 </model>
37 4. If you are using a custom electric system, make sure the vario is supplied at /systems/electrical/outputs/S3 when appropriate
38 5. Add sound effects for this vario, e.g. by using the block below and adjusting it to fit:
39
40 <variometer-up>
41 <name>variometer-up</name>
42 <mode>looped</mode>
43 <path>Aircraft/Instruments-3d/glider/vario/ilec-sc7/vario.wav</path>
44 <condition>
45 <and>
46 <greater-than>
47 <property>instrumentation/s3/te-reading-mps</property>
48 <value>0.01</value>
49 </greater-than>
50 <greater-than-equals>
51 <property>systems/electrical/outputs/S3</property>
52 <value>9</value>
53 </greater-than-equals>
54 <equals>
55 <property>instrumentation/s3/start</property>
56 <value>1.0</value>
57 </equals>
58 </and>
59 </condition>
60 <pitch>
61 <property>instrumentation/s3/sound-pitch</property>
62 <offset>0</offset>
63 </pitch>
64 <volume>
65 <property>instrumentation/s3/volume</property>
66 <factor>1</factor>
67 <max>1</max>
68 </volume>
69 <!-- Put the position of your variometer loudspeaker here -->
70 <position>
71 <x>-3.35</x>
72 <y>0</y>
73 <z>0.7</z>
74 </position>
75 <reference-dist>0.5</reference-dist>
76 <max-dist>2.0</max-dist>
77 </variometer-up>
78
79 <variometer-down>
80 <name>variometer-down</name>
81 <mode>looped</mode>
82 <path>Aircraft/Instruments-3d/glider/vario/ilec-sc7/vario2.wav</path>
83 <condition>
84 <and>
85 <greater-than>
86 <property>instrumentation/s3/te-reading-mps</property>
87 <value>-10.00</value>
88 </greater-than>
89 <less-than>
90 <property>instrumentation/s3/te-reading-mps</property>
91 <value>-0.01</value>
92 </less-than>
93 <greater-than-equals>
94 <property>systems/electrical/outputs/S3</property>
95 <value>9</value>
96 </greater-than-equals>
97 <equals>
98 <property>instrumentation/s3/start</property>
99 <value>1.0</value>
100 </equals>
101 </and>
102 </condition>
103 <pitch>
104 <property>instrumentation/s3/sound-pitch</property>
105 <offset>0</offset>
106 </pitch>
107 <volume>
108 <property>instrumentation/s3/volume</property>
109 <factor>1</factor>
110 <max>1</max>
111 </volume>
112 <!-- Put the position of your variometer loudspeaker here -->
113 <position>
114 <x>-3.35</x>
115 <y>0</y>
116 <z>0.7</z>
117 </position>
118 <reference-dist>0.5</reference-dist>
119 <max-dist>2.0</max-dist>
120 </variometer-down>
121
122
123
124 ## Please report any bugs, issues and improvements either to the mailing list of FlightGear forum so they can be fixed/included in the shared version of this instrument