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/fmgc-pitch.xml

690 lines
16 KiB
XML
Raw Normal View History

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 18:44:57 +00:00
<!-- IT-AUTOFLIGHT -->
2017-06-09 22:27:30 +00:00
<PropertyList>
2018-10-19 21:47:09 +00:00
<!-- Pitch Axis -->
2017-06-09 22:27:30 +00:00
<filter>
<name>ALTITUDE CAPTURE/HOLD</name>
<debug>false</debug>
<type>gain</type>
<gain>-5</gain>
2017-06-09 22:27:30 +00:00
<input>
2017-06-22 17:57:04 +00:00
<expression>
<sum>
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
<value>-2</value>
2017-06-22 17:57:04 +00:00
</sum>
</expression>
2017-06-09 22:27:30 +00:00
</input>
<reference>
2017-06-13 19:24:56 +00:00
<condition>
2018-10-19 22:19:40 +00:00
<equals>
2017-08-20 15:52:30 +00:00
<property>/it-autoflight/output/vert</property>
<value>8</value>
2018-10-19 22:19:40 +00:00
</equals>
2017-08-20 15:52:30 +00:00
</condition>
2017-06-13 19:24:56 +00:00
<property>/it-autoflight/internal/mng-alt</property>
</reference>
2018-10-19 22:19:40 +00:00
<reference>/it-autoflight/internal/alt</reference>
2018-10-19 21:45:13 +00:00
<output>/it-autoflight/internal/target-fpm</output>
<min>/it-autoflight/internal/min-vs</min>
<max>/it-autoflight/internal/max-vs</max>
2017-06-09 22:27:30 +00:00
</filter>
2018-10-19 21:47:09 +00:00
2017-06-09 22:27:30 +00:00
<pid-controller>
<name>FPA HOLD</name>
<debug>false</debug>
<enable>
<condition>
<and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</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/fpa</input>
<reference>/it-autoflight/input/fpa</reference>
<output>/it-autoflight/internal/target-fpm-d</output>
2017-06-09 22:27:30 +00:00
<config>
<Kp>
<expression>
<table>
2018-11-08 04:44:13 +00:00
<property>/fdm/jsbsim/velocities/vc-kts</property>
<entry><ind>140</ind><dep>120</dep></entry>
<entry><ind>360</ind><dep>340</dep></entry>
</table>
</expression>
</Kp>
<Ti>2.0</Ti>
<Td>0.002</Td>
<u_min>
<expression>
<dif>
<property>/it-autoflight/internal/vert-speed-fpm</property>
<value>2500</value>
</dif>
</expression>
</u_min>
<u_max>
<expression>
<sum>
<property>/it-autoflight/internal/vert-speed-fpm</property>
<value>2500</value>
</sum>
</expression>
</u_max>
2017-06-09 22:27:30 +00:00
</config>
</pid-controller>
<pid-controller>
<name>FLCH SPEED BY PITCH</name>
<debug>false</debug>
<enable>
<condition>
2018-07-25 12:37:44 +00:00
<and>
<or>
2017-06-13 19:24:56 +00:00
<equals>
<property>/it-autoflight/output/vert</property>
2018-07-25 12:37:44 +00:00
<value>4</value>
2017-06-13 19:24:56 +00:00
</equals>
<equals>
2018-07-25 12:37:44 +00:00
<property>/it-autoflight/output/vert</property>
<value>7</value>
2017-06-13 19:24:56 +00:00
</equals>
2018-07-25 12:37:44 +00:00
<and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>8</value>
</equals>
<equals>
<property>/it-autoflight/output/vert-mng</property>
<value>4</value>
</equals>
</and>
</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>
2017-06-09 22:27:30 +00:00
</condition>
</enable>
<input>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
</condition>
<property>/it-autoflight/internal/lookahead-15-sec-airspeed-kt</property>
</input>
<input>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
</condition>
<property>/it-autoflight/internal/lookahead-15-sec-mach</property>
2018-11-09 20:54:28 +00:00
<scale>750.0</scale>
2017-06-09 22:27:30 +00:00
</input>
<reference>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
</condition>
<property>/it-autoflight/internal/flch-kts</property>
</reference>
<reference>
<condition>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
</condition>
<property>/it-autoflight/internal/flch-mach</property>
2018-11-09 20:54:28 +00:00
<scale>750.0</scale>
2017-06-09 22:27:30 +00:00
</reference>
2018-10-19 21:45:13 +00:00
<output>/it-autoflight/internal/target-fpm-b</output>
2017-06-09 22:27:30 +00:00
<config>
<Kp>
<condition>
2017-06-13 19:24:56 +00:00
<not-equals>
2017-06-09 22:27:30 +00:00
<property>/it-autoflight/output/vert</property>
2017-06-13 19:24:56 +00:00
<value>7</value>
</not-equals>
2017-06-09 22:27:30 +00:00
</condition>
<value>-55</value>
2017-06-09 22:27:30 +00:00
</Kp>
<Kp>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>7</value>
</equals>
</condition>
<value>-60</value>
</Kp>
<Ti>2.5</Ti>
<Td>0.001</Td>
<u_min>
<condition>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>2</value>
</equals>
</condition>
<value>150</value>
</u_min>
<u_min>
<condition>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>1</value>
</equals>
</condition>
<expression>
<dif>
<property>/it-autoflight/internal/vert-speed-fpm</property>
<value>2500</value>
</dif>
</expression>
2017-06-09 22:27:30 +00:00
</u_min>
<u_max>
<condition>
<and>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>2</value>
</equals>
<and>
<equals>
<property>/gear/gear[1]/wow</property>
<value>0</value>
</equals>
<equals>
<property>/gear/gear[2]/wow</property>
<value>0</value>
</equals>
</and>
</and>
</condition>
<expression>
<sum>
<property>/it-autoflight/internal/vert-speed-fpm</property>
<value>2500</value>
</sum>
</expression>
2017-06-09 22:27:30 +00:00
</u_max>
<u_max>
<condition>
<and>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>2</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>1000</value>
</u_max>
<u_max>
<condition>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>1</value>
</equals>
</condition>
<value>-150</value>
</u_max>
<u_min>
<condition>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
</condition>
2018-07-25 12:48:11 +00:00
<expression>
<dif>
<property>/it-autoflight/internal/vert-speed-fpm</property>
<value>2500</value>
</dif>
</expression>
</u_min>
<u_max>
<condition>
<equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</equals>
</condition>
2018-07-25 12:48:11 +00:00
<expression>
<sum>
<property>/it-autoflight/internal/vert-speed-fpm</property>
<value>2500</value>
</sum>
</expression>
</u_max>
2017-06-09 22:27:30 +00:00
</config>
</pid-controller>
<filter>
<name>TARGET FPM</name>
<debug>false</debug>
<type>gain</type>
2017-11-27 15:19:44 +00:00
<gain>1.0</gain>
<input>
<condition>
<or>
<equals>
<property>/it-autoflight/output/vert</property>
<value>0</value>
</equals>
<and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>8</value>
</equals>
<equals>
<property>/it-autoflight/output/vert-mng</property>
<value>0</value>
</equals>
</and>
</or>
</condition>
<property>/it-autoflight/internal/target-fpm</property>
</input>
<input>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
</condition>
<property>/it-autoflight/input/vs</property>
</input>
<input>
<condition>
<or>
<equals>
<property>/it-autoflight/output/vert</property>
<value>4</value>
</equals>
<equals>
<property>/it-autoflight/output/vert</property>
<value>7</value>
</equals>
<and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>8</value>
</equals>
<equals>
<property>/it-autoflight/output/vert-mng</property>
<value>4</value>
</equals>
</and>
</or>
</condition>
<property>/it-autoflight/internal/target-fpm-b</property>
</input>
<input>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>6</value>
</equals>
</condition>
2017-10-05 01:01:25 +00:00
<property>/it-autoflight/internal/target-fpm-c2</property>
</input>
<input>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</condition>
<property>/it-autoflight/internal/target-fpm-d</property>
</input>
<input>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>2</value>
</equals>
</condition>
<property>/it-autoflight/internal/nav1-rate-of-climb-fpm</property>
</input>
<output>/it-autoflight/internal/target-common-fpm</output>
</filter>
2017-06-09 22:27:30 +00:00
<pid-controller>
<name>FPM HOLD</name>
<debug>false</debug>
<enable>
<condition>
<and>
<or>
<equals>
<property>/it-autoflight/output/vert</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/vert</property>
<value>2</value>
</equals>
<equals>
<property>/it-autoflight/output/vert</property>
<value>4</value>
</equals>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
2017-10-08 19:56:15 +00:00
<and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>6</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>
2017-06-09 22:27:30 +00:00
<equals>
<property>/it-autoflight/output/vert</property>
<value>7</value>
</equals>
2017-06-13 19:24:56 +00:00
<equals>
<property>/it-autoflight/output/vert</property>
<value>8</value>
</equals>
2017-06-09 22:27:30 +00:00
</or>
<or>
<equals>
<property>/it-autoflight/output/ap1</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/output/ap2</property>
<value>1</value>
</equals>
</or>
</and>
</condition>
</enable>
2018-10-19 21:45:13 +00:00
<input>/it-autoflight/internal/vert-speed-fpm</input>
2017-06-09 22:27:30 +00:00
<reference>
<condition>
2017-06-13 19:24:56 +00:00
<or>
<equals>
<property>/it-autoflight/output/vert</property>
<value>0</value>
</equals>
<and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>8</value>
</equals>
<equals>
<property>/it-autoflight/output/vert-mng</property>
<value>0</value>
</equals>
</and>
</or>
2017-06-09 22:27:30 +00:00
</condition>
<property>/it-autoflight/internal/target-fpm</property>
</reference>
<reference>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
</condition>
<property>/it-autoflight/internal/vs</property>
</reference>
<reference>
<condition>
<or>
<equals>
<property>/it-autoflight/output/vert</property>
<value>4</value>
</equals>
<equals>
<property>/it-autoflight/output/vert</property>
<value>7</value>
</equals>
2017-06-13 19:24:56 +00:00
<and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>8</value>
</equals>
<equals>
<property>/it-autoflight/output/vert-mng</property>
<value>4</value>
</equals>
</and>
2017-06-09 22:27:30 +00:00
</or>
</condition>
<property>/it-autoflight/internal/target-fpm-b</property>
</reference>
<reference>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>6</value>
</equals>
</condition>
<property>/it-autoflight/internal/target-fpm-c</property>
</reference>
<reference>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</condition>
<property>/it-autoflight/internal/target-fpm-d</property>
</reference>
2017-06-09 22:27:30 +00:00
<reference>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>2</value>
</equals>
</condition>
<property>/it-autoflight/internal/nav1-rate-of-climb-fpm</property>
</reference>
2018-10-19 21:45:13 +00:00
<output>/it-autoflight/internal/target-pitch-deg</output>
2017-06-09 22:27:30 +00:00
<config>
<Kp>
<condition>
<not-equals>
<property>/it-autoflight/output/vert</property>
<value>6</value>
</not-equals>
</condition>
<expression>
<table>
2018-11-15 19:09:26 +00:00
<property>/fdm/jsbsim/velocities/vc-kts</property>
<entry><ind>140</ind><dep>0.0029</dep></entry>
<entry><ind>360</ind><dep>0.0009</dep></entry>
</table>
</expression>
2017-06-09 22:27:30 +00:00
</Kp>
<Kp>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>6</value>
</equals>
</condition>
2017-12-17 22:57:32 +00:00
<value>0.0055</value>
2017-06-09 22:27:30 +00:00
</Kp>
<Ti>2.5</Ti>
2017-06-09 22:27:30 +00:00
<Td>0.0001</Td>
<u_min>
<condition>
<not-equals>
<property>/it-autoflight/output/vert</property>
<value>6</value>
</not-equals>
</condition>
<expression>
<max>
<dif>
<property>/orientation/pitch-deg</property>
<value>5</value>
</dif>
<value>-10</value>
</max>
</expression>
2017-06-09 22:27:30 +00:00
</u_min>
<u_min>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>6</value>
</equals>
</condition>
<value>0</value>
</u_min>
<u_max>
<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>
<expression>
<min>
<sum>
<property>/orientation/pitch-deg</property>
<value>5</value>
</sum>
<value>30</value>
</min>
</expression>
2017-06-09 22:27:30 +00:00
</u_max>
<u_max>
<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>10</value>
</u_max>
</config>
</pid-controller>
<filter>
<name>PITCH DEG SYNC</name>
<debug>false</debug>
<type>gain</type>
<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>
</and>
</condition>
</enable>
<input>/orientation/pitch-deg</input>
<output>/it-autoflight/internal/target-pitch-deg</output>
<min>-15</min>
<max>30</max>
</filter>
2018-10-19 21:47:09 +00:00
<filter>
<name>System Command: Pitch Rate</name>
2017-06-09 22:27:30 +00:00
<debug>false</debug>
<type>gain</type>
2017-12-17 22:57:32 +00:00
<gain>0.15</gain>
2018-10-19 21:45:13 +00:00
<input>/orientation/pitch-deg</input>
<reference>/it-autoflight/internal/target-pitch-deg</reference>
<output>/fdm/jsbsim/fbw/fmgc/pitch-cmd</output> <!-- Inputs to the FBW Pitch -->
2017-12-17 22:57:32 +00:00
<min>-0.3</min>
<max>0.3</max>
</filter>
2017-06-09 22:27:30 +00:00
</PropertyList>