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">
35 <!-- *********************** DISS staff *********************** -->
36 <fcs_function name="instrumentation/drift-angle-raw">
37 <description>Ground true heading</description>
42 <property>velocities/v-east-fps</property>
43 <property>velocities/v-north-fps</property>
46 <property>attitude/heading-true-rad</property>
48 <value>57.29578</value>
52 <switch name="instrumentation/drift-angle-bias">
53 <default value="0.0"/>
55 instrumentation/drift-angle-raw lt -180
58 instrumentation/drift-angle-raw gt 180
61 <summer name="instrumentation/drift-angle-deg">
62 <input>instrumentation/drift-angle-raw</input>
63 <input>instrumentation/drift-angle-bias</input>
67 <!-- ******************* voice warning staff ****************** -->
68 <pure_gain name="instrumentation/mass-kg">
69 <input>inertia/weight-lbs</input>
73 <pure_gain name="instrumentation/mass-t">
74 <input>instrumentation/mass-kg</input>
78 <pure_gain name="instrumentation/vc-kmh">
79 <input>velocities/vc-fps</input>
84 <fcs_function name="instrumentation/v-2">
85 <description>Safe speed</description>
87 <table name="Safe speed due mass and flaps">
88 <independentVar lookup="row">instrumentation/mass-t</independentVar>
89 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
111 <!--Rotation speed-->
112 <fcs_function name="instrumentation/v-r">
113 <description>Rotation speed</description>
115 <table name="Rotation speed due mass and flaps">
116 <independentVar lookup="row">instrumentation/mass-t</independentVar>
117 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
140 <fcs_function name="instrumentation/v-ref">
141 <description>Ref speed</description>
143 <table name="Ref speed due mass and flaps">
144 <independentVar lookup="row">instrumentation/mass-t</independentVar>
145 <independentVar lookup="column">fcs/flap-pos-deg</independentVar>
173 <summer name="instrumentation/v-1">
174 <input>instrumentation/v-2</input>
179 <!-- ******************* RV-5M staff ****************** -->
180 <pure_gain name="instrumentation/pitch-clipped">
181 <input>attitude/pitch-rad</input>
188 <pure_gain name="instrumentation/roll-clipped">
189 <input>attitude/roll-rad</input>
198 <fcs_function name="instrumentation/h-angle-corr">
199 <description>cos from pitch and roll</description>
202 <value>0.3048</value> <!--From feet to meters-->
205 <property>instrumentation/pitch-clipped</property>
208 <property>instrumentation/roll-clipped</property>
215 <pure_gain name="instrumentation/indicated-altitude-m">
216 <input>position/h-agl-ft</input>
217 <gain>instrumentation/h-angle-corr</gain>
224 <!-- ******************* AUASP ****************** -->
225 <lag_filter name="instrumentation/n-norm">
226 <input>accelerations/n-pilot-z-norm</input>
230 <!--************************** TKS staff ****************************-->
232 <!--Latitudal correction-->
234 <pure_gain name="instrumentation/pu11-lat-rad">
235 <input>instrumentation/pu11-latitude</input>
239 <switch name="instrumentation/tks-lat-rad">
240 <default value="instrumentation/pu11-lat-rad"/>
241 <test value="position/lat-gc-rad">
242 instrumentation/tks-latitude-auto == 1
246 <!-- <summer name="instrumentation/tks-lat-error-rad">
247 <input>instrumentation/tks-lat</input>
248 <input>-position/lat-gc-rad</input>
251 <pure_gain name="instrumentation/tks-lat-deg">
252 <input>instrumentation/tks-lat-rad</input>
256 <pure_gain name="instrumentation/tks-timeoffset-deg">
257 <!--<input>simulation/sim-time-sec</input> -->
258 <input>sim-time-sec</input>
259 <gain>0.0041666667</gain>
263 <fcs_function name="instrumentation/tks-lat-corr">
264 <description>Latitudal correction</description>
267 <property>instrumentation/tks-timeoffset-deg</property>
270 <property>instrumentation/tks-lat-rad</property>
273 <property>position/lat-gc-rad</property>
280 <!--For debug only!-->
282 <pure_gain name="instrumentation/heading-true-deg">
283 <input>attitude/heading-true-rad</input>
287 <summer name="instrumentation/ga3-corrected-1">
288 <input>ap/input-heading-gyro-1</input>
290 <!--<input>instrumentation/heading-true-deg</input>-->
292 <input>instrumentation/az-err</input>
293 <input>-instrumentation/tks-lat-corr</input>
296 <summer name="instrumentation/ga3-corrected-2">
297 <input>ap/input-heading-gyro-2</input>
298 <input>instrumentation/az-err</input>
299 <input>-instrumentation/tks-lat-corr</input>
301 <!--Main selector for tks heading source - 1 or 2-->
302 <switch name="instrumentation/tks-heading">
303 <default value="instrumentation/ga3-corrected-1"/>
304 <test value="instrumentation/ga3-corrected-2">
305 instrumentation/tks-consumers == 1
309 <!--KM-5 procedure-->
310 <!--1\2 mag deviation-->
312 <scheduled_gain name="instrumentation/km-5-dev-1">
313 <input>systems/electrical-ok</input> <!--Need 1 here-->
315 <independentVar> ap/input-magnetic-heading </independentVar>
326 <scheduled_gain name="instrumentation/km-5-dev-2">
327 <input>systems/electrical-ok</input> <!--Need 1 here-->
329 <independentVar> ap/input-magnetic-heading </independentVar>
340 <summer name="instrumentation/km-5-1">
341 <input>ap/input-magnetic-heading</input>
342 <input>instrumentation/km-5-dev-1</input>
343 <input>instrumentation/km-5-magvar-1</input>
346 <summer name="instrumentation/km-5-2">
347 <input>ap/input-magnetic-heading</input>
348 <input>instrumentation/km-5-dev-2</input>
349 <input>instrumentation/km-5-magvar-2</input>
352 <!--Gyro-magnetic heading procedure-->
355 <summer name="instrumentation/bgmk-fork-1">
356 <input>-instrumentation/ga3-corrected-1</input>
357 <input>instrumentation/km-5-1</input>
358 <input>-instrumentation/bgmk-offset-1</input>
365 <switch name="instrumentation/bgmk-tau-1">
366 <default value="0.0042"/>
368 instrumentation/bgmk-corrector-1 == 1
372 <integrator name="instrumentation/bgmk-1-integrator">
373 <input>instrumentation/bgmk-fork-1</input>
374 <c1>instrumentation/bgmk-tau-1</c1>
375 <trigger>instrumentation/bgmk-failure-1</trigger>
376 <output>instrumentation/bgmk-offset-1</output>
379 <summer name="instrumentation/bgmk-1">
380 <input>instrumentation/ga3-corrected-1</input>
381 <input>instrumentation/bgmk-1-integrator</input>
386 <summer name="instrumentation/bgmk-fork-2">
387 <input>-instrumentation/ga3-corrected-2</input>
388 <input>instrumentation/km-5-2</input>
389 <input>-instrumentation/bgmk-offset-2</input>
396 <switch name="instrumentation/bgmk-tau-2">
397 <default value="0.0042"/>
399 instrumentation/bgmk-corrector-2 == 1
403 <integrator name="instrumentation/bgmk-2-integrator">
404 <input>instrumentation/bgmk-fork-2</input>
405 <c1>instrumentation/bgmk-tau-2</c1>
406 <trigger>instrumentation/bgmk-failure-2</trigger>
407 <output>instrumentation/bgmk-offset-2</output>
410 <summer name="instrumentation/bgmk-2">
411 <input>instrumentation/ga3-corrected-2</input>
412 <input>instrumentation/bgmk-2-integrator</input>
415 <!--End gyro-magnetic proc-->
417 <switch name="instrumentation/pnp-heading-left">
418 <default value="instrumentation/ga3-corrected-1"/>
419 <test value="instrumentation/bgmk-1">
420 instrumentation/pnp-left-selector == 0
424 <switch name="instrumentation/pnp-heading-right">
425 <default value="instrumentation/ga3-corrected-2"/>
426 <test value="instrumentation/bgmk-2">
427 instrumentation/pnp-right-selector == 0
431 <switch name="instrumentation/pnp-heading">
432 <default value="instrumentation/pnp-heading-left"/>
433 <test value="instrumentation/pnp-heading-right">
434 instrumentation/pnp-selector == 1
438 <!--************************** End TKS staff ****************************-->
440 <!--******************** END externals channel ***********************-->