279 lines
6.6 KiB
XML
279 lines
6.6 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- IT-AUTOFLIGHT: AUTOTHRUST -->
|
|
<!-- Copyright (c) 2019 Joshua Davidson (it0uchpods) -->
|
|
|
|
<PropertyList>
|
|
|
|
<!-- Thrust Axis -->
|
|
|
|
<filter>
|
|
<name>KTS 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/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>
|
|
<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>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/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>
|
|
<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.1</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>2</max-rate-of-change>
|
|
</filter>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: IAS THRUST</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/kts</reference>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
<config>
|
|
<Kp>0.06</Kp>
|
|
<Ti>9.0</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>0.02</u_min>
|
|
<u_max>0.95</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<pid-controller>
|
|
<name>IT-CONTROLLER: MACH THRUST</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.0</scale>
|
|
</input>
|
|
<reference>
|
|
<property>/it-autoflight/internal/mach</property>
|
|
<scale>1000.0</scale>
|
|
</reference>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
<config>
|
|
<Kp>0.06</Kp>
|
|
<Ti>9.0</Ti>
|
|
<Td>0.00001</Td>
|
|
<u_min>0.02</u_min>
|
|
<u_max>0.95</u_max>
|
|
</config>
|
|
</pid-controller>
|
|
|
|
<filter>
|
|
<name>IDLE</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.0</value>
|
|
</input>
|
|
<input>0.02</input>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>CLB</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>0.95</input>
|
|
<output>/controls/engines/throttle-cmd-pid</output>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: THRUST CMD</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/output/thr-mode</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/mode/thr</property>
|
|
<value>RETARD</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>0.20</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/thr-mode</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/mode/thr</property>
|
|
<value>RETARD</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>0.05</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/mode/thr</property>
|
|
<value>RETARD</value>
|
|
</equals>
|
|
</condition>
|
|
<value>0.10</value>
|
|
</max-rate-of-change>
|
|
</filter>
|
|
|
|
</PropertyList>
|