1
0
Fork 0
A320-family/Systems/fmgc-drivers.xml
2020-07-12 19:27:04 +01:00

838 lines
20 KiB
XML

<?xml version="1.0"?>
<!-- IT-AUTOFLIGHT -->
<!-- Copyright (c) 2020 Joshua Davidson (Octal450) -->
<PropertyList>
<!-- Predictors -->
<predict-simple>
<name>IAS 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>IAS 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>FMGC Managed Knots</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<product>
<value>266</value>
<table>
<property>/FMGC/internal/cost-index</property>
<entry><ind> 0</ind><dep>1.00</dep></entry>
<entry><ind>120</ind><dep>1.19</dep></entry>
</table>
</product>
</expression>
</input>
<output>/FMGC/internal/mng-alt-spd</output>
<min>250</min>
<max>345</max>
</filter>
<filter>
<name>FMGC Managed Mach</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<product>
<table>
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
<entry><ind>20000</ind><dep>0.625</dep></entry>
<entry><ind>42000</ind><dep>0.805</dep></entry>
</table>
<table>
<property>/FMGC/internal/cost-index</property>
<entry><ind> 0</ind><dep>0.97</dep></entry>
<entry><ind>120</ind><dep>1.05</dep></entry>
</table>
</product>
</expression>
</input>
<output>/FMGC/internal/mng-alt-mach</output>
<min>0.500</min>
<max>0.815</max>
</filter>
<filter>
<name>FMGC Target Knots PFD</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
</condition>
<property>/it-autoflight/input/kts</property>
</input>
<input>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
</condition>
<expression>
<product>
<div>
<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
</div>
<property>/it-autoflight/input/mach</property>
</product>
</expression>
</input>
<output>/FMGC/internal/target-ias-pfd</output>
</filter>
<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>
<expression>
<sum>
<property>/it-autoflight/settings/togaspd</property>
<value>10</value>
</sum>
</expression>
</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>/instrumentation/efis/mfd/true-north</property>
</condition>
<property>/orientation/heading-deg</property>
</input>
<input>/orientation/heading-magnetic-deg</input>
<reference>0</reference>
<output>/it-autoflight/internal/heading-deg</output>
<output>/instrumentation/pfd/heading-deg</output>
</filter>
<filter>
<name>Track Deg</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<and>
<property>/instrumentation/efis/mfd/true-north</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>/instrumentation/efis/mfd/true-north</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>
<output>/instrumentation/pfd/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>/FMGC/flightplan[2]/current-leg-course</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>Nav Error Deg</name>
<debug>false</debug>
<type>gain</type>
<gain>1.0</gain>
<input>
<property>/instrumentation/nav[0]/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>Nav 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/nav-rate-of-climb-fpm</output>
<min>
<condition>
<not-equals>
<property>/options/steep-ils</property>
<value>1</value>
</not-equals>
</condition>
<value>-1200</value>
</min>
<min>
<condition>
<equals>
<property>/options/steep-ils</property>
<value>1</value>
</equals>
</condition>
<value>-2200</value>
</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>
<table>
<property>/fdm/jsbsim/velocities/vc-kts</property>
<entry><ind>140</ind><dep>1.8</dep></entry>
<entry><ind>360</ind><dep>2.8</dep></entry>
</table>
</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>
<table>
<property>/fdm/jsbsim/velocities/vc-kts</property>
<entry><ind>140</ind><dep>1.8</dep></entry>
<entry><ind>360</ind><dep>2.8</dep></entry>
</table>
</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>
<dif>
<property>/it-autoflight/internal/heading-predicted-cmd</property>
<value>360</value>
</dif>
</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>
<value>5</value>
</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>
<dif>
<property>/orientation/pitch-deg</property>
<property>/orientation/alpha-deg</property>
</dif>
</expression>
</input>
<output>/it-autoflight/internal/fpa</output>
</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>
<filter>
<name>Accel Altitude</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<or>
<and>
<equals>
<property>/engines/engine[0]/state</property>
<value>3</value>
</equals>
<not>
<equals>
<property>/engines/engine[1]/state</property>
<value>3</value>
</equals>
</not>
</and>
<and>
<not>
<equals>
<property>/engines/engine[0]/state</property>
<value>3</value>
</equals>
</not>
<equals>
<property>/engines/engine[1]/state</property>
<value>3</value>
</equals>
</and>
</or>
</condition>
<expression>
<property>/FMGC/internal/eng-out-reduc</property>
</expression>
</input>
<input>
<expression>
<property>/FMGC/internal/accel-agl-ft</property>
</expression>
</input>
<output>/it-autoflight/settings/accel-agl-ft</output>
</filter>
</PropertyList>