294 lines
6.8 KiB
XML
294 lines
6.8 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
##############################################
|
|
# Copyright (c) Joshua Davidson (it0uchpods) #
|
|
##############################################
|
|
-->
|
|
|
|
<!-- IT-AUTOFLIGHT -->
|
|
|
|
<PropertyList>
|
|
|
|
<!-- Roll Axis -->
|
|
|
|
<pi-simple-controller>
|
|
<name>ROLL CONTROLLER: HDG/LNAV</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>0</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/internal/heading-error-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
|
<config>
|
|
<Kp>-1.8</Kp>
|
|
<Ki>-0.000001</Ki>
|
|
<min>
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
|
<scale>-1</scale>
|
|
</min>
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
|
</config>
|
|
</pi-simple-controller>
|
|
|
|
<pi-simple-controller>
|
|
<name>VORLOC TRK</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/internal/nav-heading-error-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
|
<config>
|
|
<Kp>-2.8</Kp>
|
|
<Ki>-0.0001</Ki>
|
|
<min>
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
|
<scale>-1</scale>
|
|
</min>
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
|
</config>
|
|
</pi-simple-controller>
|
|
|
|
<filter>
|
|
<name>ROLL DEG SYNC</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>1.0</gain>
|
|
<enable>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
</enable>
|
|
<input>/orientation/roll-deg</input>
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
|
<min>
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
|
<scale>-1</scale>
|
|
</min>
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: TARGET ROLL CMD</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<input>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>5</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>0</value>
|
|
</input>
|
|
<input>/it-autoflight/internal/target-roll-deg</input>
|
|
<output>/it-autoflight/internal/target-roll</output>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/fd2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>50</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>
|
|
<condition>
|
|
<and>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap1</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
<not-equals>
|
|
<property>/it-autoflight/output/ap2</property>
|
|
<value>1</value>
|
|
</not-equals>
|
|
</and>
|
|
</condition>
|
|
<value>15</value>
|
|
</max-rate-of-change>
|
|
<max-rate-of-change>6</max-rate-of-change>
|
|
</filter>
|
|
|
|
<filter>
|
|
<name>System Command: Roll Rate</name>
|
|
<debug>false</debug>
|
|
<type>gain</type>
|
|
<gain>-0.1</gain>
|
|
<input>/orientation/roll-deg</input>
|
|
<reference>/it-autoflight/internal/target-roll</reference>
|
|
<output>/fdm/jsbsim/fbw/fmgc/roll-cmd</output> <!-- Inputs to the FBW Roll -->
|
|
<min>-0.32</min>
|
|
<max>0.32</max>
|
|
</filter>
|
|
|
|
<!-- Yaw Axis -->
|
|
|
|
<pi-simple-controller>
|
|
<name>RUDDER VORLOC TRK</name>
|
|
<debug>false</debug>
|
|
<enable>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
</enable>
|
|
<input>/it-autoflight/internal/nav-heading-error-deg</input>
|
|
<reference>0</reference>
|
|
<output>/it-autoflight/internal/rudder-cmd</output>
|
|
<config>
|
|
<Kp>
|
|
<condition>
|
|
<and>
|
|
<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.05</value>
|
|
</Kp>
|
|
<Kp>
|
|
<condition>
|
|
<or>
|
|
<equals>
|
|
<property>/gear/gear[1]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/gear/gear[2]/wow</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</or>
|
|
</condition>
|
|
<value>-0.02</value>
|
|
</Kp>
|
|
<Ki>0</Ki>
|
|
</config>
|
|
<min>-0.15</min>
|
|
<max>0.15</max>
|
|
</pi-simple-controller>
|
|
|
|
<filter>
|
|
<name>IT-CONTROLLER: RUDDER CMD</name>
|
|
<debug>false</debug>
|
|
<type>noise-spike</type>
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
<initialize-to>output</initialize-to>
|
|
<input>
|
|
<condition>
|
|
<equals>
|
|
<property>/it-autoflight/output/lat</property>
|
|
<value>4</value>
|
|
</equals>
|
|
</condition>
|
|
<property>/it-autoflight/internal/rudder-cmd</property>
|
|
</input>
|
|
<input>0</input>
|
|
<output>/fdm/jsbsim/fbw/fmgc/yaw-cmd</output> <!-- Inputs to the FBW Yaw -->
|
|
<max-rate-of-change>0.6</max-rate-of-change>
|
|
</filter>
|
|
|
|
</PropertyList>
|