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

310 lines
7.2 KiB
XML
Raw Normal View History

2019-10-14 16:48:35 +00:00
<?xml version="1.0"?>
2022-01-11 02:17:41 +00:00
<!-- Copyright (c) 2022 Josh Davidson (Octal450) -->
2019-10-14 16:48:35 +00:00
<PropertyList>
<!-- Thrust Axis -->
<filter>
<name>A/THR Knots Input Gain</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<max>
<min>
<property>/it-autoflight/input/kts</property>
<property>/FMGC/internal/vmax</property>
</min>
<property>/FMGC/internal/vls</property>
</max>
</expression>
</input>
<output>/it-autoflight/internal/athr-kts-cmd</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>
</filter>
<filter>
<name>A/THR Knots Input Filter</name>
<type>noise-spike</type>
<initialize-to>output</initialize-to>
<input>/it-autoflight/internal/athr-kts-cmd</input>
<output>/it-autoflight/internal/athr-kts</output>
2019-10-14 16:48:35 +00:00
<max-rate-of-change>
<condition>
<and>
<equals>
2021-04-23 22:53:11 +00:00
<property>/fdm/jsbsim/fadec/athr/active</property>
2019-10-14 16:48:35 +00:00
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
<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>10</value>
</max-rate-of-change>
<max-rate-of-change>200</max-rate-of-change>
</filter>
<filter>
<name>A/THR Mach Input Gain</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<max>
<min>
<property>/it-autoflight/input/mach</property>
<property>/FMGC/internal/vmax-mach</property>
</min>
<property>/FMGC/internal/vls-mach</property>
</max>
</expression>
</input>
<output>/it-autoflight/internal/athr-mach-cmd</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>
</filter>
<filter>
<name>A/THR Mach Input Filter</name>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to>
<input>/it-autoflight/internal/athr-mach-cmd</input>
<output>/it-autoflight/internal/athr-mach</output>
2019-10-14 16:48:35 +00:00
<max-rate-of-change>
<condition>
<and>
<equals>
2021-04-23 22:53:11 +00:00
<property>/fdm/jsbsim/fadec/athr/active</property>
2019-10-14 16:48:35 +00:00
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
<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.08</value>
2019-10-14 16:48:35 +00:00
</max-rate-of-change>
<max-rate-of-change>2</max-rate-of-change>
</filter>
<pid-controller>
2020-07-08 20:14:55 +00:00
<name>IT-CONTROLLER: Knots</name>
2019-10-14 16:48:35 +00:00
<enable>
<condition>
<and>
<equals>
2021-04-23 22:53:11 +00:00
<property>/fdm/jsbsim/fadec/athr/active</property>
2019-10-14 16:48:35 +00:00
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
2019-10-14 16:48:35 +00:00
</and>
</condition>
</enable>
<input>/it-autoflight/internal/current-speed-input</input>
2020-07-08 20:14:55 +00:00
<reference>/it-autoflight/internal/athr-kts</reference>
2021-04-23 22:53:11 +00:00
<output>/fdm/jsbsim/fadec/athr/cmd</output>
2019-10-14 16:48:35 +00:00
<config>
<Kp> <!-- Approach Autothrust -->
<condition>
<and>
<less-than>
<property>/position/gear-agl-ft</property>
<value>3200</value>
</less-than>
<greater-than-equals>
<property>/controls/flight/flaps-input</property>
<value>1</value>
</greater-than-equals>
</and>
</condition>
<value>0.06</value>
</Kp>
2019-10-14 16:48:35 +00:00
<Kp>0.055</Kp>
<Ti>9.0</Ti>
<Td>0.00001</Td>
2021-04-23 22:53:11 +00:00
<u_min>/fdm/jsbsim/fadec/limit/idle-norm</u_min>
<u_max>/fdm/jsbsim/fadec/athr/max</u_max>
2019-10-14 16:48:35 +00:00
</config>
</pid-controller>
<pid-controller>
2020-07-08 20:14:55 +00:00
<name>IT-CONTROLLER: Mach</name>
2019-10-14 16:48:35 +00:00
<enable>
<condition>
<and>
<equals>
2021-04-23 22:53:11 +00:00
<property>/fdm/jsbsim/fadec/athr/active</property>
2019-10-14 16:48:35 +00:00
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
2019-10-14 16:48:35 +00:00
</and>
</condition>
</enable>
<input>
<property>/it-autoflight/internal/current-mach-input</property>
2020-07-08 20:14:55 +00:00
<scale>1000</scale>
2019-10-14 16:48:35 +00:00
</input>
<reference>
2020-07-08 20:14:55 +00:00
<property>/it-autoflight/internal/athr-mach</property>
<scale>1000</scale>
2019-10-14 16:48:35 +00:00
</reference>
2021-04-23 22:53:11 +00:00
<output>/fdm/jsbsim/fadec/athr/cmd</output>
2019-10-14 16:48:35 +00:00
<config>
<Kp> <!-- Approach Autothrust -->
<condition>
<and>
<less-than>
<property>/position/gear-agl-ft</property>
<value>3200</value>
</less-than>
<greater-than-equals>
<property>/controls/flight/flaps-input</property>
<value>1</value>
</greater-than-equals>
</and>
</condition>
<value>0.06</value>
</Kp>
2019-10-14 16:48:35 +00:00
<Kp>0.055</Kp>
<Ti>9.0</Ti>
<Td>0.00001</Td>
2021-04-23 22:53:11 +00:00
<u_min>/fdm/jsbsim/fadec/limit/idle-norm</u_min>
<u_max>/fdm/jsbsim/fadec/athr/max</u_max>
2019-10-14 16:48:35 +00:00
</config>
</pid-controller>
<filter>
2020-07-08 20:14:55 +00:00
<name>IT-CONTROLLER: Idle Limit</name>
2019-10-14 16:48:35 +00:00
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<and>
<equals>
2021-04-23 22:53:11 +00:00
<property>/fdm/jsbsim/fadec/athr/active</property>
2019-10-14 16:48:35 +00:00
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>1</value>
</equals>
</and>
</condition>
</enable>
2020-07-08 20:14:55 +00:00
<input>0</input>
2021-04-23 22:53:11 +00:00
<output>/fdm/jsbsim/fadec/athr/cmd</output>
2019-10-14 16:48:35 +00:00
</filter>
<filter>
2020-07-08 20:14:55 +00:00
<name>IT-CONTROLLER: Thrust Limit</name>
2019-10-14 16:48:35 +00:00
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<and>
<equals>
2021-04-23 22:53:11 +00:00
<property>/fdm/jsbsim/fadec/athr/active</property>
2019-10-14 16:48:35 +00:00
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>2</value>
</equals>
</and>
</condition>
</enable>
2020-07-08 20:14:55 +00:00
<input>1</input>
2021-04-23 22:53:11 +00:00
<output>/fdm/jsbsim/fadec/athr/cmd</output>
</filter>
<filter>
<name>System Command: Throttle Inactive Sync</name>
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<not-equals>
<property>/fdm/jsbsim/fadec/athr/active</property>
<value>1</value>
</not-equals>
</condition>
</enable>
<input>/fdm/jsbsim/fadec/athr/max</input> <!-- Highest throttle -->
<output>/fdm/jsbsim/fadec/athr/cmd</output>
2019-10-14 16:48:35 +00:00
</filter>
</PropertyList>