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/custom-autothrust.xml

517 lines
12 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<!-- IT-AUTOFLIGHT: AUTOTHRUST -->
<!-- Modified for A320 Custom Thrust Lever control system. -->
<PropertyList>
<!-- =============================================================== -->
<!-- Thrust Modes -->
<!-- =============================================================== -->
<!-- Engine 1 -->
<!-- Auto throttle -->
<pid-controller>
<name>IAS THR</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/airspeed-kt</property>
</input>
<reference>
<property>/it-autoflight/input/spd-kts</property>
</reference>
<output>
<property>/controls/engines/engine[0]/throttle-cmd</property>
</output>
<config>
<Kp>0.1</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.0</u_min>
<u_max>
<property>/controls/engines/engine[0]/throttle-man</property>
</u_max>
</config>
</pid-controller>
<!-- Auto throttle (Mach Hold)-->
<pid-controller>
<name>MACH THR</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/mach</property>
<scale>500.0</scale>
</input>
<reference>
<property>/it-autoflight/input/spd-mach</property>
<scale>500.0</scale>
</reference>
<output>
<property>/controls/engines/engine[0]/throttle-cmd</property>
</output>
<config>
<Kp>0.1</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.0</u_min>
<u_max>
<property>/controls/engines/engine[0]/throttle-man</property>
</u_max>
</config>
</pid-controller>
<!-- IDLE THR -->
<pid-controller>
<name>IDLE</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/airspeed-kt</property>
</input>
<reference>
<value>0</value>
</reference>
<output>
<property>/controls/engines/engine[0]/throttle-cmd</property>
</output>
<config>
<Kp>0.01</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.04</u_min>
<u_max>
<property>/controls/engines/engine[0]/throttle-man</property>
</u_max>
</config>
</pid-controller>
<!-- CLB THR -->
<pid-controller>
<name>CLB</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/airspeed-kt</property>
</input>
<reference>
<value>900</value>
</reference>
<output>
<property>/controls/engines/engine[0]/throttle-cmd</property>
</output>
<config>
<Kp>0.01</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.0</u_min>
<u_max>
<property>/controls/engines/engine[0]/throttle-man</property>
</u_max>
</config>
</pid-controller>
<!-- Engine 2 -->
<!-- Auto throttle -->
<pid-controller>
<name>IAS THR</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/airspeed-kt</property>
</input>
<reference>
<property>/it-autoflight/input/spd-kts</property>
</reference>
<output>
<property>/controls/engines/engine[1]/throttle-cmd</property>
</output>
<config>
<Kp>0.1</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.0</u_min>
<u_max>
<property>/controls/engines/engine[1]/throttle-man</property>
</u_max>
</config>
</pid-controller>
<!-- Auto throttle (Mach Hold)-->
<pid-controller>
<name>MACH THR</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/mach</property>
<scale>500.0</scale>
</input>
<reference>
<property>/it-autoflight/input/spd-mach</property>
<scale>500.0</scale>
</reference>
<output>
<property>/controls/engines/engine[1]/throttle-cmd</property>
</output>
<config>
<Kp>0.1</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.0</u_min>
<u_max>
<property>/controls/engines/engine[1]/throttle-man</property>
</u_max>
</config>
</pid-controller>
<!-- IDLE THR -->
<pid-controller>
<name>IDLE</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/airspeed-kt</property>
</input>
<reference>
<value>0</value>
</reference>
<output>
<property>/controls/engines/engine[1]/throttle-cmd</property>
</output>
<config>
<Kp>0.01</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.04</u_min>
<u_max>
<property>/controls/engines/engine[1]/throttle-man</property>
</u_max>
</config>
</pid-controller>
<!-- CLB THR -->
<pid-controller>
<name>CLB</name>
<debug>false</debug>
<enable>
<condition>
<and>
<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>
<equals>
<property>/it-autoflight/output/retard</property>
<value>0</value>
</equals>
</and>
</condition>
</enable>
<input>
<property>/velocities/airspeed-kt</property>
</input>
<reference>
<value>900</value>
</reference>
<output>
<property>/controls/engines/engine[1]/throttle-cmd</property>
</output>
<config>
<Kp>0.01</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>10.0</Ti>
<Td>0.00001</Td>
<u_min>0.0</u_min>
<u_max>
<property>/controls/engines/engine[1]/throttle-man</property>
</u_max>
</config>
</pid-controller>
</PropertyList>