Debian Codegraph @

Aircraft/Instruments-3d/FG1000/GFC700.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <!-- GFC 700 Autopilot Configuration -->
3 <!-- Each component is evaluated in the order specified. You can make up -->
4 <!-- property names to pass the result of one component on to a subsequent -->
5 <!-- component. -->
6
7 <PropertyList>
8
9 <state-machine include="GFC700-vertical-FSM.xml"/>
10 <state-machine include="GFC700-lateral-FSM.xml"/>
11 <state-machine include="GFC700-AP-off-FSM.xml"/>
12
13 <filter>
14 <name>heading bug error computer/normalizer</name>
15 <debug>false</debug>
16 <type>gain</type>
17 <input>
18 <property>/autopilot/settings/heading-bug-deg</property>
19 <offset>
20 <property>/orientation/heading-magnetic-deg</property>
21 <scale>-1.0</scale>
22 </offset>
23 </input>
24 <output>/autopilot/internal/heading-bug-error-deg</output>
25 <output>/autopilot/internal/fdm-heading-bug-error-deg</output>
26 <period>
27 <min>-180</min>
28 <max>180</max>
29 </period>
30 <gain>1.0</gain>
31 </filter>
32
33 <filter>
34 <name>true heading error computer/normalizer</name>
35 <debug>false</debug>
36 <type>gain</type>
37 <input>
38 <property>/autopilot/settings/true-heading-deg</property>
39 <offset>
40 <property>/orientation/heading-deg</property>
41 <scale>-1.0</scale>
42 </offset>
43 </input>
44 <output>/autopilot/internal/true-heading-error-deg</output>
45 <period>
46 <min>-180</min>
47 <max>180</max>
48 </period>
49 <gain>1.0</gain>
50 </filter>
51
52 <filter>
53 <name>nav1 heading error computer/normalizer</name>
54 <debug>false</debug>
55 <type>gain</type>
56 <input>
57 <property>/instrumentation/nav[0]/radials/target-auto-hdg-deg</property>
58 <offset>
59 <property>/orientation/heading-deg</property>
60 <scale>-1.0</scale>
61 </offset>
62 </input>
63 <output>/autopilot/internal/nav1-heading-error-deg</output>
64 <period>
65 <min>-180</min>
66 <max>180</max>
67 </period>
68 <gain>1.0</gain>
69 </filter>
70
71 <filter>
72 <name>nav1 selected course error computer/normalizer</name>
73 <debug>false</debug>
74 <type>gain</type>
75 <input>
76 <property>/instrumentation/nav[0]/radials/selected-deg</property>
77 <offset>
78 <property>/orientation/heading-magnetic-deg</property>
79 <scale>-1.0</scale>
80 </offset>
81 </input>
82 <output>/autopilot/internal/nav1-course-error</output>
83 <period>
84 <min>-180</min>
85 <max>180</max>
86 </period>
87 <gain>1.0</gain>
88 </filter>
89
90 <filter>
91 <name>nav2 heading error computer/normalizer</name>
92 <debug>false</debug>
93 <type>gain</type>
94 <input>
95 <property>/instrumentation/nav[1]/radials/target-auto-hdg-deg</property>
96 <offset>
97 <property>/orientation/heading-deg</property>
98 <scale>-1.0</scale>
99 </offset>
100 </input>
101 <output>/autopilot/internal/nav2-heading-error-deg</output>
102 <period>
103 <min>-180</min>
104 <max>180</max>
105 </period>
106 <gain>1.0</gain>
107 </filter>
108
109 <filter>
110 <name>nav2 selected course error computer/normalizer</name>
111 <debug>false</debug>
112 <type>gain</type>
113 <input>
114 <property>/instrumentation/nav[1]/radials/selected-deg</property>
115 <offset>
116 <property>/orientation/heading-magnetic-deg</property>
117 <scale>-1.0</scale>
118 </offset>
119 </input>
120 <output>/autopilot/internal/nav2-course-error</output>
121 <period>
122 <min>-180</min>
123 <max>180</max>
124 </period>
125 <gain>1.0</gain>
126 </filter>
127
128 <filter>
129 <name>vertical speed fpm computer</name>
130 <debug>false</debug>
131 <type>gain</type>
132 <input>/velocities/vertical-speed-fps</input>
133 <output>/autopilot/internal/vert-speed-fpm</output>
134 <gain>60.0</gain>
135 </filter>
136
137 <predict-simple>
138 <name>speed in 5 seconds predictor</name>
139 <debug>false</debug>
140 <input>/velocities/airspeed-kt</input>
141 <output>/autopilot/internal/lookahead-5-sec-airspeed-kt</output>
142 <seconds>5.0</seconds>
143 <filter-gain>0.0</filter-gain>
144 </predict-simple>
145
146 <predict-simple>
147 <name>speed in 10 seconds predictor</name>
148 <debug>false</debug>
149 <input>/velocities/airspeed-kt</input>
150 <output>/autopilot/internal/lookahead-10-sec-airspeed-kt</output>
151 <seconds>10.0</seconds>
152 <filter-gain>0.0</filter-gain>
153 </predict-simple>
154
155 <filter>
156 <name>static port pressure rate computer</name>
157 <debug>false</debug>
158 <type>derivative</type>
159 <input>/systems/static[0]/pressure-inhg</input>
160 <output>/autopilot/internal/pressure-rate</output>
161 <filter-time>1.0</filter-time>
162 </filter>
163
164 <filter>
165 <name>nav1 track error computer</name>
166 <debug>false</debug>
167 <type>gain</type>
168 <input>
169 <property>/instrumentation/nav[0]/radials/target-auto-hdg-deg</property>
170 <offset>
171 <property>orientation/track-deg</property>
172 <scale>-1.0</scale>
173 </offset>
174 </input>
175 <output>/autopilot/internal/nav1-track-error-deg</output>
176 <period>
177 <min>-180</min>
178 <max>180</max>
179 </period>
180 <gain>1.0</gain>
181 </filter>
182
183 <filter>
184 <name>limited-pitch</name>
185 <debug>false</debug>
186 <type>gain</type>
187 <input>
188 <property>/instrumentation/attitude-indicator/indicated-pitch-deg</property>
189 </input>
190 <gain>1.0</gain>
191 <output>/autopilot/internal/filtered-pitch-deg</output>
192 <min>-15.0</min>
193 <max>20.0</max>
194 </filter>
195
196 <filter>
197 <name>limited-roll</name>
198 <debug>false</debug>
199 <type>gain</type>
200 <input>
201 <property>/instrumentation/attitude-indicator/indicated-roll-deg</property>
202 </input>
203 <gain>1.0</gain>
204 <output>/autopilot/internal/filtered-roll-deg</output>
205 <min>-22.0</min>
206 <max>22.0</max>
207 </filter>
208
209 <filter>
210 <name>limited-airspeed</name>
211 <debug>false</debug>
212 <type>gain</type>
213 <input>
214 <property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
215 </input>
216 <gain>1.0</gain>
217 <output>/autopilot/internal/filtered-airspeed</output>
218 <min>80.0</min>
219 <max>140.0</max>
220 </filter>
221
222 <filter>
223 <name>ALTS-delta</name>
224 <debug>false</debug>
225 <type>gain</type>
226 <input>
227 <property>/autopilot/settings/target-alt-ft</property>
228 <offset>
229 <property>/instrumentation/altimeter/indicated-altitude-ft</property>
230 <scale>-1.0</scale>
231 </offset>
232 </input>
233 <gain>1.0</gain>
234 <output>/autopilot/internal/ALTS-target-altitude-delta-ft</output>
235 </filter>
236
237 <!-- Logic filters to show autopilot and Flight Director status -->
238 <logic>
239 <input>
240 <and>
241 <equals><property>/autopilot/locks/passive-mode</property><value>0</value></equals>
242 <or>
243 <not><equals><property>/autopilot/locks/heading</property><value></value></equals></not>
244 <not><equals><property>/autopilot/locks/altitude</property><value></value></equals></not>
245 </or>
246 </and>
247 </input>
248 <output>/autopilot/annunciator/autopilot-enabled</output>
249 </logic>
250
251 <logic>
252 <input>
253 <and>
254 <equals><property>/autopilot/locks/passive-mode</property><value>1</value></equals>
255 <or>
256 <not><equals><property>/autopilot/locks/heading</property><value></value></equals></not>
257 <not><equals><property>/autopilot/locks/altitude</property><value></value></equals></not>
258 </or>
259 </and>
260 </input>
261 <output>/autopilot/annunciator/flight-director-enabled</output>
262 </logic>
263
264 <!-- Logic filter to indicate if we can transtion to GPS/LOC/VOR mode -->
265 <logic>
266 <input>
267 <or>
268 <and>
269 <equals>
270 <property>/autopilot/settings/nav-mode-source</property>
271 <value>NAV1</value>
272 </equals>
273 <less-than>
274 <property>/instrumentation/nav[0]/heading-needle-deflection</property>
275 <value>4.0</value>
276 </less-than>
277 <greater-than>
278 <property>/instrumentation/nav[0]/heading-needle-deflection</property>
279 <value>-4.0</value>
280 </greater-than>
281 </and>
282 <and>
283 <equals>
284 <property>/autopilot/settings/nav-mode-source</property>
285 <value>NAV2</value>
286 </equals>
287 <less-than>
288 <property>/instrumentation/nav[1]/heading-needle-deflection</property>
289 <value>4.0</value>
290 </less-than>
291 <greater-than>
292 <property>/instrumentation/nav[1]/heading-needle-deflection</property>
293 <value>-4.0</value>
294 </greater-than>
295 </and>
296 <and>
297 <equals>
298 <property>/autopilot/settings/nav-mode-source</property>
299 <value>GPS</value>
300 </equals>
301 <less-than>
302 <property>/instrumentation/gps/wp/wp[1]/course-error-nm</property>
303 <value>0.5</value>
304 </less-than>
305 <greater-than>
306 <property>/instrumentation/gps/wp/wp[1]/course-error-nm</property>
307 <value>-0.5</value>
308 </greater-than>
309 </and>
310 </or>
311 </input>
312 <output>/autopilot/internal/nav-capture</output>
313 </logic>
314
315
316 <!-- =============================================================== -->
317 <!-- Roll Axis Modes -->
318 <!-- =============================================================== -->
319
320
321 <!-- Heading Bug Hold. 2 stage cascade controller. -->
322
323 <!-- Stage #1 sets target roll based on diff between current heading -->
324 <!-- and heading bug. -->
325 <pid-controller>
326 <name>Heading Bug Hold (DG based) Stage 1</name>
327 <debug>false</debug>
328 <enable>
329 <prop>/autopilot/locks/heading</prop>
330 <value>dg-heading-hold</value>
331 </enable>
332 <input>
333 <prop>/autopilot/internal/heading-bug-error-deg</prop>
334 </input>
335 <reference>
336 <value>0.0</value>
337 </reference>
338 <output>
339 <prop>/autopilot/settings/target-roll-deg</prop>
340 </output>
341 <config>
342 <Kp>-1.0</Kp> <!-- proportional gain -->
343 <beta>1.0</beta> <!-- input value weighing factor -->
344 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
345 <gamma>0.0</gamma> <!-- input value weighing factor for -->
346 <!-- unfiltered derivative error -->
347 <Ti>10.0</Ti> <!-- integrator time -->
348 <Td>0.00001</Td> <!-- derivator time -->
349 <u_min>-20.0</u_min> <!-- minimum output clamp -->
350 <u_max>20.0</u_max> <!-- maximum output clamp -->
351 </config>
352 </pid-controller>
353
354 <!-- True Heading hold. 2 stage cascade controller. -->
355
356 <!-- Stage #1 sets target roll based on diff between current heading -->
357 <!-- and target heading. -->
358 <pid-controller>
359 <name>True Heading Hold (DG based) Stage 1</name>
360 <debug>false</debug>
361 <enable>
362 <prop>/autopilot/locks/heading</prop>
363 <value>true-heading-hold</value>
364 </enable>
365 <input>
366 <prop>/autopilot/internal/true-heading-error-deg</prop>
367 </input>
368 <reference>
369 <value>0.0</value>
370 </reference>
371 <output>
372 <prop>/autopilot/settings/target-roll-deg</prop>
373 </output>
374 <config>
375 <Kp>-1.0</Kp> <!-- proportional gain -->
376 <beta>1.0</beta> <!-- input value weighing factor -->
377 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
378 <gamma>0.0</gamma> <!-- input value weighing factor for -->
379 <!-- unfiltered derivative error -->
380 <Ti>10.0</Ti> <!-- integrator time -->
381 <Td>0.00001</Td> <!-- derivator time -->
382 <u_min>-20.0</u_min> <!-- minimum output clamp -->
383 <u_max>20.0</u_max> <!-- maximum output clamp -->
384 </config>
385 </pid-controller>
386
387 <!-- Nav1 hold. 2 stage cascade controller. -->
388
389 <!-- Stage #1 sets target roll based on diff between current heading -->
390 <!-- and target heading. -->
391 <pid-controller>
392 <name>Nav1/GPS Hold Stage 1</name>
393 <debug>false</debug>
394 <enable>
395 <condition>
396 <and>
397 <equals>
398 <property>/autopilot/locks/heading</property>
399 <value>nav-hold</value>
400 </equals>
401 <or>
402 <equals>
403 <property>/autopilot/settings/nav-mode-source</property>
404 <value>NAV1</value>
405 </equals>
406 <equals>
407 <!-- GPS is also slaved to NAV1 -->
408 <property>/autopilot/settings/nav-mode-source</property>
409 <value>GPS</value>
410 </equals>
411 </or>
412 </and>
413 </condition>
414 </enable>
415 <input>
416 <prop>/autopilot/internal/nav1-heading-error-deg</prop>
417 </input>
418 <reference>
419 <value>0.0</value>
420 </reference>
421 <output>
422 <prop>/autopilot/settings/target-roll-deg</prop>
423 </output>
424 <config>
425 <Kp>-1.0</Kp> <!-- proportional gain -->
426 <beta>1.0</beta> <!-- input value weighing factor -->
427 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
428 <gamma>0.0</gamma> <!-- input value weighing factor for -->
429 <!-- unfiltered derivative error -->
430 <Ti>10.0</Ti> <!-- integrator time -->
431 <Td>0.00001</Td> <!-- derivator time -->
432 <u_min>-20.0</u_min> <!-- minimum output clamp -->
433 <u_max>20.0</u_max> <!-- maximum output clamp -->
434 </config>
435 </pid-controller>
436
437 <pid-controller>
438 <name>Nav2 Hold Stage 1</name>
439 <debug>false</debug>
440 <enable>
441 <condition>
442 <and>
443 <equals>
444 <property>/autopilot/locks/heading</property>
445 <value>nav-hold</value>
446 </equals>
447 <equals>
448 <property>/autopilot/settings/nav-mode-source</property>
449 <value>NAV2</value>
450 </equals>
451 </and>
452 </condition>
453 </enable>
454 <input>
455 <prop>/autopilot/internal/nav2-heading-error-deg</prop>
456 </input>
457 <reference>
458 <value>0.0</value>
459 </reference>
460 <output>
461 <prop>/autopilot/settings/target-roll-deg</prop>
462 </output>
463 <config>
464 <Kp>-1.0</Kp> <!-- proportional gain -->
465 <beta>1.0</beta> <!-- input value weighing factor -->
466 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
467 <gamma>0.0</gamma> <!-- input value weighing factor for -->
468 <!-- unfiltered derivative error -->
469 <Ti>10.0</Ti> <!-- integrator time -->
470 <Td>0.00001</Td> <!-- derivator time -->
471 <u_min>-20.0</u_min> <!-- minimum output clamp -->
472 <u_max>20.0</u_max> <!-- maximum output clamp -->
473 </config>
474 </pid-controller>
475
476
477 <!-- Aileron control, used by all lateral modes ROL/NAV/HDG -->
478 <pid-controller>
479 <name>Roll Hold</name>
480 <debug>false</debug>
481 <enable>
482 <condition>
483 <and>
484 <or>
485 <equals>
486 <property>/autopilot/locks/heading</property>
487 <value>roll-hold</value>
488 </equals>
489 <equals>
490 <property>/autopilot/locks/heading</property>
491 <value>dg-heading-hold</value>
492 </equals>
493 <equals>
494 <property>/autopilot/locks/heading</property>
495 <value>nav-hold</value>
496 </equals>
497 </or>
498 <equals>
499 <property>/autopilot/locks/passive-mode</property>
500 <value>0</value>
501 </equals>
502 <not>
503 <equals>
504 <property>/autopilot/locks/control-wheel-steering</property>
505 <value>1</value>
506 </equals>
507 </not>
508 </and>
509 </condition>
510 </enable>
511 <input>
512 <prop>/orientation/roll-deg</prop>
513 </input>
514 <reference>
515 <prop>/autopilot/settings/target-roll-deg</prop>
516 </reference>
517 <output>
518 <prop>/controls/flight/aileron</prop>
519 </output>
520 <config>
521 <Kp>0.1</Kp> <!-- proportional gain -->
522 <beta>1.0</beta> <!-- input value weighing factor -->
523 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
524 <gamma>0.0</gamma> <!-- input value weighing factor for -->
525 <!-- unfiltered derivative error -->
526 <Ti>10.0</Ti> <!-- integrator time -->
527 <Td>0.00001</Td> <!-- derivator time -->
528 <u_min>-1.0</u_min> <!-- minimum output clamp -->
529 <u_max>1.0</u_max> <!-- maximum output clamp -->
530 </config>
531 </pid-controller>
532
533
534
535 <!-- =============================================================== -->
536 <!-- Pitch Axis Modes -->
537 <!-- =============================================================== -->
538
539
540 <!-- Altitude hold. 2 stage cascade controller. -->
541
542 <!-- Stage #1 sets target rate of climb based on diff between current alt -->
543 <!-- and target altitude. -->
544 <pi-simple-controller>
545 <name>Altitude Hold (Altimeter based) Stage 1</name>
546 <debug>false</debug>
547 <enable>
548 <condition>
549 <equals>
550 <property>/autopilot/locks/altitude</property>
551 <value>altitude-hold</value>
552 </equals>
553 </condition>
554 </enable>
555 <input>
556 <prop>/instrumentation/altimeter/indicated-altitude-ft</prop>
557 </input>
558 <reference>
559 <prop>/autopilot/settings/target-altitude-ft</prop>
560 </reference>
561 <output>
562 <prop>/autopilot/internal/target-climb-rate-fps</prop>
563 </output>
564 <config>
565 <Kp>0.3</Kp> <!-- proportional gain -->
566 <Ki>0.0</Ki> <!-- integral gain -->
567 <u_min>-16.67</u_min> <!-- minimum output clamp -->
568 <u_max>8.33</u_max> <!-- maximum output clamp -->
569 </config>
570 </pi-simple-controller>
571
572 <!-- Altitude hold2. 2 stage cascade controller. -->
573
574 <!-- Stage #1 sets target rate of climb based on diff between current alt -->
575 <!-- and target altitude. -->
576 <pi-simple-controller>
577 <name>Altitude Hold (Altimeter based) Stage 1</name>
578 <debug>false</debug>
579 <enable>
580 <condition>
581 <equals>
582 <property>/autopilot/locks/altitude</property>
583 <value>altitude-hold2</value>
584 </equals>
585 </condition>
586 </enable>
587 <input>
588 <prop>/instrumentation/altimeter/indicated-altitude-ft</prop>
589 </input>
590 <reference>
591 <prop>/autopilot/settings/target-altitude-ft-2</prop>
592 </reference>
593 <output>
594 <prop>/autopilot/internal/target-climb-rate-fps</prop>
595 </output>
596 <config>
597 <Kp>0.3</Kp> <!-- proportional gain -->
598 <Ki>0.0</Ki> <!-- integral gain -->
599 <u_min>-16.67</u_min> <!-- minimum output clamp -->
600 <u_max>8.33</u_max> <!-- maximum output clamp -->
601 </config>
602 </pi-simple-controller>
603
604 <!-- Glideslope hold. -->
605
606 <pid-controller>
607 <name>NAV1/GPS Glideslope Hold</name>
608 <debug>false</debug>
609 <enable>
610 <condition>
611 <and>
612 <equals>
613 <property>/autopilot/locks/altitude</property>
614 <value>gs-hold</value>
615 </equals>
616 <or>
617 <equals>
618 <property>/autopilot/settings/nav-mode-source</property>
619 <value>GPS</value>
620 </equals>
621 <equals>
622 <property>/autopilot/settings/nav-mode-source</property>
623 <value>NAV1</value>
624 </equals>
625 </or>
626 </and>
627 </condition>
628 </enable>
629 <input>
630 <prop>/velocities/vertical-speed-fps</prop>
631 </input>
632 <reference>
633 <prop>/instrumentation/nav[0]/gs-rate-of-climb</prop>
634 </reference>
635 <output>
636 <prop>/autopilot/settings/target-pitch-deg</prop>
637 </output>
638 <config>
639 <Kp>0.1</Kp> <!-- proportional gain -->
640 <beta>1.0</beta> <!-- input value weighing factor -->
641 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
642 <gamma>0.0</gamma> <!-- input value weighing factor for -->
643 <!-- unfiltered derivative error -->
644 <Ti>1.0</Ti> <!-- integrator time -->
645 <Td>0.00001</Td> <!-- derivator time -->
646 <u_min>-15.0</u_min><!-- minimum output clamp -->
647 <u_max>15.0</u_max> <!-- maximum output clamp -->
648 </config>
649 </pid-controller>
650
651 <pid-controller>
652 <name>NAV1/GPS Glideslope Hold</name>
653 <debug>false</debug>
654 <enable>
655 <condition>
656 <and>
657 <equals>
658 <property>/autopilot/locks/altitude</property>
659 <value>gs-hold</value>
660 </equals>
661 <equals>
662 <property>/autopilot/settings/nav-mode-source</property>
663 <value>NAV2</value>
664 </equals>
665 </and>
666 </condition>
667 </enable>
668 <input>
669 <prop>/velocities/vertical-speed-fps</prop>
670 </input>
671 <reference>
672 <prop>/instrumentation/nav[1]/gs-rate-of-climb</prop>
673 </reference>
674 <output>
675 <prop>/autopilot/settings/target-pitch-deg</prop>
676 </output>
677 <config>
678 <Kp>0.1</Kp> <!-- proportional gain -->
679 <beta>1.0</beta> <!-- input value weighing factor -->
680 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
681 <gamma>0.0</gamma> <!-- input value weighing factor for -->
682 <!-- unfiltered derivative error -->
683 <Ti>1.0</Ti> <!-- integrator time -->
684 <Td>0.00001</Td> <!-- derivator time -->
685 <u_min>-15.0</u_min><!-- minimum output clamp -->
686 <u_max>15.0</u_max> <!-- maximum output clamp -->
687 </config>
688 </pid-controller>
689
690 <!-- vertical speed hold VS mode -->
691 <pid-controller>
692 <name>Vertical Speed Hold</name>
693 <debug>false</debug>
694 <enable>
695 <condition>
696 <equals>
697 <property>/autopilot/locks/altitude</property>
698 <value>vertical-speed-hold</value>
699 </equals>
700 </condition>
701 </enable>
702 <input>
703 <prop>/velocities/vertical-speed-fps</prop>
704 </input>
705 <reference>
706 <prop>/autopilot/settings/vertical-speed-fpm</prop>
707 <scale>0.01667</scale>
708 </reference>
709 <output>
710 <prop>/autopilot/settings/target-pitch-deg</prop>
711 </output>
712 <config>
713 <Kp>0.1</Kp> <!-- proportional gain -->
714 <beta>1.0</beta> <!-- input value weighing factor -->
715 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
716 <gamma>0.0</gamma> <!-- input value weighing factor for -->
717 <!-- unfiltered derivative error -->
718 <Ti>1.0</Ti> <!-- integrator time -->
719 <Td>0.00001</Td> <!-- derivator time -->
720 <u_min>-15.0</u_min><!-- minimum output clamp -->
721 <u_max>15.0</u_max> <!-- maximum output clamp -->
722 </config>
723 </pid-controller>
724
725 <!-- Common vertical speed controller for ALT/APR/VNV modes mode -->
726 <pid-controller>
727 <name>Altitude Hold (Altimeter based) Stage 2</name>
728 <debug>false</debug>
729 <enable>
730 <condition>
731 <and>
732 <not>
733 <equals>
734 <property>/autopilot/locks/control-wheel-steering</property>
735 <value>1</value>
736 </equals>
737 </not>
738 <or>
739 <equals>
740 <property>/autopilot/locks/altitude</property>
741 <value>altitude-hold</value>
742 </equals>
743 <equals>
744 <property>/autopilot/locks/altitude</property>
745 <value>altitude-hold2</value>
746 </equals>
747 </or>
748 </and>
749 </condition>
750 </enable>
751 <input>
752 <prop>/velocities/vertical-speed-fps</prop>
753 </input>
754 <reference>
755 <prop>/autopilot/internal/target-climb-rate-fps</prop>
756 </reference>
757 <output>
758 <prop>/autopilot/settings/target-pitch-deg</prop>
759 </output>
760 <config>
761 <Kp>0.1</Kp> <!-- proportional gain -->
762 <beta>1.0</beta> <!-- input value weighing factor -->
763 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
764 <gamma>0.0</gamma> <!-- input value weighing factor for -->
765 <!-- unfiltered derivative error -->
766 <Ti>1.0</Ti> <!-- integrator time -->
767 <Td>0.00001</Td> <!-- derivator time -->
768 <u_min>-15.0</u_min><!-- minimum output clamp -->
769 <u_max>15.0</u_max> <!-- maximum output clamp -->
770 </config>
771 </pid-controller>
772
773
774 <!-- =============================================================== -->
775 <!-- Velocity Modes -->
776 <!-- =============================================================== -->
777
778 <!-- FLC mode - Hold speed by varying pitch trim (Two stage cascading controller) -->
779 <pid-controller>
780 <name>Speed hold (vary pitch trim) Stage #1</name>
781 <debug>false</debug>
782 <enable>
783 <condition>
784 <equals>
785 <property>/autopilot/locks/speed</property>
786 <value>speed-with-pitch-trim</value>
787 </equals>
788 </condition>
789 </enable>
790 <input>
791 <prop>/autopilot/internal/lookahead-5-sec-airspeed-kt</prop>
792 </input>
793 <reference>
794 <prop>/autopilot/settings/target-speed-kt</prop>
795 </reference>
796 <output>
797 <prop>/autopilot/settings/target-pitch-deg</prop>
798 </output>
799 <config>
800 <Kp>-1.0</Kp> <!-- proportional gain -->
801 <beta>1.0</beta> <!-- input value weighing factor -->
802 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
803 <gamma>0.0</gamma> <!-- input value weighing factor for -->
804 <!-- unfiltered derivative error -->
805 <Ti>1.0</Ti> <!-- integrator time -->
806 <Td>0.00001</Td> <!-- derivator time -->
807 <u_min>-15.0</u_min><!-- minimum output clamp -->
808 <u_max>15.0</u_max> <!-- maximum output clamp -->
809 </config>
810 </pid-controller>
811
812 <!-- Simple pitch hold for PIT and FLC modes. -->
813 <pid-controller>
814 <name>Pitch hold</name>
815 <debug>false</debug>
816 <enable>
817 <condition>
818 <and>
819 <equals>
820 <property>/autopilot/locks/passive-mode</property>
821 <value>0</value>
822 </equals>
823 <not>
824 <equals>
825 <property>/autopilot/locks/control-wheel-steering</property>
826 <value>1</value>
827 </equals>
828 </not>
829 <or>
830 <not>
831 <equals>
832 <property>/autopilot/locks/altitude</property>
833 <value></value>
834 </equals>
835 </not>
836 <not>
837 <equals>
838 <property>/autopilot/locks/speed</property>
839 <value></value>
840 </equals>
841 </not>
842 </or>
843 </and>
844 </condition>
845 </enable>
846 <input>
847 <prop>/orientation/pitch-deg</prop>
848 </input>
849 <reference>
850 <prop>/autopilot/settings/target-pitch-deg</prop>
851 </reference>
852 <output>
853 <prop>/controls/flight/elevator-trim</prop>
854 </output>
855 <config>
856 <Kp>-0.05</Kp> <!-- proportional gain -->
857 <beta>1.0</beta> <!-- input value weighing factor -->
858 <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
859 <gamma>0.0</gamma> <!-- input value weighing factor for -->
860 <!-- unfiltered derivative error -->
861 <Ti>1.0</Ti> <!-- integrator time -->
862 <Td>0.00001</Td> <!-- derivator time -->
863 <u_min>-1.0</u_min> <!-- minimum output clamp -->
864 <u_max>1.0</u_max> <!-- maximum output clamp -->
865 </config>
866 </pid-controller>
867
868 </PropertyList>