1772 lines
42 KiB
XML
1772 lines
42 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- IT-AUTOFLIGHT -->
|
|
|
|
<PropertyList>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Predictors -->
|
|
<!-- =============================================================== -->
|
|
|
|
<predict-simple>
|
|
<name>ALTITUDE 5 SECONDS AHEAD</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/altimeter/indicated-altitude-ft</input>
|
|
<output>/it-autoflight/internal/altitude-5-sec-ahead</output>
|
|
<seconds>5.0</seconds>
|
|
<filter-gain>0.0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<predict-simple>
|
|
<name>IAS 5 SECOND PREDICTOR</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
|
|
<output>/it-autoflight/internal/lookahead-5-sec-airspeed-kt</output>
|
|
<seconds>5.0</seconds>
|
|
<filter-gain>0.0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<predict-simple>
|
|
<name>IAS 10 SECOND PREDICTOR</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
|
|
<output>/it-autoflight/internal/lookahead-10-sec-airspeed-kt</output>
|
|
<seconds>10.0</seconds>
|
|
<filter-gain>0.0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<predict-simple>
|
|
<name>IAS 15 SECOND PREDICTOR</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
|
|
<output>/it-autoflight/internal/lookahead-15-sec-airspeed-kt</output>
|
|
<seconds>15.0</seconds>
|
|
<filter-gain>0.0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<predict-simple>
|
|
<name>MACH 5 SECOND PREDICTOR</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-mach</input>
|
|
<output>/it-autoflight/internal/lookahead-5-sec-mach</output>
|
|
<seconds>5.0</seconds>
|
|
<filter-gain>0.0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<predict-simple>
|
|
<name>MACH 10 SECOND PREDICTOR</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-mach</input>
|
|
<output>/it-autoflight/internal/lookahead-10-sec-mach</output>
|
|
<seconds>10.0</seconds>
|
|
<filter-gain>0.0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<predict-simple>
|
|
<name>MACH 15 SECOND PREDICTOR</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-mach</input>
|
|
<output>/it-autoflight/internal/lookahead-15-sec-mach</output>
|
|
<seconds>15.0</seconds>
|
|
<filter-gain>0.0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Autopilot Helpers -->
|
|
<!-- =============================================================== -->
|
|
|
|
<filter>
|
|
<name>KTS INPUT FILTER</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/mode/vert</property>
|
|
<value>T/O CLB</value>
|
|
</not-equals>
|
|
</condition>
|
|
<property>/it-autoflight/input/spd-kts</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/mode/vert</property>
|
|
<value>T/O CLB</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/settings/togaspd</property>
|
|
</input>
|
|
<output>/it-autoflight/internal/flch-kts</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>100</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<value>5</value>
|
|
</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>MACH INPUT FILTER</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>
|
|
<property>/it-autoflight/input/spd-mach</property>
|
|
</input>
|
|
<output>/it-autoflight/internal/flch-mach</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>1</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<value>0.05</value>
|
|
</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>IAS SYNC</name>
|
|
<type>gain</type>
|
|
<gain>1</gain>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<update-interval-secs type="double">0.5</update-interval-secs>
|
|
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
|
|
<output>/it-autoflight/input/spd-kts</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>MACH SYNC</name>
|
|
<type>gain</type>
|
|
<gain>1</gain>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<update-interval-secs type="double">0.5</update-interval-secs>
|
|
<input>/instrumentation/airspeed-indicator/indicated-mach</input>
|
|
<output>/it-autoflight/input/spd-mach</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>HEADING ERROR DEG</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/input/trk</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/input/hdg</property>
|
|
<offset>
|
|
<property>/orientation/heading-magnetic-deg</property>
|
|
<scale>-1.0</scale>
|
|
</offset>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/input/trk</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/input/hdg</property>
|
|
<offset>
|
|
<property>/orientation/heading-deg</property>
|
|
<scale>-1.0</scale>
|
|
</offset>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/autopilot/settings/true-heading-deg</property>
|
|
<offset>
|
|
<property>/orientation/heading-deg</property>
|
|
<scale>-1.0</scale>
|
|
</offset>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>0</value>
|
|
</input>
|
|
<output>/it-autoflight/internal/heading-error-deg</output>
|
|
<period>
|
|
<min>-180</min>
|
|
<max>180</max>
|
|
</period>
|
|
<gain>1.0</gain>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>VERT SPEED FILTER</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>
|
|
<property>/it-autoflight/input/vs</property>
|
|
</input>
|
|
<output>/it-autoflight/internal/vs</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>2000</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<value>300</value>
|
|
</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>NAV ERROR DEG</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/settings/use-nav2-radio</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/instrumentation/nav[0]/radials/target-auto-hdg-deg</property>
|
|
<offset>
|
|
<property>/orientation/heading-deg</property>
|
|
<scale>-1.0</scale>
|
|
</offset>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/settings/use-nav2-radio</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/instrumentation/nav[1]/radials/target-auto-hdg-deg</property>
|
|
<offset>
|
|
<property>/orientation/heading-deg</property>
|
|
<scale>-1.0</scale>
|
|
</offset>
|
|
</input>
|
|
<output>/it-autoflight/internal/nav-heading-error-deg</output>
|
|
<period>
|
|
<min>-180</min>
|
|
<max>180</max>
|
|
</period>
|
|
<gain>1.0</gain>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>INTERNAL VERTICAL SPEED COMPUTER</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<input>/velocities/vertical-speed-fps</input>
|
|
<output>/it-autoflight/internal/vert-speed-fpm</output>
|
|
<gain>55.5</gain>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>INTERNAL VERTICAL SPEED COMPUTER</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>8</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/velocities/vertical-speed-fps</input>
|
|
<output>/it-autoflight/internal/target-fpm-b</output>
|
|
<gain>55.5</gain>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>NAV1 G/S FPM Calc</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<input>/instrumentation/nav[0]/gs-rate-of-climb-fpm</input>
|
|
<output>/it-autoflight/internal/nav1-rate-of-climb-fpm</output>
|
|
<gain>1.0</gain>
|
|
<min>-1500</min>
|
|
<max>0</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>NAV2 G/S FPM Calc</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<input>/instrumentation/nav[1]/gs-rate-of-climb-fpm</input>
|
|
<output>/it-autoflight/internal/nav2-rate-of-climb-fpm</output>
|
|
<gain>1.0</gain>
|
|
<min>-1500</min>
|
|
<max>0</max>
|
|
</filter>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Lateral Modes -->
|
|
<!-- =============================================================== -->
|
|
|
|
<pi-simple-controller>
|
|
<name>ROLL CONTROLLER: HDG/LNAV</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/heading-error-deg</property>
|
|
<scale>
|
|
<property>/it-autoflight/config/cmd/roll-scale</property>
|
|
</scale>
|
|
</input>
|
|
<reference>
|
|
<value>0</value>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/target-roll-deg</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<property>/it-autoflight/config/cmd/roll-kp</property>
|
|
</Kp>
|
|
<Ki>0.0</Ki>
|
|
<min>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</condition>
|
|
<property>/it-autoflight/input/bank-limit</property>
|
|
<scale>-1</scale>
|
|
</min>
|
|
<min>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<value>-25</value>
|
|
</min>
|
|
<max>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</condition>
|
|
<property>/it-autoflight/input/bank-limit</property>
|
|
</max>
|
|
<max>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<value>25</value>
|
|
</max>
|
|
</config>
|
|
</pi-simple-controller>
|
|
|
|
<pid-controller>
|
|
<name>VORLOC TRK</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/settings/use-backcourse</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/nav-heading-error-deg</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/settings/use-backcourse</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/nav-bc-heading-error-deg</property>
|
|
</input>
|
|
<reference>
|
|
<value>0.0</value>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/target-roll-deg</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<property>/it-autoflight/config/cmd/vorloc</property>
|
|
</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>10.0</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>-25</u_min>
|
|
<u_max>25</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: TARGET ROLL CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>
|
|
<property>/it-autoflight/internal/target-roll-deg</property>
|
|
</input>
|
|
<output>/it-autoflight/internal/target-roll</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>6</max-rate-of-change>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: ROLL</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/orientation/roll-deg</property>
|
|
</input>
|
|
<reference>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>5</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-roll</property>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>0</value>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/aileron-cmd</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>2</value>
|
|
</not-equals>
|
|
</condition>
|
|
<property>/it-autoflight/config/roll/kp</property>
|
|
</Kp>
|
|
<Kp>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/config/roll/kp-vloc</property>
|
|
</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>
|
|
<property>/it-autoflight/config/roll/ti</property>
|
|
</Ti>
|
|
<Td>
|
|
<property>/it-autoflight/config/roll/td</property>
|
|
</Td>
|
|
<u_min>
|
|
<property>/it-autoflight/config/roll/umin</property>
|
|
</u_min>
|
|
<u_max>
|
|
<property>/it-autoflight/config/roll/umax</property>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: ROLL CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/aileron-cmd</property>
|
|
</input>
|
|
<output>/controls/flight/aileron</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>2.5</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Vertical Modes -->
|
|
<!-- =============================================================== -->
|
|
|
|
<filter>
|
|
<name>ALTITUDE CAPTURE/HOLD</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<input>
|
|
<property>/it-autoflight/internal/altitude-5-sec-ahead</property>
|
|
</input>
|
|
<reference>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>8</value>
|
|
</not-equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/alt</property>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>8</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/prof-alt</property>
|
|
</reference>
|
|
<gain>-8</gain>
|
|
<output>
|
|
<property>/it-autoflight/internal/target-fpm</property>
|
|
</output>
|
|
<min>
|
|
<property>/it-autoflight/internal/min-vs</property>
|
|
</min>
|
|
<max>
|
|
<property>/it-autoflight/internal/max-vs</property>
|
|
</max>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>FPA HOLD</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/fpa</property>
|
|
</input>
|
|
<reference>
|
|
<property>/it-autoflight/input/fpa</property>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/target-pitch-deg</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<property>/it-autoflight/config/cmd/fpa</property>
|
|
</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>1.0</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>
|
|
<value>-10</value>
|
|
</u_min>
|
|
<u_max>
|
|
<value>30</value>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<pid-controller>
|
|
<name>FLCH SPEED BY PITCH</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/lookahead-15-sec-airspeed-kt</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/lookahead-15-sec-mach</property>
|
|
<scale>500.0</scale>
|
|
</input>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/flch-kts</property>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/flch-mach</property>
|
|
<scale>500.0</scale>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/target-fpm-b</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
<value>-50</value>
|
|
</Kp>
|
|
<Kp>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</equals>
|
|
</condition>
|
|
<value>-60</value>
|
|
</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>2.5</Ti>
|
|
<Td>0.001</Td>
|
|
<u_min>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<value>150</value>
|
|
</u_min>
|
|
<u_min>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<value>-6000</value>
|
|
</u_min>
|
|
<u_max>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</and>
|
|
</condition>
|
|
<value>10000</value>
|
|
</u_max>
|
|
<u_max>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<or>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
<value>1000</value>
|
|
</u_max>
|
|
<u_max>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<value>-150</value>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<pid-controller>
|
|
<name>VNAV SPEED BY PITCH</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>8</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/lookahead-15-sec-airspeed-kt</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/lookahead-15-sec-mach</property>
|
|
<scale>500.0</scale>
|
|
</input>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/flch-kts</property>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/flch-mach</property>
|
|
<scale>500.0</scale>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/target-fpm-b</property>
|
|
</output>
|
|
<config>
|
|
<Kp>-50</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>2.5</Ti>
|
|
<Td>0.001</Td>
|
|
<u_min>
|
|
<condition>
|
|
<greater-than>
|
|
<property>/it-autoflight/internal/prof-alt</property>
|
|
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
|
|
</greater-than>
|
|
</condition>
|
|
<value>150</value>
|
|
</u_min>
|
|
<u_min>
|
|
<condition>
|
|
<less-than>
|
|
<property>/it-autoflight/internal/prof-alt</property>
|
|
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
|
|
</less-than>
|
|
</condition>
|
|
<value>-6000</value>
|
|
</u_min>
|
|
<u_max>
|
|
<condition>
|
|
<greater-than>
|
|
<property>/it-autoflight/internal/prof-alt</property>
|
|
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
|
|
</greater-than>
|
|
</condition>
|
|
<value>10000</value>
|
|
</u_max>
|
|
<u_max>
|
|
<condition>
|
|
<less-than>
|
|
<property>/it-autoflight/internal/prof-alt</property>
|
|
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
|
|
</less-than>
|
|
</condition>
|
|
<value>-150</value>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>AUTOLAND FPM</name>
|
|
<type>gain</type>
|
|
<gain>1</gain>
|
|
<update-interval-secs type="double">0.05</update-interval-secs>
|
|
<input>
|
|
<expression>
|
|
<table>
|
|
<property>/position/gear-agl-ft</property>
|
|
<entry><ind>100</ind><dep>-600</dep></entry>
|
|
<entry><ind> 50</ind><dep>-500</dep></entry>
|
|
<entry><ind> 40</ind><dep>-400</dep></entry>
|
|
<entry><ind> 30</ind><dep>-300</dep></entry>
|
|
<entry><ind> 20</ind><dep>-200</dep></entry>
|
|
<entry><ind> 10</ind><dep>-150</dep></entry>
|
|
<entry><ind> 5</ind><dep>-100</dep></entry>
|
|
</table>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/internal/target-fpm-c</output>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>FPM HOLD</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>8</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<scale>0.16667</scale>
|
|
</input>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-fpm</property>
|
|
<scale>0.16667</scale>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/vs</property>
|
|
<scale>0.16667</scale>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</equals>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>8</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/prof-vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</and>
|
|
</or>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-fpm-b</property>
|
|
<scale>0.16667</scale>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>8</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/prof-vert</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/internal/prof-fpm</property>
|
|
<scale>0.16667</scale>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-fpm-c</property>
|
|
<scale>0.16667</scale>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/settings/use-nav2-radio</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/internal/nav1-rate-of-climb-fpm</property>
|
|
<scale>0.16667</scale>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/settings/use-nav2-radio</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/internal/nav2-rate-of-climb-fpm</property>
|
|
<scale>0.16667</scale>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/target-pitch-deg</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</not-equals>
|
|
</condition>
|
|
<property>/it-autoflight/config/cmd/vs</property>
|
|
</Kp>
|
|
<Kp>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/config/autoland/kp-pitch</property>
|
|
</Kp>
|
|
<Ti>5.0</Ti>
|
|
<Td>0.003</Td>
|
|
<u_min>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</not-equals>
|
|
</condition>
|
|
<value>-10</value>
|
|
</u_min>
|
|
<u_min>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
<value>0</value>
|
|
</u_min>
|
|
<u_max>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<value>30</value>
|
|
</u_max>
|
|
<u_max>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>10</value>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: TARGET PITCH CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>
|
|
<property>/it-autoflight/internal/target-pitch-deg</property>
|
|
</input>
|
|
<output>/it-autoflight/internal/target-pitch</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>6</max-rate-of-change>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: PITCH</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/orientation/pitch-deg</property>
|
|
</input>
|
|
<reference>
|
|
<property>/it-autoflight/internal/target-pitch</property>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<property>/it-autoflight/config/pitch/kp</property>
|
|
</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>
|
|
<property>/it-autoflight/config/pitch/ti</property>
|
|
</Ti>
|
|
<Td>
|
|
<property>/it-autoflight/config/pitch/td</property>
|
|
</Td>
|
|
<u_min>
|
|
<property>/it-autoflight/config/pitch/umin</property>
|
|
</u_min>
|
|
<u_max>
|
|
<property>/it-autoflight/config/pitch/umax</property>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: PITCH CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
</input>
|
|
<output>/controls/flight/elevator</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>2.5</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Rudder Control -->
|
|
<!-- =============================================================== -->
|
|
|
|
<pi-simple-controller>
|
|
<name>RUDDER VORLOC TRK</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/nav-heading-error-deg</property>
|
|
</input>
|
|
<reference>
|
|
<value>0</value>
|
|
</reference>
|
|
<output>/it-autoflight/internal/rudder-cmd</output>
|
|
<config>
|
|
<Kp>
|
|
<property>/it-autoflight/config/autoland/kp-rudder</property>
|
|
</Kp>
|
|
<Ki>0</Ki>
|
|
</config>
|
|
<min>-0.25</min>
|
|
<max>0.25</max>
|
|
</pi-simple-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: RUDDER CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</not-equals>
|
|
</condition>
|
|
<value>0</value>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/rudder-cmd</property>
|
|
</input>
|
|
<output>/controls/flight/rudder</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>0.20</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Control Wheel Steering -->
|
|
<!-- =============================================================== -->
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: CWS ROLL</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/internal/cwsr</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/cws</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/orientation/roll-deg</property>
|
|
</input>
|
|
<reference>
|
|
<property>/it-autoflight/internal/cws-roll-deg</property>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/cws-ail-cmd</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<property>/it-autoflight/config/roll/kp</property>
|
|
</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>
|
|
<property>/it-autoflight/config/roll/ti</property>
|
|
</Ti>
|
|
<Td>
|
|
<property>/it-autoflight/config/roll/td</property>
|
|
</Td>
|
|
<u_min>-1.0</u_min>
|
|
<u_max>1.0</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: CWS ROLL CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/cws</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/internal/cwsr</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/cws-ail-cmd</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/internal/cwsr</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<value>0</value>
|
|
</input>
|
|
<output>/controls/flight/aileron-trim</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>0.9</max-rate-of-change>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: CWS PITCH</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/internal/cwsp</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/cws</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/orientation/pitch-deg</property>
|
|
</input>
|
|
<reference>
|
|
<property>/it-autoflight/internal/cws-pitch-deg</property>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/cws-elv-cmd</property>
|
|
</output>
|
|
<config>
|
|
<Kp>
|
|
<property>/it-autoflight/config/pitch/kp-cws</property>
|
|
</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>
|
|
<property>/it-autoflight/config/pitch/ti</property>
|
|
</Ti>
|
|
<Td>
|
|
<property>/it-autoflight/config/pitch/td</property>
|
|
</Td>
|
|
<u_min>-1.0</u_min>
|
|
<u_max>1.0</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: CWS PITCH CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/cws</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/cws-elv-cmd</property>
|
|
</input>
|
|
<output>/controls/flight/elevator-trim</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>0.5</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Autotrim -->
|
|
<!-- =============================================================== -->
|
|
|
|
<pid-controller>
|
|
<name>AP PITCH HELPER PLUS</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<greater-than>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
<value>0.05</value>
|
|
</greater-than>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<value>0</value>
|
|
</input>
|
|
<reference>
|
|
<value>1</value>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/elevator-trim-cmd</property>
|
|
</output>
|
|
<config>
|
|
<Kp>0.08</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>10</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>-1.00</u_min>
|
|
<u_max>1.00</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<pid-controller>
|
|
<name>AP PITCH HELPER MINUS</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<less-than>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
<value>-0.05</value>
|
|
</less-than>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<value>0</value>
|
|
</input>
|
|
<reference>
|
|
<value>1</value>
|
|
</reference>
|
|
<output>
|
|
<property>/it-autoflight/internal/elevator-trim-cmd</property>
|
|
</output>
|
|
<config>
|
|
<Kp>-0.08</Kp>
|
|
<beta>1.0</beta>
|
|
<alpha>0.1</alpha>
|
|
<gamma>0.0</gamma>
|
|
<Ti>10</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>-1.00</u_min>
|
|
<u_max>1.00</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: PITCH TRIM CMD</name>
|
|
<debug>false</debug>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
<or>
|
|
<greater-than>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
<value>0.05</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
<value>-0.05</value>
|
|
</less-than>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/it-autoflight/internal/elevator-trim-cmd</property>
|
|
</input>
|
|
<output>/controls/flight/elevator-trim</output>
|
|
<type>noise-spike</type>
|
|
<max-rate-of-change>0.01</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Flight Director -->
|
|
<!-- =============================================================== -->
|
|
|
|
<filter>
|
|
<name>FD: ROLL</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>5</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<expression>
|
|
<dif>
|
|
<property>/it-autoflight/internal/target-roll</property>
|
|
<property>/orientation/roll-deg</property>
|
|
</dif>
|
|
</expression>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<expression>
|
|
<dif>
|
|
<value>0</value>
|
|
<property>/orientation/roll-deg</property>
|
|
</dif>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/fd/roll-bar</output>
|
|
<min>-30</min>
|
|
<max>30</max>
|
|
</filter>
|
|
|
|
|
|
<filter>
|
|
<name>FD: PITCH</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<expression>
|
|
<dif>
|
|
<property>/it-autoflight/internal/target-pitch</property>
|
|
<property>/orientation/pitch-deg</property>
|
|
</dif>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/fd/pitch-bar</output>
|
|
<min>-15</min>
|
|
<max>30</max>
|
|
</filter>
|
|
|
|
</PropertyList>
|