Merge branch 'master' of gitorious.org:fg/fgdata
[fg:toms-fgdata.git] / Aircraft / tu154b / Systems / nvu.xml
1 <?xml version="1.0"?>
2 <!--
3
4   Author:   Yurik V. Nikiforoff, yurik@megasignal.com
5   Date:     nov 2008
6   Function: NVU navigation system TU-154B
7   License:  GPL
8 -->
9 <system name="NVU">
10   
11   <!--******************** Interface to NVU nav computer ************************ -->  
12   <!--<property>instrumentation/tks-heading</property>-->
13   
14   <property>instrumentation/nvu-selector</property>
15   <property>instrumentation/zpu-deg-1</property>
16   <property>instrumentation/zpu-deg-2</property>
17   <!--<property>ap/input-drift-deg</property>-->
18   <!--<property>instrumentation/input-vg-fps</property>-->
19   <!--RSBN correction-->
20   <property>instrumentation/rsbn-d-m</property>
21   <property>instrumentation/rsbn-angle-deg</property>
22   <property>instrumentation/rsbn-uk-deg</property>
23   <!--Speed from SVS-->
24   <property>instrumentation/svs-speed-kt</property>
25   <property>instrumentation/svs-enable</property>
26   <!--Enable RSBN correction-->
27   <property>instrumentation/rsbn-cft-1</property>
28   <property>instrumentation/rsbn-cft-2</property>
29   <!--Enable coordinate convertion-->
30   <property>instrumentation/enable-convertion</property>
31   <!--Enable coordinate count (value should be fps2kmh const) -->
32   <property>instrumentation/enable-count</property>
33   <!--Point Input S-1 -->
34   <property>instrumentation/p-input-s-1</property>
35   <!--Point Input S-2 -->
36   <property>instrumentation/p-input-s-2</property>
37   <!--Point Input Z-1 -->
38   <property>instrumentation/p-input-z-1</property>
39   <!--Point Input Z-2 -->
40   <property>instrumentation/p-input-z-2</property>
41   
42   <!--Aircraft Input S-1 -->
43   <property>instrumentation/a-input-s-1</property>
44   <!--Aircraft Input S-2 -->
45   <property>instrumentation/a-input-s-2</property>
46   <!--Aircraft Input Z-1 -->
47   <property>instrumentation/a-input-z-1</property>
48   <!--Aircraft Input Z-2 -->
49   <property>instrumentation/a-input-z-2</property>
50   
51   <!--Internal NVU variables. 
52                It's should be declared here, cause FDM not allowed forward declaration-->  
53   <!--Enable coordinate convertion-->
54   <property>instrumentation/corr-rsbn-s-1</property>
55   <property>instrumentation/corr-rsbn-z-1</property>
56   <property>instrumentation/corr-rsbn-s-2</property>
57   <property>instrumentation/corr-rsbn-z-2</property>
58   
59   <property>instrumentation/cc-s-1</property>
60   <property>instrumentation/cc-z-1</property>
61   <property>instrumentation/cc-s-2</property>
62   <property>instrumentation/cc-z-2</property>
63   
64   <property>instrumentation/aircraft-integrator-s-1</property>
65   <property>instrumentation/aircraft-integrator-z-1</property>
66   <property>instrumentation/point-integrator-s-1</property>
67   <property>instrumentation/point-integrator-z-1</property>
68   
69   <property>instrumentation/aircraft-integrator-s-2</property>
70   <property>instrumentation/aircraft-integrator-z-2</property>
71   <property>instrumentation/point-integrator-s-2</property>
72   <property>instrumentation/point-integrator-z-2</property>
73   
74 <channel name="nvu">
75
76 <!--**************************** NVU staff ******************************-->    
77 <!--Ground speed from DISS or SVS -->
78 <switch name="instrumentation/v-fps">
79   <default value="velocities/vg-fps"/>
80   <test value="velocities/vc-fps">
81     instrumentation/svs-enable ne 0
82   </test>
83 </switch>
84
85 <pure_gain name="instrumentation/vg-kmh">
86   <input>instrumentation/v-fps</input>
87   <gain>instrumentation/enable-count</gain><!--1.09728 from fps to kmh-->
88 </pure_gain>
89
90 <summer name="instrumentation/rsbn-angle">
91   <input>instrumentation/rsbn-angle-deg</input>
92   <input>-instrumentation/rsbn-uk-deg</input>
93 </summer>
94
95 <!-- RSBN -->
96 <!--S-->
97 <fcs_function name="instrumentation/rsbn-s-distance">
98   <description>cos(rsbn-angle)</description>
99   <function>
100     <product>
101       <property>instrumentation/rsbn-d-m</property>
102       <cos>
103         <product>
104           <property>instrumentation/rsbn-angle</property>
105           <value>0.0174533</value><!--to rad-->
106         </product>
107       </cos>
108     </product>
109   </function>
110 </fcs_function>
111 <!--Z-->
112 <fcs_function name="instrumentation/rsbn-z-distance">
113   <description>sin(rsbn-angle)</description>
114   <function>
115     <product>
116       <property>instrumentation/rsbn-d-m</property>
117       <sin>
118         <product>
119           <property>instrumentation/rsbn-angle</property>
120           <value>0.0174533</value>
121         </product>
122       </sin>
123     </product>
124   </function>
125 </fcs_function>
126 <!-- ******************* Begin V-52[0] procedure ******************** -->
127 <!--Ortodromic heading-->
128 <!--<summer name="instrumentation/ort-hdg-raw-1">-->
129 <summer name="instrumentation/ort-hdg-1">
130   <input>instrumentation/tks-heading</input>
131   <input>-instrumentation/zpu-deg-1</input>
132   <!--<input>ap/input-drift-deg</input>-->
133 <input>instrumentation/drift-angle-deg</input>
134 </summer>
135 <!--
136 <switch name="instrumentation/ort-hdg-bias-1">
137   <default value="0.0"/>
138   <test value="360.0">
139     instrumentation/ort-hdg-raw-1 lt -180
140   </test>
141   <test value="-360.0">
142     instrumentation/ort-hdg-raw-1 gt 180
143   </test>
144 </switch>
145 <summer name="instrumentation/ort-hdg-1">
146   <input>instrumentation/ort-hdg-raw-1</input>
147   <input>instrumentation/ort-hdg-bias-1</input>
148 </summer>
149 -->
150 <!--Ortodromic heading here in ort-hdg -->
151 <!--Aircraft-->
152 <!--S-->
153 <fcs_function name="instrumentation/aircraft-s-speed-1">
154   <description>cos(ort-hdg)</description>
155   <function>
156     <product>
157       <property>instrumentation/vg-kmh</property>
158       <cos>
159         <product>
160           <property>instrumentation/ort-hdg-1</property>
161           <value>0.0174533</value><!--to rad-->
162         </product>
163       </cos>
164     </product>
165   </function>
166 </fcs_function>
167 <!--Z-->
168 <fcs_function name="instrumentation/aircraft-z-speed-1">
169   <description>sin(ort-hdg)</description>
170   <function>
171     <product>
172       <property>instrumentation/vg-kmh</property>
173       <sin>
174         <product>
175           <property>instrumentation/ort-hdg-1</property>
176           <value>0.0174533</value>
177         </product>
178       </sin>
179     </product>
180   </function>
181 </fcs_function>
182 <!--Count new coordinate (S, Z) for next ort -->
183 <fcs_function name="instrumentation/s-next-1">
184   <description>S coordinate for next ort - block 1</description>
185   <function>
186     <difference>
187       <property>instrumentation/point-integrator-s-1</property>
188       <product>
189         <pow>
190           <sum>
191             <product>
192               <property>instrumentation/aircraft-integrator-s-2</property>
193               <property>instrumentation/aircraft-integrator-s-2</property>
194             </product>
195             <product>
196               <property>instrumentation/aircraft-integrator-z-2</property>
197               <property>instrumentation/aircraft-integrator-z-2</property>
198             </product>
199           </sum>
200           <value>0.5</value><!--we need sqrt-->
201         </pow>
202         <cos>
203           <sum>
204             <sum> <!--Alpha-->
205               <atan2>
206                 <property>instrumentation/aircraft-integrator-z-2</property>
207                 <property>instrumentation/aircraft-integrator-s-2</property>
208               </atan2>
209               <value>3.1415926</value>
210             </sum>
211             <product><!--Beta-->
212               <difference>
213                 <property>instrumentation/zpu-deg-2</property>
214                 <property>instrumentation/zpu-deg-1</property>
215               </difference>
216               <value>0.0174533</value><!--to rad -->
217             </product>
218           </sum>
219         </cos>
220       </product>
221     </difference>
222   </function>
223 </fcs_function>
224
225 <fcs_function name="instrumentation/z-next-1">
226   <description>Z coordinate for next ort - block 1</description>
227   <function>
228     <difference>
229       <property>instrumentation/point-integrator-z-1</property>
230       <product>
231         <pow>
232           <sum>
233             <product>
234               <property>instrumentation/aircraft-integrator-s-2</property>
235               <property>instrumentation/aircraft-integrator-s-2</property>
236             </product>
237             <product>
238               <property>instrumentation/aircraft-integrator-z-2</property>
239               <property>instrumentation/aircraft-integrator-z-2</property>
240             </product>
241           </sum>
242           <value>0.5</value>
243         </pow>
244         <sin>
245           <sum>
246             <sum> <!--Alpha-->
247               <atan2>
248                 <property>instrumentation/aircraft-integrator-z-2</property>
249                 <property>instrumentation/aircraft-integrator-s-2</property>
250               </atan2>
251               <value>3.1415926</value>
252             </sum>
253             <product><!--Beta-->
254               <difference>
255                 <property>instrumentation/zpu-deg-2</property>
256                 <property>instrumentation/zpu-deg-1</property>
257               </difference>
258               <value>0.0174533</value><!-- to rad -->
259             </product>
260           </sum>
261         </sin>
262       </product>
263     </difference>
264   </function>
265 </fcs_function>
266
267 <!--Input and  convertion procedures-->
268
269 <!-- Point S -->
270 <integrator name="instrumentation/p-i-s-1">
271   <input>instrumentation/p-input-s-1</input>
272   <c1>0.277778</c1>
273   <output>instrumentation/point-integrator-s-1</output>
274 </integrator>
275
276 <!--Deadband for point blanker-->
277 <deadband name="instrumentation/p-blanker-db-s-1">
278   <input>instrumentation/point-integrator-s-1</input>
279   <width> 200 </width>
280 </deadband>    
281
282 <!-- Point Z -->
283 <integrator name="instrumentation/p-i-z-1">
284   <input>instrumentation/p-input-z-1</input>
285   <c1>0.277778</c1>
286   <output>instrumentation/point-integrator-z-1</output>
287 </integrator>
288
289 <!--Deadband for point blanker-->
290 <deadband name="instrumentation/p-blanker-db-z-1">
291   <input>instrumentation/point-integrator-z-1</input>
292   <width> 200 </width>
293 </deadband>
294
295 <switch name="instrumentation/a-s-switched-speed-1">
296   <default value="0.0"/>
297   <test value="instrumentation/aircraft-s-speed-1">
298     instrumentation/nvu-selector eq 1
299   </test>
300 </switch>    
301 <!--Aircraft S 1 Input -->    
302 <summer name="instrumentation/inp-integr-s-1">
303   <input>instrumentation/a-s-switched-speed-1</input>
304   <input>instrumentation/corr-rsbn-s-1</input>
305   <input>instrumentation/cc-s-1</input>
306   <input>instrumentation/a-input-s-1</input>
307 </summer>    
308 <!-- Aircraft Integrator S -->
309 <!--Distance in meters here!-->
310 <integrator name="instrumentation/a-i-s-1"> 
311   <input>instrumentation/inp-integr-s-1</input>
312   <c1>0.277778</c1>
313   <output>instrumentation/aircraft-integrator-s-1</output>
314 </integrator>
315 <!--Deadband for aircraft blanker-->
316 <deadband name="instrumentation/a-blanker-db-s-1">
317   <input>instrumentation/aircraft-integrator-s-1</input>
318   <width> 200 </width>
319 </deadband>
320 <!--Deadband for coordinate convertion - input from 2-nd block! -->
321 <deadband name="instrumentation/a-cc-db-s-1">
322   <input>instrumentation/aircraft-integrator-s-2</input>
323   <width> 160000 </width> <!-- 80 km * 2 -->
324 </deadband>
325 <!--Switch for coordinate convertion-->
326 <switch name="instrumentation/a-cc-sw-s-1">
327   <default value="0.0"/>
328   <test value="-5.0">
329     instrumentation/a-cc-db-s-1 eq 0
330   </test>
331   <!--      <output>instrumentation/cc-enable-1</output>-->
332 </switch>
333 <switch name="instrumentation/cc-enable-1">
334   <default value="0.0"/>
335   <test value="instrumentation/a-cc-sw-s-1">
336     instrumentation/nvu-selector eq 0
337   </test>
338 </switch>    
339 <!--Coordinate convertion for S-->
340 <summer name="instrumentation/cc-s-error-raw-1">
341   <input>instrumentation/aircraft-integrator-s-1</input>
342   <input>-instrumentation/s-next-1</input>
343 </summer>
344 <pure_gain name="instrumentation/cc-blanked-s-error-1">
345   <input>instrumentation/cc-s-error-raw-1</input>
346   <gain>instrumentation/enable-convertion</gain>
347 </pure_gain>    
348 <pure_gain name="instrumentation/cc-s-error-1">
349   <input>instrumentation/cc-blanked-s-error-1</input>
350   <gain>instrumentation/cc-enable-1</gain>
351   <output>instrumentation/cc-s-1</output>
352   <clipto>
353     <min>-40001.0</min><!--Speed of convertion set here-->
354     <max>40001.0</max>
355   </clipto>
356 </pure_gain>
357
358 <!--RSBN S Correction-->
359 <summer name="instrumentation/rsbn-s-error-raw-1">
360   <input>instrumentation/aircraft-integrator-s-1</input>
361   <input>-instrumentation/rsbn-s-distance</input>
362   <input>-instrumentation/point-integrator-s-1</input>
363 </summer>        
364 <pure_gain name="instrumentation/rsbn-s-error-1">
365   <input>instrumentation/rsbn-s-error-raw-1</input>
366   <gain>instrumentation/rsbn-cft-1</gain>
367   <output>instrumentation/corr-rsbn-s-1</output>
368   <clipto>
369     <min>-4001.0</min>
370     <max>4001.0</max>
371   </clipto>
372 </pure_gain>
373
374 <!--Aircraft Z 1 Input -->    
375 <summer name="instrumentation/inp-integr-z-1">
376   <input>instrumentation/aircraft-z-speed-1</input>
377   <input>instrumentation/corr-rsbn-z-1</input>
378   <input>instrumentation/cc-z-1</input>
379   <input>instrumentation/a-input-z-1</input>
380 </summer>    
381 <!-- Aircraft Integrator Z -->
382 <!--Distance in meters here!-->
383 <integrator name="instrumentation/a-i-z-1"> 
384   <input>instrumentation/inp-integr-z-1</input>
385   <c1>0.277778</c1>
386   <output>instrumentation/aircraft-integrator-z-1</output>
387 </integrator>
388 <!--Deadband for aircraft blanker-->
389 <deadband name="instrumentation/a-blanker-db-z-1">
390   <input>instrumentation/aircraft-integrator-z-1</input>
391   <width> 200 </width>
392 </deadband>
393 <!--Coordinate convertion for Z-->
394 <summer name="instrumentation/cc-z-error-raw-1">
395   <input>instrumentation/aircraft-integrator-z-1</input>
396   <input>-instrumentation/z-next-1</input>
397 </summer>        
398 <pure_gain name="instrumentation/cc-blanked-z-error-1">
399   <input>instrumentation/cc-z-error-raw-1</input>
400   <gain>instrumentation/enable-convertion</gain>
401 </pure_gain>    
402 <pure_gain name="instrumentation/cc-z-error-1">
403   <input>instrumentation/cc-blanked-z-error-1</input>
404   <gain>instrumentation/cc-enable-1</gain>
405   <output>instrumentation/cc-z-1</output>
406   <clipto>
407     <min>-40001.0</min>
408     <max>40001.0</max>
409   </clipto>
410 </pure_gain>
411
412 <!--RSBN Z Correction-->
413 <summer name="instrumentation/rsbn-z-error-raw-1">
414   <input>instrumentation/aircraft-integrator-z-1</input>
415   <input>-instrumentation/rsbn-z-distance</input>
416   <input>-instrumentation/point-integrator-z-1</input>
417 </summer>    
418
419 <pure_gain name="instrumentation/rsbn-z-error-1">
420   <input>instrumentation/rsbn-z-error-raw-1</input>
421   <gain>instrumentation/rsbn-cft-1</gain>
422   <output>instrumentation/corr-rsbn-z-1</output>
423   <clipto>
424     <min>-4001.0</min>
425     <max>4001.0</max>
426   </clipto>
427 </pure_gain>
428 <!--End RSBN Z Correction-->
429
430 <!-- LUR 1 -->
431 <!--    <deadband name="instrumentation/db-lur-1">
432   <input>instrumentation/aircraft-integrator-s-1</input>
433   <width> instrumentation/lur-1 </width>
434 </deadband>-->
435 <!-- ******************* END V-52[0] procedure ******************** -->
436 <!-- ****************** BEGIN V-52[1] procedure ******************* -->
437 <!--Ortodromic heading-->
438 <!--<summer name="instrumentation/ort-hdg-raw-2">-->
439 <summer name="instrumentation/ort-hdg-2">
440   <input>instrumentation/tks-heading</input>
441   <input>-instrumentation/zpu-deg-2</input>
442 <!--  <input>ap/input-drift-deg</input>-->
443 <input>instrumentation/drift-angle-deg</input>
444 </summer>
445 <!--
446 <switch name="instrumentation/ort-hdg-bias-2">
447   <default value="0.0"/>
448   <test value="360.0">
449     instrumentation/ort-hdg-raw-2 lt -180
450   </test>
451   <test value="-360.0">
452     instrumentation/ort-hdg-raw-2 gt 180
453   </test>
454 </switch>
455 <summer name="instrumentation/ort-hdg-2">
456   <input>instrumentation/ort-hdg-raw-2</input>
457   <input>instrumentation/ort-hdg-bias-2</input>
458 </summer>
459 -->
460 <!--Ortodromic heading here in ort-hdg -->
461 <!--Aircraft-->
462 <!--S-->
463 <fcs_function name="instrumentation/aircraft-s-speed-2">
464   <description>cos(ort-hdg)</description>
465   <function>
466     <product>
467       <property>instrumentation/vg-kmh</property>
468       <cos>
469         <product>
470           <property>instrumentation/ort-hdg-2</property>
471           <value>0.0174533</value><!--to rad-->
472         </product>
473       </cos>
474     </product>
475   </function>
476 </fcs_function>
477 <!--Z-->
478 <fcs_function name="instrumentation/aircraft-z-speed-2">
479   <description>sin(ort-hdg)</description>
480   <function>
481     <product>
482       <property>instrumentation/vg-kmh</property>
483       <sin>
484         <product>
485           <property>instrumentation/ort-hdg-2</property>
486           <value>0.0174533</value>
487         </product>
488       </sin>
489     </product>
490   </function>
491 </fcs_function>
492 <!--Count new coordinate (S, Z) for next ort -->
493 <fcs_function name="instrumentation/s-next-2">
494   <description>S coordinate for next ort - block 2</description>
495   <function>
496     <difference>
497       <property>instrumentation/point-integrator-s-2</property>
498       <product>
499         <pow>
500           <sum>
501             <product>
502               <property>instrumentation/aircraft-integrator-s-1</property>
503               <property>instrumentation/aircraft-integrator-s-1</property>
504             </product>
505             <product>
506               <property>instrumentation/aircraft-integrator-z-1</property>
507               <property>instrumentation/aircraft-integrator-z-1</property>
508             </product>
509           </sum>
510           <value>0.5</value>
511         </pow>
512         <cos>
513           <sum>
514             <sum> <!--Alpha-->
515               <atan2>
516                 <property>instrumentation/aircraft-integrator-z-1</property>
517                 <property>instrumentation/aircraft-integrator-s-1</property>
518               </atan2>
519               <value>3.1415926</value>
520             </sum>
521             <product><!--Beta-->
522               <difference>
523                 <property>instrumentation/zpu-deg-1</property>
524                 <property>instrumentation/zpu-deg-2</property>
525               </difference>
526               <value>0.0174533</value><!--to rad -->
527             </product>
528           </sum>
529         </cos>
530       </product>
531     </difference>
532   </function>
533 </fcs_function>
534
535 <fcs_function name="instrumentation/z-next-2">
536   <description>Z coordinate for next ort - block 2</description>
537   <function>
538     <difference>
539       <property>instrumentation/point-integrator-z-2</property>
540       <product>
541         <pow>
542           <sum>
543             <product>
544               <property>instrumentation/aircraft-integrator-s-1</property>
545               <property>instrumentation/aircraft-integrator-s-1</property>
546             </product>
547             <product>
548               <property>instrumentation/aircraft-integrator-z-1</property>
549               <property>instrumentation/aircraft-integrator-z-1</property>
550             </product>
551           </sum>
552           <value>0.5</value>
553         </pow>
554         <sin>
555           <sum>
556             <sum> <!--Alpha-->
557               <atan2>
558                 <property>instrumentation/aircraft-integrator-z-1</property>
559                 <property>instrumentation/aircraft-integrator-s-1</property>
560               </atan2>
561               <value>3.1415926</value>
562             </sum>
563             <product><!--Beta-->
564               <difference>
565                 <property>instrumentation/zpu-deg-1</property>
566                 <property>instrumentation/zpu-deg-2</property>
567               </difference>
568               <value>0.0174533</value><!--to rad-->
569             </product>
570           </sum>
571         </sin>
572       </product>
573     </difference>
574   </function>
575 </fcs_function>
576
577 <!--Input and  convertion procedures-->
578
579 <!-- Point S -->
580 <integrator name="instrumentation/p-i-s-2">
581   <input>instrumentation/p-input-s-2</input>
582   <c1>0.277778</c1>
583   <output>instrumentation/point-integrator-s-2</output>
584 </integrator>
585
586 <!--Deadband for point blanker-->
587 <deadband name="instrumentation/p-blanker-db-s-2">
588   <input>instrumentation/point-integrator-s-2</input>
589   <width> 200 </width>
590 </deadband>    
591
592 <!-- Point Z -->
593 <integrator name="instrumentation/p-i-z-2">
594   <input>instrumentation/p-input-z-2</input>
595   <c1>0.277778</c1>
596   <output>instrumentation/point-integrator-z-2</output>
597 </integrator>
598
599 <!--Deadband for point blanker-->
600 <deadband name="instrumentation/p-blanker-db-z-2">
601   <input>instrumentation/point-integrator-z-2</input>
602   <width> 200 </width>
603 </deadband>
604
605 <switch name="instrumentation/a-s-switched-speed-2">
606   <default value="0.0"/>
607   <test value="instrumentation/aircraft-s-speed-2">
608     instrumentation/nvu-selector eq 0
609   </test>
610 </switch>
611
612 <!--Aircraft S 2 Input -->    
613 <summer name="instrumentation/inp-integr-s-2">
614   <input>instrumentation/a-s-switched-speed-2</input>
615   <input>instrumentation/corr-rsbn-s-2</input>
616   <input>instrumentation/cc-s-2</input>
617   <input>instrumentation/a-input-s-2</input>
618 </summer>    
619 <!--Integrator S -->
620 <!--Distance in meters here!-->
621 <integrator name="instrumentation/a-i-s-2"> 
622   <input>instrumentation/inp-integr-s-2</input>
623   <c1>0.277778</c1>
624   <output>instrumentation/aircraft-integrator-s-2</output>
625 </integrator>
626 <!--Deadband for aircraft blanker-->
627 <deadband name="instrumentation/a-blanker-db-s-2">
628   <input>instrumentation/aircraft-integrator-s-2</input>
629   <width> 200 </width>
630 </deadband>
631 <!--Deadband for coordinate convertion - input from 1-st block! -->
632 <deadband name="instrumentation/a-cc-db-s-2">
633   <input>instrumentation/aircraft-integrator-s-1</input>
634   <width> 160000 </width> <!-- 80 km * 2 -->
635 </deadband>
636 <!--Switch for coordinate convertion-->
637 <switch name="instrumentation/a-cc-sw-s-2">
638   <default value="0.0"/>
639   <test value="-5.0">
640     instrumentation/a-cc-db-s-2 eq 0
641   </test>
642   <!--<output>instrumentation/cc-enable-2</output>-->
643 </switch>
644 <switch name="instrumentation/cc-enable-2">
645   <default value="0.0"/>
646   <test value="instrumentation/a-cc-sw-s-2">
647     instrumentation/nvu-selector eq 1
648   </test>
649 </switch>
650 <!--Coordinate convertion for S-->
651 <summer name="instrumentation/cc-s-error-raw-2">
652   <input>instrumentation/aircraft-integrator-s-2</input>
653   <input>-instrumentation/s-next-2</input>
654 </summer>
655 <pure_gain name="instrumentation/cc-blanked-s-error-2">
656   <input>instrumentation/cc-s-error-raw-2</input>
657   <gain>instrumentation/enable-convertion</gain>
658 </pure_gain>    
659 <pure_gain name="instrumentation/cc-s-error-2">
660   <input>instrumentation/cc-blanked-s-error-2</input>
661   <gain>instrumentation/cc-enable-2</gain>
662   <output>instrumentation/cc-s-2</output>
663   <clipto>
664     <min>-40001.0</min>
665     <max>40001.0</max>
666   </clipto>
667 </pure_gain>
668
669 <!--RSBN S Correction-->
670 <summer name="instrumentation/rsbn-s-error-raw-2">
671   <input>instrumentation/aircraft-integrator-s-2</input>
672   <input>-instrumentation/rsbn-s-distance</input>
673   <input>-instrumentation/point-integrator-s-2</input>
674 </summer>        
675 <pure_gain name="instrumentation/rsbn-s-error-2">
676   <input>instrumentation/rsbn-s-error-raw-2</input>
677   <gain>instrumentation/rsbn-cft-2</gain>
678   <output>instrumentation/corr-rsbn-s-2</output>
679   <clipto>
680     <min>-4001.0</min>
681     <max>4001.0</max>
682   </clipto>
683 </pure_gain>
684
685 <switch name="instrumentation/a-z-switched-speed-2">
686   <default value="0.0"/>
687   <test value="instrumentation/aircraft-z-speed-2">
688     instrumentation/nvu-selector eq 0
689   </test>
690 </switch>
691
692 <!--Aircraft Z 2 Input -->    
693 <summer name="instrumentation/inp-integr-z-2">
694   <input>instrumentation/a-z-switched-speed-2</input>
695   <input>instrumentation/corr-rsbn-z-2</input>
696   <input>instrumentation/cc-z-2</input>
697   <input>instrumentation/a-input-z-2</input>
698 </summer>    
699 <!--Integrator Z -->
700 <!--Distance in meters here!-->
701 <integrator name="instrumentation/a-i-z-2"> 
702   <input>instrumentation/inp-integr-z-2</input>
703   <c1>0.277778</c1>
704   <output>instrumentation/aircraft-integrator-z-2</output>
705 </integrator>
706 <!--Deadband for aircraft blanker-->
707 <deadband name="instrumentation/a-blanker-db-z-2">
708   <input>instrumentation/aircraft-integrator-z-2</input>
709   <width> 200 </width>
710 </deadband>
711 <!--Coordinate convertion for Z-->
712 <summer name="instrumentation/cc-z-error-raw-2">
713   <input>instrumentation/aircraft-integrator-z-2</input>
714   <input>-instrumentation/z-next-2</input>
715 </summer>
716 <pure_gain name="instrumentation/cc-blanked-z-error-2">
717   <input>instrumentation/cc-z-error-raw-2</input>
718   <gain>instrumentation/enable-convertion</gain>
719 </pure_gain>    
720 <pure_gain name="instrumentation/cc-z-error-2">
721   <input>instrumentation/cc-blanked-z-error-2</input>
722   <gain>instrumentation/cc-enable-2</gain>
723   <output>instrumentation/cc-z-2</output>
724   <clipto>
725     <min>-40001.0</min>
726     <max>40001.0</max>
727   </clipto>
728 </pure_gain>
729
730 <!--RSBN Z Correction-->
731 <summer name="instrumentation/rsbn-z-error-raw-2">
732   <input>instrumentation/aircraft-integrator-z-2</input>
733   <input>-instrumentation/rsbn-z-distance</input>
734   <input>-instrumentation/point-integrator-z-2</input>
735 </summer>    
736
737 <pure_gain name="instrumentation/rsbn-z-error-2">
738   <input>instrumentation/rsbn-z-error-raw-2</input>
739   <gain>instrumentation/rsbn-cft-2</gain>
740   <output>instrumentation/corr-rsbn-z-2</output>
741   <clipto>
742     <min>-4001.0</min>
743     <max>4001.0</max>
744   </clipto>
745 </pure_gain>
746 <!--End RSBN Z Correction-->
747
748 <!-- ******************* END V-52[1] procedure ********************** -->
749
750 <!--                  NVU OUTPUT      -->
751 <switch name="instrumentation/nvu-out-z">
752   <default value="instrumentation/aircraft-integrator-z-2"/>
753   <test value="instrumentation/aircraft-integrator-z-1">
754     instrumentation/nvu-selector eq 1
755   </test>
756   <output>ap/input-z</output>
757 </switch>    
758
759 <switch name="instrumentation/nvu-out-hdg">
760   <default value="instrumentation/zpu-deg-2"/>
761   <test value="instrumentation/zpu-deg-1">
762     instrumentation/nvu-selector eq 1
763   </test>
764   <output>ap/input-heading-nvu</output>
765 </switch>    
766
767 <!--************************* END NVU staff **************************-->
768 </channel>
769 </system>