1914 lines
45 KiB
XML
1914 lines
45 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- IT-AUTOFLIGHT -->
|
|
<!-- Copyright (c) 2020 Joshua Davidson (Octal450) -->
|
|
|
|
<PropertyList>
|
|
|
|
<!-- Predictors -->
|
|
<predict-simple>
|
|
<name>Knots 5 Second Predictor</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
|
|
<output>/it-autoflight/internal/kts-predicted-5</output>
|
|
<seconds>5</seconds>
|
|
<filter-gain>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/mach-predicted-5</output>
|
|
<seconds>5</seconds>
|
|
<filter-gain>0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<predict-simple>
|
|
<name>Knots 15 Second Predictor</name>
|
|
<debug>false</debug>
|
|
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
|
|
<output>/it-autoflight/internal/kts-predicted-15</output>
|
|
<seconds>15</seconds>
|
|
<filter-gain>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/mach-predicted-15</output>
|
|
<seconds>15</seconds>
|
|
<filter-gain>0</filter-gain>
|
|
</predict-simple>
|
|
|
|
<!-- Autopilot Helpers/Calculators -->
|
|
<filter>
|
|
<name>Knots Input Filter</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/mode/vert</property>
|
|
<value>T/O CLB</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/settings/togaspd</property>
|
|
</input>
|
|
<input>/it-autoflight/input/kts</input>
|
|
<output>/it-autoflight/internal/flch-kts</output>
|
|
<min>
|
|
<expression>
|
|
<difference>
|
|
<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
|
|
<value>25</value>
|
|
</difference>
|
|
</expression>
|
|
</min>
|
|
<max>
|
|
<expression>
|
|
<sum>
|
|
<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
|
|
<value>25</value>
|
|
</sum>
|
|
</expression>
|
|
</max>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</equals>
|
|
</or>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<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>
|
|
<max-rate-of-change>100</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Mach Input Filter</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>/it-autoflight/input/mach</input>
|
|
<output>/it-autoflight/internal/flch-mach</output>
|
|
<min>
|
|
<expression>
|
|
<difference>
|
|
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
|
|
<value>0.045</value>
|
|
</difference>
|
|
</expression>
|
|
</min>
|
|
<max>
|
|
<expression>
|
|
<sum>
|
|
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
|
|
<value>0.045</value>
|
|
</sum>
|
|
</expression>
|
|
</max>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</equals>
|
|
</or>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<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.04</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>1</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Knots Sync</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<expression>
|
|
<floor>
|
|
<sum>
|
|
<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
|
|
<value>0.5</value>
|
|
</sum>
|
|
</floor>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/input/kts</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Mach Sync</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<expression>
|
|
<div>
|
|
<floor>
|
|
<sum>
|
|
<product>
|
|
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
|
|
<value>1000</value>
|
|
</product>
|
|
<value>0.5</value>
|
|
</sum>
|
|
</floor>
|
|
<value>1000</value>
|
|
</div>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/input/mach</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Heading Deg</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<property>/it-autoflight/input/true-course</property>
|
|
</condition>
|
|
<property>/orientation/heading-deg</property>
|
|
</input>
|
|
<input>/orientation/heading-magnetic-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/heading-deg</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Track Deg</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<property>/it-autoflight/input/true-course</property>
|
|
<greater-than>
|
|
<property>/velocities/groundspeed-kt</property>
|
|
<value>1</value>
|
|
</greater-than>
|
|
</and>
|
|
</condition>
|
|
<property>/orientation/track-deg</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<not><property>/it-autoflight/input/true-course</property></not>
|
|
<greater-than>
|
|
<property>/velocities/groundspeed-kt</property>
|
|
<value>1</value>
|
|
</greater-than>
|
|
</and>
|
|
</condition>
|
|
<property>/orientation/track-magnetic-deg</property>
|
|
</input>
|
|
<input>/it-autoflight/internal/heading-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/track-deg</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Drift Angle</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<less-than-equals>
|
|
<property>/velocities/groundspeed-kt</property>
|
|
<value>1</value>
|
|
</less-than-equals>
|
|
</condition>
|
|
<property>/orientation/heading-magnetic-deg</property>
|
|
</input>
|
|
<input>/orientation/track-magnetic-deg</input>
|
|
<reference>/orientation/heading-magnetic-deg</reference>
|
|
<output>/it-autoflight/internal/drift-angle-deg</output>
|
|
<period>
|
|
<min>-180</min>
|
|
<max>180</max>
|
|
</period>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Heading Error Deg</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<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>/it-autoflight/internal/heading-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>/it-autoflight/internal/track-deg</property>
|
|
<scale>-1.0</scale>
|
|
</offset>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<expression>
|
|
<sum>
|
|
<property>/autopilot/route-manager/wp[0]/true-bearing-deg</property>
|
|
<product>
|
|
<property>/it-autoflight/internal/drift-angle-deg</property>
|
|
<value>-1.0</value>
|
|
</product>
|
|
<product>
|
|
<property>/orientation/heading-deg</property>
|
|
<value>-1.0</value>
|
|
</product>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<input>0</input>
|
|
<output>/it-autoflight/internal/heading-error-deg</output>
|
|
<period>
|
|
<min>-180</min>
|
|
<max>180</max>
|
|
</period>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Vertical Speed Sync</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<expression>
|
|
<floor>
|
|
<sum>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<value>0.5</value>
|
|
</sum>
|
|
</floor>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/input/vs</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Vertical Speed Filter</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>/it-autoflight/input/vs</input>
|
|
<output>/it-autoflight/internal/vs</output>
|
|
<max-rate-of-change>
|
|
<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>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<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>
|
|
<max-rate-of-change>2000</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>VS Abs</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<update-interval-secs type="double">0.02</update-interval-secs>
|
|
<input>
|
|
<expression>
|
|
<abs>
|
|
<property>/it-autoflight/input/vs</property>
|
|
</abs>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/input/vs-abs</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>FPA Abs</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<update-interval-secs type="double">0.02</update-interval-secs>
|
|
<input>
|
|
<expression>
|
|
<abs>
|
|
<property>/it-autoflight/input/fpa</property>
|
|
</abs>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/input/fpa-abs</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Mach x1000</name>
|
|
<type>gain</type>
|
|
<gain>1000</gain>
|
|
<update-interval-secs type="double">0.02</update-interval-secs>
|
|
<input>/it-autoflight/input/mach</input>
|
|
<output>/it-autoflight/input/mach-x1000</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Nav Error Deg</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/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/input/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>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Internal Vertical Speed</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>/instrumentation/gps/indicated-vertical-speed</input>
|
|
<output>/it-autoflight/internal/vert-speed-fpm</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Nav1 G/S FPM Calc</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>/instrumentation/nav[0]/gs-rate-of-climb-fpm</input>
|
|
<output>/it-autoflight/internal/nav1-rate-of-climb-fpm</output>
|
|
<min>-1200</min>
|
|
<max>0</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Nav2 G/S FPM Calc</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>/instrumentation/nav[1]/gs-rate-of-climb-fpm</input>
|
|
<output>/it-autoflight/internal/nav2-rate-of-climb-fpm</output>
|
|
<min>-1200</min>
|
|
<max>0</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Heading Predictor Stage 1</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/trk</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<expression>
|
|
<sum>
|
|
<div>
|
|
<property>/orientation/roll-deg</property>
|
|
<property>/it-autoflight/config/cmd/roll-kp</property>
|
|
</div>
|
|
<property>/it-autoflight/internal/heading-deg</property>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/trk</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<expression>
|
|
<sum>
|
|
<div>
|
|
<property>/orientation/roll-deg</property>
|
|
<property>/it-autoflight/config/cmd/roll-kp</property>
|
|
</div>
|
|
<property>/it-autoflight/internal/track-deg</property>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/internal/heading-predicted-cmd</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Heading Predictor Stage 2</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<greater-than-equals>
|
|
<property>/it-autoflight/internal/heading-predicted-cmd</property>
|
|
<value>360.5</value>
|
|
</greater-than-equals>
|
|
</condition>
|
|
<expression>
|
|
<difference>
|
|
<property>/it-autoflight/internal/heading-predicted-cmd</property>
|
|
<value>360</value>
|
|
</difference>
|
|
</expression>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<less-than>
|
|
<property>/it-autoflight/internal/heading-predicted-cmd</property>
|
|
<value>0.5</value>
|
|
</less-than>
|
|
</condition>
|
|
<expression>
|
|
<sum>
|
|
<property>/it-autoflight/internal/heading-predicted-cmd</property>
|
|
<value>360</value>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<input>/it-autoflight/internal/heading-predicted-cmd</input>
|
|
<output>/it-autoflight/internal/heading-predicted</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Altitude Predictor</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<expression>
|
|
<sum>
|
|
<div>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<product>
|
|
<property>/it-autoflight/config/cmd/alt-gain</property>
|
|
<value>-1</value>
|
|
</product>
|
|
</div>
|
|
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/internal/altitude-predicted</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Internal FPA Computer</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<expression>
|
|
<difference>
|
|
<property>/orientation/pitch-deg</property>
|
|
<property>/orientation/alpha-deg</property>
|
|
</difference>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/internal/fpa</output>
|
|
</filter>
|
|
|
|
<!-- Roll Axis -->
|
|
<filter>
|
|
<name>IT-CONTROLLER: Heading/LNAV</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>/it-autoflight/config/cmd/roll-kp</gain>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/internal/heading-error-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
|
<min>
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
|
<scale>-1.0</scale>
|
|
</min>
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: VOR/LOC</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>/it-autoflight/config/cmd/roll-kp</gain>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/internal/nav-heading-error-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
|
<min>
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
|
<scale>-1.0</scale>
|
|
</min>
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: Align/Rollout/Takeoff</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<enable>
|
|
<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>
|
|
</enable>
|
|
<input>0</input>
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Roll Target Inactive Sync</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/orientation/roll-deg</input>
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
|
<min>
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
|
<scale>-1.0</scale>
|
|
</min>
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Target Roll Filter</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<input>/it-autoflight/internal/target-roll-deg</input>
|
|
<output>/it-autoflight/internal/target-roll</output>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>50</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>15</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>6</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Roll Rate Target</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>-0.84</gain>
|
|
<enable>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/config/tuning-mode</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</condition>
|
|
</enable>
|
|
<input>/orientation/roll-deg</input>
|
|
<reference>/it-autoflight/internal/target-roll</reference>
|
|
<output>/it-autoflight/internal/roll-rate</output>
|
|
<min>-4.8</min>
|
|
<max>4.8</max>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>System Command: Aileron Air</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
<not-equals>
|
|
<property>/it-autoflight/settings/disable-final</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/orientation/roll-rate-degps</input>
|
|
<reference>/it-autoflight/internal/roll-rate</reference>
|
|
<output>/it-autoflight/internal/aileron-cmd</output>
|
|
<config>
|
|
<Kp>/it-autoflight/config/roll/kp</Kp>
|
|
<Ti>/it-autoflight/config/roll/ti</Ti>
|
|
<Td>/it-autoflight/config/roll/td</Td>
|
|
<u_min>-1.0</u_min>
|
|
<u_max>1.0</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>System Command: Aileron Ground</name>
|
|
<type>gain</type>
|
|
<gain>/it-autoflight/config/rollout/roll-kp</gain>
|
|
<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>/orientation/roll-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/aileron-rollout</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Aileron Filter</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<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>
|
|
<not-equals>
|
|
<property>/it-autoflight/settings/disable-final</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<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>
|
|
<property>/it-autoflight/internal/aileron-cmd</property>
|
|
</input>
|
|
<input>/it-autoflight/internal/aileron-rollout</input>
|
|
<output>/controls/flight/aileron</output>
|
|
<max-rate-of-change>1.2</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- Pitch Axis -->
|
|
<filter>
|
|
<name>IT-CONTROLLER: Altitude Capture/Hold</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>/it-autoflight/config/cmd/alt-gain</gain>
|
|
<input>
|
|
<expression>
|
|
<sum>
|
|
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
|
|
<value>-2</value>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<reference>/it-autoflight/internal/alt</reference>
|
|
<output>/it-autoflight/internal/target-fpm-alt</output>
|
|
<min>/it-autoflight/internal/min-vs</min>
|
|
<max>/it-autoflight/internal/max-vs</max>
|
|
</filter>
|
|
|
|
<logic>
|
|
<input>
|
|
<and>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>7</value>
|
|
</equals>
|
|
</or>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</input>
|
|
<output>/it-autoflight/internal/flch-active</output>
|
|
</logic>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: Speed By Pitch</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<property>/it-autoflight/internal/flch-active</property>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/kts-predicted-15</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/input/kts-mach</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/mach-predicted-15</property>
|
|
<scale>750</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>750</scale>
|
|
</reference>
|
|
<output>/it-autoflight/internal/target-fpm-flch</output>
|
|
<config>
|
|
<Kp>-55</Kp>
|
|
<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>120</value>
|
|
</u_min>
|
|
<u_min>
|
|
<expression>
|
|
<difference>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<value>2500</value>
|
|
</difference>
|
|
</expression>
|
|
</u_min>
|
|
<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>-120</value>
|
|
</u_max>
|
|
<u_max>
|
|
<expression>
|
|
<sum>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<value>2500</value>
|
|
</sum>
|
|
</expression>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>Speed By Pitch Inactive Sync</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<not><property>/it-autoflight/internal/flch-active</property></not>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/internal/vert-speed-fpm</input>
|
|
<output>/it-autoflight/internal/target-fpm-flch</output>
|
|
</filter>
|
|
|
|
<logic>
|
|
<input>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>5</value>
|
|
</equals>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</input>
|
|
<output>/it-autoflight/internal/fpa-active</output>
|
|
</logic>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: FPA</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<not><property>/it-autoflight/internal/fpa-active</property></not>
|
|
</condition>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
</input>
|
|
<input>
|
|
<expression>
|
|
<sum>
|
|
<difference> <!-- Fix an issue with the calculation -->
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<product>
|
|
<property>/velocities/vertical-speed-fps</property>
|
|
<value>60</value>
|
|
</product>
|
|
</difference>
|
|
<product>
|
|
<sin>
|
|
<deg2rad>
|
|
<property>/it-autoflight/input/fpa</property>
|
|
</deg2rad>
|
|
</sin>
|
|
<property>/instrumentation/airspeed-indicator/true-speed-kt</property>
|
|
<value>101.26859142607174</value> <!-- FPM to Knot -->
|
|
</product>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/internal/target-fpm-fpa-raw</output>
|
|
<min>
|
|
<expression>
|
|
<difference>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<value>2500</value>
|
|
</difference>
|
|
</expression>
|
|
</min>
|
|
<max>
|
|
<expression>
|
|
<sum>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<value>2500</value>
|
|
</sum>
|
|
</expression>
|
|
</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>FPA FPM Filter</name>
|
|
<type>noise-spike</type>
|
|
<input>/it-autoflight/internal/target-fpm-fpa-raw</input>
|
|
<output>/it-autoflight/internal/target-fpm-fpa</output>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<not><property>/it-autoflight/internal/fpa-active</property></not>
|
|
</condition>
|
|
<value>10000</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>300</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: Flare</name>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<expression>
|
|
<sum>
|
|
<difference> <!-- Fix an issue with the calculation -->
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
<product>
|
|
<property>/velocities/vertical-speed-fps</property>
|
|
<value>60</value>
|
|
</product>
|
|
</difference>
|
|
<product>
|
|
<sin>
|
|
<deg2rad>
|
|
<table>
|
|
<property>/position/gear-agl-ft</property>
|
|
<entry><ind>100</ind><dep>-2.80</dep></entry>
|
|
<entry><ind> 50</ind><dep>-2.12</dep></entry>
|
|
<entry><ind> 40</ind><dep>-1.58</dep></entry>
|
|
<entry><ind> 30</ind><dep>-1.23</dep></entry>
|
|
<entry><ind> 20</ind><dep>-0.92</dep></entry>
|
|
<entry><ind> 10</ind><dep>-0.61</dep></entry>
|
|
</table>
|
|
</deg2rad>
|
|
</sin>
|
|
<property>/instrumentation/airspeed-indicator/true-speed-kt</property>
|
|
<value>101.26859142607174</value> <!-- FPM to Knot -->
|
|
</product>
|
|
</sum>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/internal/target-fpm-land</output>
|
|
<min>-1200</min>
|
|
<max>0</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>Target FPM</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-fpm-alt</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/input/vs</property>
|
|
</input>
|
|
<input>
|
|
<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>
|
|
<property>/it-autoflight/internal/target-fpm-flch</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-fpm-land</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-fpm-fpa-raw</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/input/use-nav2-radio</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/internal/nav1-rate-of-climb-fpm</property>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/input/use-nav2-radio</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
<property>/it-autoflight/internal/nav2-rate-of-climb-fpm</property>
|
|
</input>
|
|
<output>/it-autoflight/internal/target-common-fpm</output>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: FPM Hold</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<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>/it-autoflight/internal/vert-speed-fpm</input>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/vs</property>
|
|
</reference>
|
|
<reference>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/target-fpm-fpa</property>
|
|
</reference>
|
|
<reference>/it-autoflight/internal/target-common-fpm</reference>
|
|
<output>/it-autoflight/internal/target-pitch-deg</output>
|
|
<config>
|
|
<Kp>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</not-equals>
|
|
</condition>
|
|
<expression>
|
|
<table>
|
|
<property>/velocities/airspeed-kt</property>
|
|
<entry><ind>140</ind><dep>0.0029</dep></entry>
|
|
<entry><ind>360</ind><dep>0.0009</dep></entry>
|
|
</table>
|
|
</expression>
|
|
</Kp>
|
|
<Kp>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/config/autoland/pitch-kp</property>
|
|
</Kp>
|
|
<Ti>2.5</Ti>
|
|
<Td>0.0001</Td>
|
|
<u_min>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/vert</property>
|
|
<value>6</value>
|
|
</equals>
|
|
</condition>
|
|
<value>0</value>
|
|
</u_min>
|
|
<u_min>
|
|
<expression>
|
|
<max>
|
|
<dif>
|
|
<property>/orientation/pitch-deg</property>
|
|
<value>5</value>
|
|
</dif>
|
|
<value>-15</value>
|
|
</max>
|
|
</expression>
|
|
</u_min>
|
|
<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>
|
|
<u_max>
|
|
<expression>
|
|
<min>
|
|
<sum>
|
|
<property>/orientation/pitch-deg</property>
|
|
<value>5</value>
|
|
</sum>
|
|
<value>30</value>
|
|
</min>
|
|
</expression>
|
|
</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>System Command: Pitch Target Inactive Sync</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<not>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<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>
|
|
</not>
|
|
</condition>
|
|
</enable>
|
|
<input>/orientation/pitch-deg</input>
|
|
<output>/it-autoflight/internal/target-pitch-deg</output>
|
|
<min>-15</min>
|
|
<max>30</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Pitch Rate Target</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>-0.6</gain>
|
|
<enable>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/it-autoflight/config/tuning-mode</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</condition>
|
|
</enable>
|
|
<input>/orientation/pitch-deg</input>
|
|
<reference>/it-autoflight/internal/target-pitch-deg</reference>
|
|
<output>/it-autoflight/internal/pitch-rate</output>
|
|
<min>-1.5</min>
|
|
<max>1.5</max>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>System Command: Elevator</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[0]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
<not-equals>
|
|
<property>/it-autoflight/settings/disable-final</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/orientation/pitch-rate-degps</input>
|
|
<reference>
|
|
<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>
|
|
<property>/it-autoflight/config/rollout/pitch-rate</property>
|
|
</reference>
|
|
<reference>/it-autoflight/internal/pitch-rate</reference>
|
|
<output>/it-autoflight/internal/elevator-cmd</output>
|
|
<config>
|
|
<Kp>/it-autoflight/config/pitch/kp</Kp>
|
|
<Ti>/it-autoflight/config/pitch/ti</Ti>
|
|
<Td>/it-autoflight/config/pitch/td</Td>
|
|
<u_min>-1.0</u_min>
|
|
<u_max>1.0</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>System Command: Elevator Filter</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<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>
|
|
<not-equals>
|
|
<property>/it-autoflight/settings/disable-final</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/gear/gear[0]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
</input>
|
|
<input> <!-- Prevent feedback from breaking it -->
|
|
<value>1</value>
|
|
<scale>
|
|
<property>/it-autoflight/config/rollout/pitch-nose</property>
|
|
</scale>
|
|
</input>
|
|
<output>/controls/flight/elevator</output>
|
|
<max-rate-of-change>1.2</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Elevator Trim</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<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.01</value>
|
|
</greater-than>
|
|
<less-than>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
<value>-0.01</value>
|
|
</less-than>
|
|
</or>
|
|
<not-equals>
|
|
<property>/it-autoflight/settings/disable-final</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<greater-than>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
<value>0.01</value>
|
|
</greater-than>
|
|
</condition>
|
|
<value>1</value>
|
|
</input>
|
|
<input>
|
|
<condition>
|
|
<less-than>
|
|
<property>/it-autoflight/internal/elevator-cmd</property>
|
|
<value>-0.01</value>
|
|
</less-than>
|
|
</condition>
|
|
<value>-1</value>
|
|
</input>
|
|
<output>/controls/flight/elevator-trim</output>
|
|
<min>-1.0</min>
|
|
<max>1.0</max>
|
|
<max-rate-of-change>
|
|
<expression>
|
|
<table>
|
|
<abs><property>/it-autoflight/internal/elevator-cmd</property></abs>
|
|
<entry><ind>0.01</ind><dep>0.001</dep></entry>
|
|
<entry><ind>0.10</ind><dep>0.010</dep></entry>
|
|
</table>
|
|
</expression>
|
|
</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- Yaw Axis -->
|
|
<pi-simple-controller>
|
|
<name>IT-CONTROLLER: Yaw VOR/LOC</name>
|
|
<debug>false</debug>
|
|
<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>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/internal/nav-heading-error-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/rudder-cmd</output>
|
|
<config>
|
|
<Kp>
|
|
<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>
|
|
<property>/it-autoflight/config/autoland/yaw-kp</property>
|
|
</Kp>
|
|
<Kp>
|
|
<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>
|
|
<property>/it-autoflight/config/rollout/yaw-kp</property>
|
|
</Kp>
|
|
<Ki>0</Ki>
|
|
</config>
|
|
<min>-0.15</min>
|
|
<max>0.15</max>
|
|
</pi-simple-controller>
|
|
|
|
<filter>
|
|
<name>System Command: Rudder</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<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>
|
|
<not-equals>
|
|
<property>/it-autoflight/settings/disable-final</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/rudder-cmd</property>
|
|
</input>
|
|
<input>0</input>
|
|
<output>/controls/flight/rudder</output>
|
|
<max-rate-of-change>1.2</max-rate-of-change>
|
|
</filter>
|
|
|
|
<!-- Flight Director -->
|
|
<filter>
|
|
<name>FD Target Roll Filter</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<input>/it-autoflight/internal/target-roll-deg</input>
|
|
<output>/it-autoflight/internal/target-roll-fd</output>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>50</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>15</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>FD Roll</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<input>
|
|
<expression>
|
|
<difference>
|
|
<property>/it-autoflight/internal/target-roll-fd</property>
|
|
<property>/orientation/roll-deg</property>
|
|
</difference>
|
|
</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>noise-spike</type>
|
|
<input>
|
|
<expression>
|
|
<product>
|
|
<difference>
|
|
<property>/it-autoflight/internal/target-common-fpm</property>
|
|
<property>/it-autoflight/internal/vert-speed-fpm</property>
|
|
</difference>
|
|
<table>
|
|
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
|
|
<entry><ind>0.20</ind><dep>0.004</dep></entry>
|
|
<entry><ind>0.95</ind><dep>0.002</dep></entry>
|
|
</table>
|
|
</product>
|
|
</expression>
|
|
</input>
|
|
<output>/it-autoflight/fd/pitch-bar</output>
|
|
<min>-15</min>
|
|
<max>15</max>
|
|
<max-rate-of-change>10</max-rate-of-change>
|
|
</filter>
|
|
|
|
</PropertyList>
|