2005-02-19 10:51:46 +00:00
|
|
|
<?xml version="1.0"?>
|
2015-07-24 17:37:16 +00:00
|
|
|
|
2005-02-19 10:51:46 +00:00
|
|
|
<!-- KAP 140 Autopilot Configuration -->
|
|
|
|
<!-- Each component is evaluated in the order specified. You can make up -->
|
|
|
|
<!-- property names to pass the result of one component on to a subsequent -->
|
|
|
|
<!-- component. -->
|
2011-04-17 12:57:13 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<PropertyList>
|
2011-04-17 12:57:13 +00:00
|
|
|
|
2021-09-14 18:34:27 +00:00
|
|
|
<filter>
|
|
|
|
<name>heading bug backcourse</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<type>gain</type>
|
|
|
|
<input>
|
|
|
|
<condition>
|
|
|
|
<less-than>
|
|
|
|
<property>autopilot/settings/heading-bug-deg</property>
|
|
|
|
<value>180</value>
|
|
|
|
</less-than>
|
|
|
|
</condition>
|
|
|
|
<expression>
|
|
|
|
<sum>
|
|
|
|
<property>autopilot/settings/heading-bug-deg</property>
|
|
|
|
<value>180</value>
|
|
|
|
</sum>
|
|
|
|
</expression>
|
|
|
|
</input>
|
|
|
|
<input>
|
|
|
|
<expression>
|
|
|
|
<sum>
|
|
|
|
<value>-180</value>
|
|
|
|
<property>autopilot/settings/heading-bug-deg</property>
|
|
|
|
</sum>
|
|
|
|
</expression>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>autopilot/settings/heading-bug-deg-backcourse</property>
|
|
|
|
</output>
|
|
|
|
</filter>
|
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<filter>
|
|
|
|
<name>heading bug error computer/normalizer</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<type>gain</type>
|
2021-09-14 18:34:27 +00:00
|
|
|
|
|
|
|
<!-- REV mode -->
|
|
|
|
<input>
|
|
|
|
<condition>
|
|
|
|
<equals>
|
|
|
|
<property>/autopilot/KAP140/locks/rev-hold</property>
|
|
|
|
<value type="bool">true</value>
|
|
|
|
</equals>
|
|
|
|
</condition>
|
|
|
|
<property>autopilot/settings/heading-bug-deg-backcourse</property>
|
|
|
|
<offset>
|
|
|
|
<property>instrumentation/heading-indicator/indicated-heading-deg</property>
|
|
|
|
<scale>-1.0</scale>
|
|
|
|
</offset>
|
|
|
|
</input>
|
|
|
|
|
|
|
|
<!-- Other modes -->
|
2015-07-24 17:37:16 +00:00
|
|
|
<input>
|
|
|
|
<property>autopilot/settings/heading-bug-deg</property>
|
|
|
|
<offset>
|
|
|
|
<property>instrumentation/heading-indicator/indicated-heading-deg</property>
|
|
|
|
<scale>-1.0</scale>
|
|
|
|
</offset>
|
|
|
|
</input>
|
|
|
|
<output>autopilot/internal/heading-bug-error-deg</output>
|
|
|
|
<period>
|
|
|
|
<min>-180</min>
|
|
|
|
<max>180</max>
|
|
|
|
</period>
|
|
|
|
<gain>1.0</gain>
|
|
|
|
</filter>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Roll Axis Modes -->
|
|
|
|
<!-- =============================================================== -->
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Nav hold (NAV) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Nav hold (NAV) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/nav-hold</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/instrumentation/nav/heading-needle-deflection</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
|
|
|
<value>0.0</value>
|
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-intercept-angle</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>2.0</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>15.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.0</Td> <!-- derivator time -->
|
|
|
|
<u_min>-45.0</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>45.0</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Approach hold (APR) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Approach hold (APR) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/apr-hold</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/instrumentation/nav/heading-needle-deflection</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
|
|
|
<value>0.0</value>
|
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-intercept-angle</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>2.0</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>15.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.001</Td> <!-- derivator time -->
|
|
|
|
<u_min>-45.0</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>45.0</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Backcourse hold (REV) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Backcourse hold (REV) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/rev-hold</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/instrumentation/nav/heading-needle-deflection</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<scale>-1.0</scale>
|
|
|
|
</input>
|
|
|
|
<reference>
|
|
|
|
<value>0.0</value>
|
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-intercept-angle</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>2.0</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>15.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.0</Td> <!-- derivator time -->
|
|
|
|
<u_min>-45.0</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>45.0</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Heading Select (HDG) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Heading Select (HDG) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/hdg-hold</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/internal/heading-bug-error-deg</property>
|
|
|
|
<!-- <property>/instrumentation/gps/true-bug-error-deg</property> -->
|
2015-07-24 17:37:16 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-intercept-angle</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-turn-rate</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>-0.05</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>15.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.0</Td> <!-- derivator time -->
|
|
|
|
<u_min>-1.0</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>1.0</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Wing leveler (ROL) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Wing Leveler (ROL) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/roll-axis</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/instrumentation/turn-indicator/indicated-turn-rate</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-turn-rate</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/controls/flight/aileron</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>0.15</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>15.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.0</Td> <!-- derivator time -->
|
|
|
|
<u_min>-0.25</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>0.25</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Pitch Axis Modes -->
|
|
|
|
<!-- =============================================================== -->
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Altitude Hold (ALT) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Altitude Hold (ALT) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/alt-hold</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/systems/static[0]/pressure-inhg[0]</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-alt-pressure</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>0.125</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>12.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.0</Td> <!-- derivator time -->
|
|
|
|
<u_min>-0.007</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>0.007</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Glideslope Hold (GS) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Glideslope Hold (GS) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/gs-hold</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/instrumentation/nav/gs-needle-deflection-norm</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
|
|
|
<value>0.0</value>
|
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>0.025</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>15.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.0</Td> <!-- derivator time -->
|
|
|
|
<u_min>-0.001</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>0.017</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<filter>
|
|
|
|
<name>static port pressure rate computer</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<type>derivative</type>
|
2016-02-10 21:32:19 +00:00
|
|
|
<input>
|
|
|
|
<property>systems/static[0]/pressure-inhg</property>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>autopilot/internal/pressure-rate</property>
|
|
|
|
</output>
|
2015-07-24 17:37:16 +00:00
|
|
|
<filter-time>1.0</filter-time>
|
|
|
|
</filter>
|
2011-04-17 12:57:13 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<filter>
|
|
|
|
<name>pressure-rate-filter</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<type>double-exponential</type>
|
2016-02-10 21:32:19 +00:00
|
|
|
<input>
|
|
|
|
<property>/autopilot/internal/pressure-rate</property>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/autopilot/internal/filtered-pressure-rate</property>
|
|
|
|
</output>
|
2015-07-24 17:37:16 +00:00
|
|
|
<filter-time>0.1</filter-time>
|
|
|
|
</filter>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<filter>
|
|
|
|
<name>conversion to fpm</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<type>gain</type>
|
2016-02-10 21:32:19 +00:00
|
|
|
<input>
|
|
|
|
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
|
|
|
|
</input>
|
|
|
|
<output>
|
|
|
|
<property>/autopilot/KAP140/settings/target-pressure-rate-fpm</property>
|
|
|
|
</output>
|
2015-07-24 17:37:16 +00:00
|
|
|
<gain>-58000</gain>
|
|
|
|
</filter>
|
2011-07-04 19:26:12 +00:00
|
|
|
|
2015-07-24 17:37:16 +00:00
|
|
|
<!-- Vertical Speed (VS) Mode -->
|
|
|
|
<pid-controller>
|
|
|
|
<name>Vertical Speed (VS) Mode</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<enable>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/locks/pitch-axis</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
<value type="bool">true</value>
|
|
|
|
</enable>
|
|
|
|
<input>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/internal/filtered-pressure-rate</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</input>
|
|
|
|
<reference>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/autopilot/KAP140/settings/target-pressure-rate</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</reference>
|
|
|
|
<output>
|
2016-02-10 21:32:19 +00:00
|
|
|
<property>/controls/flight/elevator</property>
|
2015-07-24 17:37:16 +00:00
|
|
|
</output>
|
|
|
|
<config>
|
|
|
|
<Kp>5.0</Kp> <!-- proportional gain -->
|
|
|
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
|
|
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
|
|
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
|
|
|
<!-- unfiltered derivative error -->
|
|
|
|
<Ti>4.0</Ti> <!-- integrator time -->
|
|
|
|
<Td>0.0</Td> <!-- derivator time -->
|
|
|
|
<u_min>-0.5</u_min> <!-- minimum output clamp -->
|
|
|
|
<u_max>0.5</u_max> <!-- maximum output clamp -->
|
|
|
|
</config>
|
|
|
|
</pid-controller>
|
2005-02-19 10:51:46 +00:00
|
|
|
|
2007-02-10 21:24:46 +00:00
|
|
|
</PropertyList>
|