4 Author: Yurik V. Nikiforoff, yurik@megasignal.com
6 Function: Custom instruments and misc systems for TU-154B
9 <system name="Instrumentation">
10 <!--Interface to TKS compass system-->
12 <property>instrumentation/km-5-magvar-1</property>
13 <property>instrumentation/km-5-magvar-2</property>
15 <property>instrumentation/pu11-latitude</property>
16 <property>instrumentation/bgmk-offset-1</property>
17 <property>instrumentation/bgmk-offset-2</property>
20 <property>instrumentation/bgmk-failure-1</property>
21 <property>instrumentation/bgmk-failure-2</property>
23 <property>instrumentation/bgmk-corrector-1</property>
24 <property>instrumentation/bgmk-corrector-2</property>
26 <property>instrumentation/pnp-selector</property>
27 <property>instrumentation/pnp-right-selector</property>
28 <property>ap/input-magnetic-heading</property>
29 <property>ap/input-heading-gyro-1</property>
30 <property>ap/input-heading-gyro-2</property>
31 <!--Azimutal error from nasal handler-->
32 <property>instrumentation/az-err</property>
34 <channel name="Externals">
36 <!-- ******************* voice warning staff ****************** -->
37 <pure_gain name="instrumentation/mass-kg">
38 <input>inertia/weight-lbs</input>
42 <pure_gain name="instrumentation/mass-t">
43 <input>instrumentation/mass-kg</input>
47 <pure_gain name="instrumentation/vc-kmh">
48 <input>velocities/vc-fps</input>
53 <fcs_function name="instrumentation/v-2">
54 <description>Safe speed</description>
56 <table name="Safe speed due mass and flaps">
57 <independentVar lookup="row">instrumentation/mass-t</independentVar>
58 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
81 <fcs_function name="instrumentation/v-r">
82 <description>Rotation speed</description>
84 <table name="Rotation speed due mass and flaps">
85 <independentVar lookup="row">instrumentation/mass-t</independentVar>
86 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
109 <fcs_function name="instrumentation/v-ref">
110 <description>Ref speed</description>
112 <table name="Ref speed due mass and flaps">
113 <independentVar lookup="row">instrumentation/mass-t</independentVar>
114 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
142 <summer name="instrumentation/v-1">
143 <input>instrumentation/v-2</input>
148 <!-- ******************* AUASP ****************** -->
149 <lag_filter name="instrumentation/n-norm">
150 <input>accelerations/n-pilot-z-norm</input>
154 <!--************************** TKS staff ****************************-->
156 <!--Latitudal correction-->
158 <pure_gain name="instrumentation/pu11-lat-rad">
159 <input>instrumentation/pu11-latitude</input>
163 <switch name="instrumentation/tks-lat-rad">
164 <default value="instrumentation/pu11-lat-rad"/>
165 <test value="position/lat-gc-rad">
166 instrumentation/tks-latitude-auto == 1
170 <!-- <summer name="instrumentation/tks-lat-error-rad">
171 <input>instrumentation/tks-lat</input>
172 <input>-position/lat-gc-rad</input>
175 <pure_gain name="instrumentation/tks-lat-deg">
176 <input>instrumentation/tks-lat-rad</input>
180 <pure_gain name="instrumentation/tks-timeoffset-deg">
181 <input>simulation/sim-time-sec</input>
182 <!--<input>sim-time-sec</input>-->
183 <gain>0.0041666667</gain>
187 <fcs_function name="instrumentation/tks-lat-corr">
188 <description>Latitudal correction</description>
191 <property>instrumentation/tks-timeoffset-deg</property>
194 <property>instrumentation/tks-lat-rad</property>
197 <property>position/lat-gc-rad</property>
204 <!--For debug only!-->
206 <pure_gain name="instrumentation/heading-true-deg">
207 <input>attitude/heading-true-rad</input>
211 <summer name="instrumentation/ga3-corrected-1">
212 <input>ap/input-heading-gyro-1</input>
214 <!--<input>instrumentation/heading-true-deg</input>-->
216 <input>instrumentation/az-err</input>
217 <input>-instrumentation/tks-lat-corr</input>
220 <summer name="instrumentation/ga3-corrected-2">
221 <input>ap/input-heading-gyro-2</input>
222 <input>instrumentation/az-err</input>
223 <input>-instrumentation/tks-lat-corr</input>
225 <!--Main selector for tks heading source - 1 or 2-->
226 <switch name="instrumentation/tks-heading">
227 <default value="instrumentation/ga3-corrected-1"/>
228 <test value="instrumentation/ga3-corrected-2">
229 instrumentation/tks-consumers == 1
233 <!--KM-5 procedure-->
234 <!--1\2 mag deviation-->
236 <scheduled_gain name="instrumentation/km-5-dev-1">
237 <input>systems/electrical-ok</input> <!--Need 1 here-->
239 <independentVar> ap/input-magnetic-heading </independentVar>
250 <scheduled_gain name="instrumentation/km-5-dev-2">
251 <input>systems/electrical-ok</input> <!--Need 1 here-->
253 <independentVar> ap/input-magnetic-heading </independentVar>
264 <summer name="instrumentation/km-5-1">
265 <input>ap/input-magnetic-heading</input>
266 <input>instrumentation/km-5-dev-1</input>
267 <input>instrumentation/km-5-magvar-1</input>
270 <summer name="instrumentation/km-5-2">
271 <input>ap/input-magnetic-heading</input>
272 <input>instrumentation/km-5-dev-2</input>
273 <input>instrumentation/km-5-magvar-2</input>
276 <!--Gyro-magnetic heading procedure-->
279 <summer name="instrumentation/bgmk-fork-1">
280 <input>-instrumentation/ga3-corrected-1</input>
281 <input>instrumentation/km-5-1</input>
282 <input>-instrumentation/bgmk-offset-1</input>
289 <switch name="instrumentation/bgmk-tau-1">
290 <default value="0.0042"/>
292 instrumentation/bgmk-corrector-1 == 1
296 <integrator name="instrumentation/bgmk-1-integrator">
297 <input>instrumentation/bgmk-fork-1</input>
298 <c1>instrumentation/bgmk-tau-1</c1>
299 <trigger>instrumentation/bgmk-failure-1</trigger>
300 <output>instrumentation/bgmk-offset-1</output>
303 <summer name="instrumentation/bgmk-1">
304 <input>instrumentation/ga3-corrected-1</input>
305 <input>instrumentation/bgmk-1-integrator</input>
310 <summer name="instrumentation/bgmk-fork-2">
311 <input>-instrumentation/ga3-corrected-2</input>
312 <input>instrumentation/km-5-2</input>
313 <input>-instrumentation/bgmk-offset-2</input>
320 <switch name="instrumentation/bgmk-tau-2">
321 <default value="0.0042"/>
323 instrumentation/bgmk-corrector-2 == 1
327 <integrator name="instrumentation/bgmk-2-integrator">
328 <input>instrumentation/bgmk-fork-2</input>
329 <c1>instrumentation/bgmk-tau-2</c1>
330 <trigger>instrumentation/bgmk-failure-2</trigger>
331 <output>instrumentation/bgmk-offset-2</output>
334 <summer name="instrumentation/bgmk-2">
335 <input>instrumentation/ga3-corrected-2</input>
336 <input>instrumentation/bgmk-2-integrator</input>
339 <!--End gyro-magnetic proc-->
341 <switch name="instrumentation/pnp-heading-left">
342 <default value="instrumentation/ga3-corrected-1"/>
343 <test value="instrumentation/bgmk-1">
344 instrumentation/pnp-left-selector == 0
348 <switch name="instrumentation/pnp-heading-right">
349 <default value="instrumentation/ga3-corrected-2"/>
350 <test value="instrumentation/bgmk-2">
351 instrumentation/pnp-right-selector == 0
355 <switch name="instrumentation/pnp-heading">
356 <default value="instrumentation/pnp-heading-left"/>
357 <test value="instrumentation/pnp-heading-right">
358 instrumentation/pnp-selector == 1
362 <!--************************** End TKS staff ****************************-->
364 <!--******************** END externals channel ***********************-->