2017-06-09 22:27:30 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
2019-01-01 06:03:06 +00:00
|
|
|
<!-- Copyright (c) 2019 Joshua Davidson (it0uchpods) -->
|
2017-07-13 17:30:33 +00:00
|
|
|
|
2017-07-13 18:44:57 +00:00
|
|
|
<!-- IT-AUTOFLIGHT -->
|
|
|
|
|
2017-06-09 22:27:30 +00:00
|
|
|
<PropertyList>
|
2018-10-19 21:47:09 +00:00
|
|
|
|
|
|
|
<!-- Roll Axis -->
|
|
|
|
|
2017-06-09 22:27:30 +00:00
|
|
|
<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>
|
2018-10-19 21:45:13 +00:00
|
|
|
<input>/it-autoflight/internal/heading-error-deg</input>
|
|
|
|
<reference>0</reference>
|
|
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
2017-06-09 22:27:30 +00:00
|
|
|
<config>
|
2018-11-08 04:45:08 +00:00
|
|
|
<Kp>
|
|
|
|
<expression>
|
|
|
|
<table>
|
|
|
|
<property>/fdm/jsbsim/velocities/vc-kts</property>
|
|
|
|
<entry><ind>140</ind><dep>-1.8</dep></entry>
|
|
|
|
<entry><ind>360</ind><dep>-2.8</dep></entry>
|
|
|
|
</table>
|
|
|
|
</expression>
|
|
|
|
</Kp>
|
2017-12-17 22:57:32 +00:00
|
|
|
<Ki>-0.000001</Ki>
|
2017-06-09 22:27:30 +00:00
|
|
|
<min>
|
2017-06-19 19:44:00 +00:00
|
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
2018-10-20 22:13:48 +00:00
|
|
|
<scale>-1.0</scale>
|
2017-06-09 22:27:30 +00:00
|
|
|
</min>
|
2018-10-19 21:45:13 +00:00
|
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
2017-06-09 22:27:30 +00:00
|
|
|
</config>
|
|
|
|
</pi-simple-controller>
|
|
|
|
|
2017-06-20 18:56:14 +00:00
|
|
|
<pi-simple-controller>
|
2017-06-09 22:27:30 +00:00
|
|
|
<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>
|
2018-10-19 21:45:13 +00:00
|
|
|
<input>/it-autoflight/internal/nav-heading-error-deg</input>
|
|
|
|
<reference>0</reference>
|
|
|
|
<output>/it-autoflight/internal/target-roll-deg</output>
|
2017-06-09 22:27:30 +00:00
|
|
|
<config>
|
2017-12-17 22:57:32 +00:00
|
|
|
<Kp>-2.8</Kp>
|
2017-10-03 03:17:23 +00:00
|
|
|
<Ki>-0.0001</Ki>
|
2017-06-20 18:56:14 +00:00
|
|
|
<min>
|
2017-06-19 19:44:00 +00:00
|
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
2018-10-20 22:13:48 +00:00
|
|
|
<scale>-1.0</scale>
|
2017-06-20 18:56:14 +00:00
|
|
|
</min>
|
2018-10-19 21:45:13 +00:00
|
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
2017-06-09 22:27:30 +00:00
|
|
|
</config>
|
2017-06-20 18:56:14 +00:00
|
|
|
</pi-simple-controller>
|
2018-10-19 21:47:09 +00:00
|
|
|
|
2017-06-09 22:27:30 +00:00
|
|
|
<filter>
|
|
|
|
<name>ROLL DEG SYNC</name>
|
|
|
|
<debug>false</debug>
|
|
|
|
<type>gain</type>
|
2017-12-01 17:02:35 +00:00
|
|
|
<gain>1.0</gain>
|
2017-06-09 22:27:30 +00:00
|
|
|
<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>
|
2017-06-19 19:44:00 +00:00
|
|
|
<min>
|
|
|
|
<property>/it-autoflight/internal/bank-limit</property>
|
2018-10-20 22:13:48 +00:00
|
|
|
<scale>-1.0</scale>
|
2017-06-19 19:44:00 +00:00
|
|
|
</min>
|
2018-10-19 21:45:13 +00:00
|
|
|
<max>/it-autoflight/internal/bank-limit</max>
|
2017-06-09 22:27:30 +00:00
|
|
|
</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>
|
2018-10-19 21:45:13 +00:00
|
|
|
</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>
|
2018-10-19 23:00:51 +00:00
|
|
|
<max-rate-of-change>6</max-rate-of-change>
|
2018-10-19 21:45:13 +00:00
|
|
|
</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 -->
|
2017-12-21 00:18:06 +00:00
|
|
|
<min>-0.32</min>
|
|
|
|
<max>0.32</max>
|
2017-07-22 02:32:12 +00:00
|
|
|
</filter>
|
2017-06-09 22:27:30 +00:00
|
|
|
|
2018-10-19 21:47:09 +00:00
|
|
|
<!-- Yaw Axis -->
|
2017-06-09 22:27:30 +00:00
|
|
|
|
|
|
|
<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>
|
2018-10-19 21:45:13 +00:00
|
|
|
<input>/it-autoflight/internal/nav-heading-error-deg</input>
|
|
|
|
<reference>0</reference>
|
2017-06-09 22:27:30 +00:00
|
|
|
<output>/it-autoflight/internal/rudder-cmd</output>
|
|
|
|
<config>
|
|
|
|
<Kp>
|
2017-10-12 20:29:15 +00:00
|
|
|
<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>
|
2017-12-17 22:57:32 +00:00
|
|
|
<value>-0.05</value>
|
2017-06-09 22:27:30 +00:00
|
|
|
</Kp>
|
2018-10-20 17:03:31 +00:00
|
|
|
<Kp>-0.02</Kp>
|
2017-06-09 22:27:30 +00:00
|
|
|
<Ki>0</Ki>
|
|
|
|
</config>
|
2017-06-13 23:31:16 +00:00
|
|
|
<min>-0.15</min>
|
|
|
|
<max>0.15</max>
|
2017-06-09 22:27:30 +00:00
|
|
|
</pi-simple-controller>
|
|
|
|
|
|
|
|
<filter>
|
|
|
|
<name>IT-CONTROLLER: RUDDER CMD</name>
|
|
|
|
<debug>false</debug>
|
2018-10-19 21:45:13 +00:00
|
|
|
<type>noise-spike</type>
|
2017-06-09 22:27:30 +00:00
|
|
|
<feedback-if-disabled>true</feedback-if-disabled>
|
|
|
|
<initialize-to>output</initialize-to>
|
|
|
|
<input>
|
|
|
|
<condition>
|
2018-10-20 17:03:31 +00:00
|
|
|
<and>
|
|
|
|
<or>
|
|
|
|
<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/lat</property>
|
|
|
|
<value>4</value>
|
|
|
|
</equals>
|
|
|
|
</and>
|
2017-06-09 22:27:30 +00:00
|
|
|
</condition>
|
|
|
|
<property>/it-autoflight/internal/rudder-cmd</property>
|
|
|
|
</input>
|
2018-10-20 04:07:14 +00:00
|
|
|
<input>0</input>
|
2018-10-19 21:45:13 +00:00
|
|
|
<output>/fdm/jsbsim/fbw/fmgc/yaw-cmd</output> <!-- Inputs to the FBW Yaw -->
|
2017-06-13 00:44:24 +00:00
|
|
|
<max-rate-of-change>0.6</max-rate-of-change>
|
2017-06-09 22:27:30 +00:00
|
|
|
</filter>
|
|
|
|
|
|
|
|
</PropertyList>
|