This repository has been archived on 2021-09-26. You can view files and clone it, but cannot push or open issues or pull requests.
IDG-A32X/Systems/fmgc-thrust.xml

659 lines
16 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
2018-12-20 01:55:02 +00:00
<!-- Copyright (c) 2018 Joshua Davidson (it0uchpods) -->
<PropertyList>
2018-10-19 21:45:13 +00:00
<!-- Thrust Axis -->
<filter>
<name>KTS INPUT FILTER</name>
<debug>false</debug>
2018-10-19 21:45:13 +00:00
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to>
2018-10-19 21:45:13 +00:00
<input>/it-autoflight/input/spd-kts</input>
<output>/it-autoflight/internal/kts</output>
<max-rate-of-change>
<condition>
<and>
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
2018-10-20 02:51:38 +00:00
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
2018-10-19 21:45:13 +00:00
<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>
2018-10-19 21:45:13 +00:00
<max-rate-of-change>200</max-rate-of-change>
</filter>
<filter>
<name>MACH INPUT FILTER</name>
<debug>false</debug>
2018-10-19 21:45:13 +00:00
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to>
2018-10-19 21:45:13 +00:00
<input>/it-autoflight/input/spd-mach</input>
<output>/it-autoflight/internal/mach</output>
<max-rate-of-change>
<condition>
<and>
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
2018-10-20 02:51:38 +00:00
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
2018-10-19 21:45:13 +00:00
<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.1</value>
</max-rate-of-change>
2018-10-19 21:45:13 +00:00
<max-rate-of-change>2</max-rate-of-change>
</filter>
<filter>
<name>Throttle Comparator</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression>
<max>
<property>/controls/engines/engine[0]/throttle-man</property>
<property>/controls/engines/engine[1]/throttle-man</property>
</max>
</expression>
</input>
<output>/controls/engines/throttle-pid-max</output>
</filter>
2017-12-03 01:40:00 +00:00
<pid-controller>
2017-12-03 01:40:00 +00:00
<name>IT-CONTROLLER: IAS THRUST</name>
<debug>false</debug>
<enable>
<condition>
<and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<or>
<and>
<equals>
<property>/it-autoflight/output/fd1</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/fd2</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/ap1</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/ap2</property>
<value>0</value>
</equals>
</and>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
</or>
2017-12-03 01:40:00 +00:00
<or>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<equals>
<property>/systems/thrust/lim-flex</property>
<value>0</value>
</equals>
<or>
<equals>
<property>/systems/thrust/state1</property>
<value>MCT</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MCT</value>
</equals>
</or>
</and>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<or>
<and>
<less-than>
<property>/controls/engines/engine[0]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state1</property>
<value>MAN THR</value>
</equals>
</and>
<and>
<less-than>
<property>/controls/engines/engine[1]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN THR</value>
</equals>
</and>
</or>
</and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/systems/thrust/state1</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state1</property>
<value>CL</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>CL</value>
</equals>
</or>
</and>
</condition>
</enable>
2018-10-19 21:45:13 +00:00
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
<reference>/it-autoflight/internal/kts</reference>
<output>/controls/engines/throttle-cmd-pid</output>
<config>
2017-11-29 17:05:20 +00:00
<Kp>0.055</Kp>
<Ti>9.0</Ti>
<Td>0.00001</Td>
2018-10-19 21:45:13 +00:00
<u_min>/controls/engines/idle-limit</u_min>
<u_max>/controls/engines/throttle-pid-max</u_max>
</config>
</pid-controller>
2017-12-03 01:40:00 +00:00
<pid-controller>
2017-12-03 01:40:00 +00:00
<name>IT-CONTROLLER: MACH THRUST</name>
<debug>false</debug>
<enable>
<condition>
<and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
<or>
<and>
<equals>
<property>/it-autoflight/output/fd1</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/fd2</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/ap1</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/ap2</property>
<value>0</value>
</equals>
</and>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
</or>
2017-12-03 01:40:00 +00:00
<or>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<equals>
<property>/systems/thrust/lim-flex</property>
<value>0</value>
</equals>
<or>
<equals>
<property>/systems/thrust/state1</property>
<value>MCT</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MCT</value>
</equals>
</or>
</and>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<or>
<and>
<less-than>
<property>/controls/engines/engine[0]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state1</property>
<value>MAN THR</value>
</equals>
</and>
<and>
<less-than>
<property>/controls/engines/engine[1]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN THR</value>
</equals>
</and>
</or>
</and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/systems/thrust/state1</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state1</property>
<value>CL</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>CL</value>
</equals>
</or>
</and>
</condition>
</enable>
<input>
2017-09-04 03:42:22 +00:00
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
<scale>1000.0</scale>
</input>
<reference>
<property>/it-autoflight/internal/mach</property>
<scale>1000.0</scale>
</reference>
2018-10-19 21:45:13 +00:00
<output>/controls/engines/throttle-cmd-pid</output>
<config>
2017-11-29 17:05:20 +00:00
<Kp>0.055</Kp>
<Ti>9.0</Ti>
<Td>0.00001</Td>
2018-10-19 21:45:13 +00:00
<u_min>/controls/engines/idle-limit</u_min>
<u_max>/controls/engines/throttle-pid-max</u_max>
</config>
</pid-controller>
2017-12-03 01:40:00 +00:00
2017-11-12 02:59:16 +00:00
<filter>
2017-12-03 01:40:00 +00:00
<name>IT-CONTROLLER: IDLE THRUST</name>
<debug>false</debug>
2017-11-12 02:59:16 +00:00
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
<or>
<equals>
<property>/it-autoflight/output/fd1</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/fd2</property>
<value>1</value>
</equals>
<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/thr-mode</property>
<value>1</value>
</equals>
2017-12-03 01:40:00 +00:00
<or>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<equals>
<property>/systems/thrust/lim-flex</property>
<value>0</value>
</equals>
<or>
<equals>
<property>/systems/thrust/state1</property>
<value>MCT</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MCT</value>
</equals>
</or>
</and>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<or>
<and>
<less-than>
<property>/controls/engines/engine[0]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state1</property>
<value>MAN THR</value>
</equals>
</and>
<and>
<less-than>
<property>/controls/engines/engine[1]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN THR</value>
</equals>
</and>
</or>
</and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/systems/thrust/state1</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state1</property>
<value>CL</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>CL</value>
</equals>
</or>
</and>
</condition>
</enable>
2018-10-19 21:45:13 +00:00
<input>0.0</input>
<output>/controls/engines/throttle-cmd-pid</output>
2017-11-12 02:59:16 +00:00
</filter>
2017-12-03 01:40:00 +00:00
2017-11-12 02:59:16 +00:00
<filter>
2017-12-03 01:40:00 +00:00
<name>IT-CONTROLLER: LIMIT THRUST</name>
<debug>false</debug>
2017-11-12 02:59:16 +00:00
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
<or>
<equals>
<property>/it-autoflight/output/fd1</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/fd2</property>
<value>1</value>
</equals>
<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/thr-mode</property>
<value>2</value>
</equals>
2017-12-03 01:40:00 +00:00
<or>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<equals>
<property>/systems/thrust/lim-flex</property>
<value>0</value>
</equals>
<or>
<equals>
<property>/systems/thrust/state1</property>
<value>MCT</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MCT</value>
</equals>
</or>
</and>
<and>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<or>
<and>
<less-than>
<property>/controls/engines/engine[0]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state1</property>
<value>MAN THR</value>
</equals>
</and>
<and>
<less-than>
<property>/controls/engines/engine[1]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN THR</value>
</equals>
</and>
</or>
</and>
2017-12-03 01:40:00 +00:00
<equals>
<property>/systems/thrust/state1</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state1</property>
<value>CL</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>CL</value>
</equals>
</or>
</and>
</condition>
</enable>
2018-10-19 21:45:13 +00:00
<input>1.0</input>
<output>/controls/engines/throttle-cmd-pid</output>
2017-11-12 02:59:16 +00:00
</filter>
2017-12-03 01:40:00 +00:00
<filter>
<name>IT-CONTROLLER: FEEDBACK IF DISABLED</name>
<debug>false</debug>
<type>gain</type>
<gain>1.0</gain>
<enable>
<condition>
<or>
<equals>
<property>/it-autoflight/output/athr</property>
<value>0</value>
</equals>
<and>
<not>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<equals>
<property>/systems/thrust/lim-flex</property>
<value>0</value>
</equals>
<or>
<equals>
<property>/systems/thrust/state1</property>
<value>MCT</value>
</equals>
<equals>
<property>/systems/thrust/state2</property>
<value>MCT</value>
</equals>
</or>
</not>
<not>
<equals>
<property>/systems/thrust/eng-out</property>
<value>1</value>
</equals>
<or>
<and>
<less-than>
<property>/controls/engines/engine[0]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state1</property>
<value>MAN THR</value>
</equals>
</and>
<and>
<less-than>
<property>/controls/engines/engine[1]/throttle-pos</property>
<value>0.83</value>
</less-than>
<equals>
<property>/systems/thrust/state2</property>
<value>MAN THR</value>
</equals>
</and>
</or>
</not>
2017-12-03 01:40:00 +00:00
<not-equals>
<property>/systems/thrust/state1</property>
<value>MAN</value>
</not-equals>
<not-equals>
<property>/systems/thrust/state1</property>
<value>CL</value>
</not-equals>
<not-equals>
<property>/systems/thrust/state2</property>
<value>MAN</value>
</not-equals>
<not-equals>
<property>/systems/thrust/state2</property>
<value>CL</value>
</not-equals>
</and>
</or>
</condition>
</enable>
<input>
<condition>
<and>
<not-equals>
<property>/systems/thrust/state1</property>
<value>IDLE</value>
</not-equals>
<not-equals>
<property>/systems/thrust/state2</property>
<value>IDLE</value>
</not-equals>
</and>
</condition>
2018-10-19 21:45:13 +00:00
<value>1.0</value>
2017-12-03 01:40:00 +00:00
</input>
2018-10-19 21:45:13 +00:00
<input>0.0</input>
<output>/controls/engines/throttle-cmd-pid</output>
2017-07-02 03:17:30 +00:00
</filter>
</PropertyList>