307 lines
7.5 KiB
XML
307 lines
7.5 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- IT-AUTOFLIGHT: AUTOTHRUST -->
|
|
<!-- Copyright (c) 2020 Joshua Davidson (Octal450) -->
|
|
|
|
<PropertyList>
|
|
|
|
<filter>
|
|
<name>A/THR Knots 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/kts</input>
|
|
<output>/it-autoflight/internal/athr-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>
|
|
<equals>
|
|
<property>/it-autoflight/output/athr</property>
|
|
<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 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/athr-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>
|
|
<equals>
|
|
<property>/it-autoflight/output/athr</property>
|
|
<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>
|
|
<value>0.08</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>2</max-rate-of-change>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: Knots</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/athr</property>
|
|
<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>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
|
|
<reference>/it-autoflight/internal/athr-kts</reference>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
<config>
|
|
<Kp>0.06</Kp>
|
|
<Ti>9.0</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>/it-autoflight/settings/autothrottle-min</u_min>
|
|
<u_max>/it-autoflight/settings/autothrottle-max</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: Mach</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/athr</property>
|
|
<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>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
|
|
<scale>1000</scale>
|
|
</input>
|
|
<reference>
|
|
<property>/it-autoflight/internal/athr-mach</property>
|
|
<scale>1000</scale>
|
|
</reference>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
<config>
|
|
<Kp>0.06</Kp>
|
|
<Ti>9.0</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>/it-autoflight/settings/autothrottle-min</u_min>
|
|
<u_max>/it-autoflight/settings/autothrottle-max</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: Idle Limit</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/athr</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/mode/thr</property>
|
|
<value>RETARD</value>
|
|
</equals>
|
|
</condition>
|
|
<value>0</value>
|
|
</input>
|
|
<input>/it-autoflight/settings/autothrottle-min</input>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: Thrust Limit</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/athr</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/settings/autothrottle-max</input>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Throttle</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/athr</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>/controls/engines/throttle-cmd-pid</input>
|
|
<output>
|
|
<property>/controls/engines/engine[0]/throttle</property>
|
|
<property>/controls/engines/engine[1]/throttle</property>
|
|
<property>/controls/engines/engine[2]/throttle</property>
|
|
<property>/controls/engines/engine[3]/throttle</property>
|
|
<property>/controls/engines/engine[4]/throttle</property>
|
|
<property>/controls/engines/engine[5]/throttle</property>
|
|
<property>/controls/engines/engine[6]/throttle</property>
|
|
<property>/controls/engines/engine[7]/throttle</property>
|
|
</output>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/mode/thr</property>
|
|
<value>RETARD</value>
|
|
</equals>
|
|
<or>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
<value>0.3</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>0.05</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>0.3</max-rate-of-change>
|
|
</filter>
|
|
|
|
</PropertyList>
|