1
0
Fork 0
A320-family/Systems/fmgc-drivers.xml

839 lines
20 KiB
XML
Raw Normal View History

2019-10-14 16:48:35 +00:00
<?xml version="1.0"?>
<!-- IT-AUTOFLIGHT -->
2020-07-08 20:14:55 +00:00
<!-- Copyright (c) 2020 Joshua Davidson (Octal450) -->
2019-10-14 16:48:35 +00:00
<PropertyList>
<!-- Predictors -->
<predict-simple>
2020-07-08 20:14:55 +00:00
<name>IAS 5 Second Predictor</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
2020-07-08 20:14:55 +00:00
<output>/it-autoflight/internal/kts-predicted-5</output>
<seconds>5</seconds>
<filter-gain>0</filter-gain>
2019-10-14 16:48:35 +00:00
</predict-simple>
<predict-simple>
2020-07-08 20:14:55 +00:00
<name>MACH 5 Second Predictor</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
<input>/instrumentation/airspeed-indicator/indicated-mach</input>
2020-07-08 20:14:55 +00:00
<output>/it-autoflight/internal/mach-predicted-5</output>
<seconds>5</seconds>
<filter-gain>0</filter-gain>
2019-10-14 16:48:35 +00:00
</predict-simple>
<predict-simple>
2020-07-08 20:14:55 +00:00
<name>IAS 15 Second Predictor</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
2020-07-08 20:14:55 +00:00
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
<output>/it-autoflight/internal/kts-predicted-15</output>
<seconds>15</seconds>
<filter-gain>0</filter-gain>
2019-10-14 16:48:35 +00:00
</predict-simple>
<predict-simple>
2020-07-08 20:14:55 +00:00
<name>MACH 15 Second Predictor</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
<input>/instrumentation/airspeed-indicator/indicated-mach</input>
2020-07-08 20:14:55 +00:00
<output>/it-autoflight/internal/mach-predicted-15</output>
<seconds>15</seconds>
<filter-gain>0</filter-gain>
2019-10-14 16:48:35 +00:00
</predict-simple>
<!-- Autopilot Helpers/Calculators -->
<filter>
2020-07-08 20:14:55 +00:00
<name>FMGC Managed Knots</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>FMGC Managed Mach</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>FMGC Target Knots PFD</name>
2019-10-14 16:48:35 +00:00
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
</condition>
2020-07-09 01:12:02 +00:00
<property>/it-autoflight/input/kts</property>
2019-10-14 16:48:35 +00:00
</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>
2020-07-09 01:12:02 +00:00
<property>/it-autoflight/input/mach</property>
2019-10-14 16:48:35 +00:00
</product>
</expression>
</input>
<output>/FMGC/internal/target-ias-pfd</output>
</filter>
<filter>
2020-07-08 20:14:55 +00:00
<name>Knots Input Filter</name>
2019-10-14 16:48:35 +00:00
<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>
2019-10-14 16:48:35 +00:00
</input>
2020-07-09 01:12:02 +00:00
<input>/it-autoflight/input/kts</input>
2019-10-14 16:48:35 +00:00
<output>/it-autoflight/internal/flch-kts</output>
2020-07-08 20:14:55 +00:00
<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>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Mach Input Filter</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to>
2020-07-09 01:12:02 +00:00
<input>/it-autoflight/input/mach</input>
2019-10-14 16:48:35 +00:00
<output>/it-autoflight/internal/flch-mach</output>
2020-07-08 20:14:55 +00:00
<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>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<value>0.04</value>
2019-10-14 16:48:35 +00:00
</max-rate-of-change>
<max-rate-of-change>1</max-rate-of-change>
</filter>
<filter>
2020-07-08 20:14:55 +00:00
<name>Knots Sync</name>
2019-10-14 16:48:35 +00:00
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
</condition>
</enable>
2020-05-13 09:58:59 +00:00
<input>
2019-10-14 16:48:35 +00:00
<expression>
<floor>
<sum>
<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
<value>0.5</value>
</sum>
</floor>
</expression>
</input>
2020-07-09 01:12:02 +00:00
<output>/it-autoflight/input/kts</output>
2019-10-14 16:48:35 +00:00
</filter>
<filter>
2020-07-08 20:14:55 +00:00
<name>Mach Sync</name>
2019-10-14 16:48:35 +00:00
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
</condition>
</enable>
2020-05-13 09:58:59 +00:00
<input>
2019-10-14 16:48:35 +00:00
<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>
2020-07-09 01:12:02 +00:00
<output>/it-autoflight/input/mach</output>
2019-10-14 16:48:35 +00:00
</filter>
<filter>
2020-07-08 20:14:55 +00:00
<name>Heading Deg</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Track Deg</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Drift Angle</name>
2019-10-14 16:48:35 +00:00
<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>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Heading Error Deg</name>
2019-10-14 16:48:35 +00:00
<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>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Vertical Speed Sync</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Vertical Speed Filter</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<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>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Internal Vertical Speed</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Nav G/S FPM Calc</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
<type>gain</type>
<gain>1.0</gain>
<input>/instrumentation/nav[0]/gs-rate-of-climb-fpm</input>
2020-07-08 20:14:55 +00:00
<output>/it-autoflight/internal/nav-rate-of-climb-fpm</output>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Heading Predictor Stage 1</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Heading Predictor Stage 2</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Altitude Predictor</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>Internal FPA Computer</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>FD Target Roll Filter</name>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<name>FD Roll</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
2020-07-08 20:14:55 +00:00
<difference>
2019-10-14 16:48:35 +00:00
<property>/it-autoflight/internal/target-roll-fd</property>
<property>/orientation/roll-deg</property>
2020-07-08 20:14:55 +00:00
</difference>
2019-10-14 16:48:35 +00:00
</expression>
</input>
<output>/it-autoflight/fd/roll-bar</output>
<min>-30</min>
<max>30</max>
</filter>
<filter>
2020-07-08 20:14:55 +00:00
<name>FD Pitch</name>
2019-10-14 16:48:35 +00:00
<debug>false</debug>
<type>noise-spike</type>
<input>
<expression>
<product>
2020-07-08 20:14:55 +00:00
<difference>
2019-10-14 16:48:35 +00:00
<property>/it-autoflight/internal/target-common-fpm</property>
<property>/it-autoflight/internal/vert-speed-fpm</property>
2020-07-08 20:14:55 +00:00
</difference>
2019-10-14 16:48:35 +00:00
<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>
2020-07-08 20:14:55 +00:00
<max>15</max>
2019-10-14 16:48:35 +00:00
<max-rate-of-change>10</max-rate-of-change>
</filter>
2020-07-12 18:27:04 +00:00
<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>
2020-05-13 09:58:59 +00:00
2019-10-14 16:48:35 +00:00
</PropertyList>