Merge branch 'master' into dome-light

This commit is contained in:
Jonathan Redpath 2018-10-23 14:44:19 +01:00
commit b1589fff02
12 changed files with 503 additions and 981 deletions

View file

@ -717,6 +717,13 @@
</services> </services>
<systems> <systems>
<electrical n="0">
<bus n="0">
<dc-ess>0</dc-ess>
<dc1>0</dc1>
<dc2>0</dc2>
</bus>
</electrical>
<failures n="0"> <failures n="0">
<aileron-left type="bool">0</aileron-left> <aileron-left type="bool">0</aileron-left>
<aileron-right type="bool">0</aileron-right> <aileron-right type="bool">0</aileron-right>

View file

@ -8,7 +8,7 @@
<PropertyList> <PropertyList>
<path>res/Radio1.ac</path> <path>res/Radio.ac</path>
<!-- On Switch --> <!-- On Switch -->
<animation> <animation>
@ -1027,48 +1027,10 @@
<property>controls/radio/rmp[0]/on</property> <property>controls/radio/rmp[0]/on</property>
<value>1</value> <value>1</value>
</equals> </equals>
<or> <equals>
<equals> <property>systems/radio/rmp[0]/sel-light</property>
<property>systems/radio/rmp[0]/sel_chan</property> <value>1</value>
<value type="string">vhf2</value> </equals>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">hf1</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">hf2</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf1</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">hf1</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">hf2</value>
</equals>
<equals>
<property>systems/radio/rmp[2]/sel_chan</property>
<value type="string">vhf1</value>
</equals>
<equals>
<property>systems/radio/rmp[2]/sel_chan</property>
<value type="string">vhf2</value>
</equals>
</or>
</and> </and>
</or> </or>
</condition> </condition>
@ -1390,18 +1352,6 @@
<property>systems/electrical/bus/dc-ess</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<not>
<and>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>instrumentation/comm[2]/frequencies/selected-mhz</property>
<value>0</value>
</equals>
</and>
</not>
</and> </and>
</condition> </condition>
</animation> </animation>
@ -1431,61 +1381,6 @@
</font-resolution> </font-resolution>
</text> </text>
<!-- VHF3 Data Mode-->
<animation>
<type>select</type>
<object-name>rmp-active-vhf3-data</object-name>
<condition>
<and>
<not-equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</not-equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>instrumentation/comm[2]/frequencies/selected-mhz</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<text>
<name>rmp-active-vhf3-data</name>
<offsets>
<x-m>-0.23205</x-m>
<y-m>-0.21625</y-m>
<z-m>-0.12582</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">data</format>
<property>autopilot/servicable</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Test Illumination--> <!-- Test Illumination-->
<animation> <animation>
<type>select</type> <type>select</type>
@ -1541,18 +1436,6 @@
<property>systems/electrical/bus/dc-ess</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<not>
<and>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</and>
</not>
</and> </and>
</condition> </condition>
</animation> </animation>
@ -1582,61 +1465,6 @@
</font-resolution> </font-resolution>
</text> </text>
<!-- VHF3 Data Mode-->
<animation>
<type>select</type>
<object-name>rmp-standby-vhf3-data</object-name>
<condition>
<and>
<not-equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</not-equals>
<equals>
<property>controls/radio/rmp[0]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/vhf3-standby</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<text>
<name>rmp-standby-vhf3-data</name>
<offsets>
<x-m>-0.23205</x-m>
<y-m>-0.14896</y-m>
<z-m>-0.12582</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">data</format>
<property>autopilot/servicable</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Test Illumination--> <!-- Test Illumination-->
<animation> <animation>
<type>select</type> <type>select</type>
@ -1679,10 +1507,8 @@
<type>material</type> <type>material</type>
<object-name>rmp-active</object-name> <object-name>rmp-active</object-name>
<object-name>rmp-active-test</object-name> <object-name>rmp-active-test</object-name>
<object-name>rmp-active-vhf3-data</object-name>
<object-name>rmp-standby</object-name> <object-name>rmp-standby</object-name>
<object-name>rmp-standby-test</object-name> <object-name>rmp-standby-test</object-name>
<object-name>rmp-standby-vhf3-data</object-name>
<diffuse> <diffuse>
<red>0.89</red> <red>0.89</red>
<green>0.37</green> <green>0.37</green>

View file

@ -8,7 +8,7 @@
<PropertyList> <PropertyList>
<path>res/Radio1.ac</path> <path>res/Radio.ac</path>
<!-- On Switch --> <!-- On Switch -->
<animation> <animation>
@ -56,7 +56,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -83,7 +83,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -110,7 +110,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -137,7 +137,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -164,7 +164,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -190,7 +190,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -222,11 +222,11 @@
<repeatable>true</repeatable> <repeatable>true</repeatable>
<binding> <binding>
<command>nasal</command> <command>nasal</command>
<script>rmp.transfer(2);</script> <script>rmp.transfer(1);</script>
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -253,7 +253,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -280,7 +280,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -307,7 +307,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -329,9 +329,9 @@
<command>property-adjust</command> <command>property-adjust</command>
<property>systems/radio/rmp[1]/vhf3-standby</property> <property>systems/radio/rmp[1]/vhf3-standby</property>
<step>0.025</step> <step>0.025</step>
<resolution>0.025</resolution>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
<resolution>0.025</resolution>
<wrap>true</wrap> <wrap>true</wrap>
<mask>decimal</mask> <mask>decimal</mask>
</binding> </binding>
@ -340,7 +340,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -365,7 +365,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -396,7 +396,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -423,7 +423,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -439,9 +439,9 @@
<command>property-adjust</command> <command>property-adjust</command>
<property>systems/radio/rmp[1]/vhf2-standby</property> <property>systems/radio/rmp[1]/vhf2-standby</property>
<step>-0.025</step> <step>-0.025</step>
<resolution>0.025</resolution>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
<resolution>0.025</resolution>
<wrap>true</wrap> <wrap>true</wrap>
<mask>decimal</mask> <mask>decimal</mask>
</binding> </binding>
@ -450,7 +450,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -472,9 +472,9 @@
<command>property-adjust</command> <command>property-adjust</command>
<property>systems/radio/rmp[1]/vhf3-standby</property> <property>systems/radio/rmp[1]/vhf3-standby</property>
<step>-0.025</step> <step>-0.025</step>
<resolution>0.025</resolution>
<min>0.0</min> <min>0.0</min>
<max>1.0</max> <max>1.0</max>
<resolution>0.025</resolution>
<wrap>true</wrap> <wrap>true</wrap>
<mask>decimal</mask> <mask>decimal</mask>
</binding> </binding>
@ -483,7 +483,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -508,7 +508,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -543,7 +543,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -569,7 +569,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -595,7 +595,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -627,7 +627,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -653,7 +653,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -685,7 +685,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -711,7 +711,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -737,7 +737,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -769,7 +769,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -795,7 +795,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -867,7 +867,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -898,7 +898,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -928,7 +928,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -958,7 +958,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -987,7 +987,7 @@
<condition> <condition>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1020,55 +1020,17 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
<property>controls/radio/rmp[1]/on</property> <property>controls/radio/rmp[1]/on</property>
<value>1</value> <value>1</value>
</equals> </equals>
<or> <equals>
<equals> <property>systems/radio/rmp[1]/sel-light</property>
<property>systems/radio/rmp[0]/sel_chan</property> <value>1</value>
<value type="string">vhf2</value> </equals>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">hf1</value>
</equals>
<equals>
<property>systems/radio/rmp[0]/sel_chan</property>
<value type="string">hf2</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf1</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">hf1</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">hf2</value>
</equals>
<equals>
<property>systems/radio/rmp[2]/sel_chan</property>
<value type="string">vhf1</value>
</equals>
<equals>
<property>systems/radio/rmp[2]/sel_chan</property>
<value type="string">vhf2</value>
</equals>
</or>
</and> </and>
</or> </or>
</condition> </condition>
@ -1086,7 +1048,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1113,7 +1075,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1140,7 +1102,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1167,7 +1129,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1194,7 +1156,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1221,7 +1183,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1248,7 +1210,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1275,7 +1237,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1302,7 +1264,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1329,7 +1291,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1356,7 +1318,7 @@
</equals> </equals>
<and> <and>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<equals> <equals>
@ -1387,21 +1349,9 @@
<value>1</value> <value>1</value>
</equals> </equals>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<not>
<and>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>instrumentation/comm[2]/frequencies/selected-mhz</property>
<value>0</value>
</equals>
</and>
</not>
</and> </and>
</condition> </condition>
</animation> </animation>
@ -1431,61 +1381,6 @@
</font-resolution> </font-resolution>
</text> </text>
<!-- VHF3 Data Mode-->
<animation>
<type>select</type>
<object-name>rmp-active-vhf3-data</object-name>
<condition>
<and>
<not-equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</not-equals>
<equals>
<property>controls/radio/rmp[1]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc2</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>instrumentation/comm[2]/frequencies/selected-mhz</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<text>
<name>rmp-active-vhf3-data</name>
<offsets>
<x-m>-0.23205</x-m>
<y-m>-0.21625</y-m>
<z-m>-0.12582</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">data</format>
<property>autopilot/servicable</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Test Illumination--> <!-- Test Illumination-->
<animation> <animation>
<type>select</type> <type>select</type>
@ -1538,21 +1433,9 @@
<value>1</value> <value>1</value>
</equals> </equals>
<greater-than-equals> <greater-than-equals>
<property>systems/electrical/bus/dc2</property> <property>systems/electrical/bus/dc-ess</property>
<value>25</value> <value>25</value>
</greater-than-equals> </greater-than-equals>
<not>
<and>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/vhf3-standby</property>
<value>0</value>
</equals>
</and>
</not>
</and> </and>
</condition> </condition>
</animation> </animation>
@ -1582,61 +1465,6 @@
</font-resolution> </font-resolution>
</text> </text>
<!-- VHF3 Data Mode-->
<animation>
<type>select</type>
<object-name>rmp-standby-vhf3-data</object-name>
<condition>
<and>
<not-equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</not-equals>
<equals>
<property>controls/radio/rmp[1]/on</property>
<value>1</value>
</equals>
<greater-than-equals>
<property>systems/electrical/bus/dc2</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>systems/radio/rmp[1]/sel_chan</property>
<value type="string">vhf3</value>
</equals>
<equals>
<property>systems/radio/rmp[1]/vhf3-standby</property>
<value>0</value>
</equals>
</and>
</condition>
</animation>
<text>
<name>rmp-standby-vhf3-data</name>
<offsets>
<x-m>-0.23205</x-m>
<y-m>-0.14896</y-m>
<z-m>-0.12582</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">data</format>
<property>autopilot/servicable</property>
<truncate type="bool">false</truncate>
<font type="string">led.txf</font>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.008</character-size>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<!-- Test Illumination--> <!-- Test Illumination-->
<animation> <animation>
<type>select</type> <type>select</type>
@ -1679,10 +1507,8 @@
<type>material</type> <type>material</type>
<object-name>rmp-active</object-name> <object-name>rmp-active</object-name>
<object-name>rmp-active-test</object-name> <object-name>rmp-active-test</object-name>
<object-name>rmp-active-vhf3-data</object-name>
<object-name>rmp-standby</object-name> <object-name>rmp-standby</object-name>
<object-name>rmp-standby-test</object-name> <object-name>rmp-standby-test</object-name>
<object-name>rmp-standby-vhf3-data</object-name>
<diffuse> <diffuse>
<red>0.89</red> <red>0.89</red>
<green>0.37</green> <green>0.37</green>

View file

@ -32,6 +32,7 @@ setprop("/engines/engine[1]/oil-qt-actual", qty2);
########## ##########
# Lights # # Lights #
########## ##########
var beacon_switch = props.globals.getNode("/controls/switches/beacon", 2); var beacon_switch = props.globals.getNode("/controls/switches/beacon", 2);
var beacon = aircraft.light.new("/sim/model/lights/beacon", [0.1, 1], "/controls/lighting/beacon"); var beacon = aircraft.light.new("/sim/model/lights/beacon", [0.1, 1], "/controls/lighting/beacon");
var strobe_switch = props.globals.getNode("/controls/switches/strobe", 2); var strobe_switch = props.globals.getNode("/controls/switches/strobe", 2);
@ -209,6 +210,7 @@ var systemsLoop = maketimer(0.1, func {
libraries.ECAM.loop(); libraries.ECAM.loop();
libraries.BUTTONS.update(); libraries.BUTTONS.update();
fadec.FADEC.loop(); fadec.FADEC.loop();
rmp.rmpUpdate();
if ((getprop("/controls/pneumatic/switches/groundair") or getprop("/controls/switches/cart")) and ((getprop("/velocities/groundspeed-kt") > 2) or getprop("/controls/gear/brake-parking") == 0)) { if ((getprop("/controls/pneumatic/switches/groundair") or getprop("/controls/switches/cart")) and ((getprop("/velocities/groundspeed-kt") > 2) or getprop("/controls/gear/brake-parking") == 0)) {
setprop("/controls/switches/cart", 0); setprop("/controls/switches/cart", 0);

View file

@ -7,29 +7,31 @@
# GLOBAL TODO add stuff for HF1, HF2, VOR, LS and ADF # GLOBAL TODO add stuff for HF1, HF2, VOR, LS and ADF
var rmp_update = nil; var chan_rmp1_v = "vhr1";
var chan_rmp2_v = "vhr2";
var chan_rmp3_v = "vhr3";
var act_vhf1 = props.globals.getNode("/instrumentation/comm[0]/frequencies/selected-mhz"); var act_vhf1 = props.globals.getNode("/instrumentation/comm[0]/frequencies/selected-mhz");
var act_vhf2 = props.globals.getNode("/instrumentation/comm[1]/frequencies/selected-mhz"); var act_vhf2 = props.globals.getNode("/instrumentation/comm[1]/frequencies/selected-mhz");
var act_vhf3 = props.globals.getNode("/instrumentation/comm[2]/frequencies/selected-mhz"); var act_vhf3 = props.globals.getNode("/instrumentation/comm[2]/frequencies/selected-mhz");
var act_display_rmp1 = props.globals.initNode("/controls/radio/rmp[0]/active-display", "123.900", "STRING"); var act_display_rmp1 = props.globals.initNode("/controls/radio/rmp[0]/active-display", "118.700", "STRING");
var stby_display_rmp1 = props.globals.initNode("/controls/radio/rmp[0]/standby-display", "118.700", "STRING"); var stby_display_rmp1 = props.globals.initNode("/controls/radio/rmp[0]/standby-display", "121.400", "STRING");
var stby_rmp1_vhf1 = props.globals.initNode("/systems/radio/rmp[0]/vhf1-standby", 118.7, "DOUBLE"); var stby_rmp1_vhf1 = props.globals.initNode("/systems/radio/rmp[0]/vhf1-standby", 121.4, "DOUBLE");
var stby_rmp1_vhf2 = props.globals.initNode("/systems/radio/rmp[0]/vhf2-standby", 123.12, "DOUBLE"); var stby_rmp1_vhf2 = props.globals.initNode("/systems/radio/rmp[0]/vhf2-standby", 122.6, "DOUBLE");
var stby_rmp1_vhf3 = props.globals.initNode("/systems/radio/rmp[0]/vhf3-standby", 121.5, "DOUBLE"); var stby_rmp1_vhf3 = props.globals.initNode("/systems/radio/rmp[0]/vhf3-standby", 123.2, "DOUBLE");
var act_display_rmp2 = props.globals.initNode("/controls/radio/rmp[1]/active-display", "127.900", "STRING"); var act_display_rmp2 = props.globals.initNode("/controls/radio/rmp[1]/active-display", "119.400", "STRING");
var stby_display_rmp2 = props.globals.initNode("/controls/radio/rmp[1]/standby-display", "123.125", "STRING"); var stby_display_rmp2 = props.globals.initNode("/controls/radio/rmp[1]/standby-display", "122.600", "STRING");
var stby_rmp2_vhf1 = props.globals.initNode("/systems/radio/rmp[1]/vhf1-standby", 118.7, "DOUBLE"); var stby_rmp2_vhf1 = props.globals.initNode("/systems/radio/rmp[1]/vhf1-standby", 121.4, "DOUBLE");
var stby_rmp2_vhf2 = props.globals.initNode("/systems/radio/rmp[1]/vhf2-standby", 123.12, "DOUBLE"); var stby_rmp2_vhf2 = props.globals.initNode("/systems/radio/rmp[1]/vhf2-standby", 122.6, "DOUBLE");
var stby_rmp2_vhf3 = props.globals.initNode("/systems/radio/rmp[1]/vhf3-standby", 121.5, "DOUBLE"); var stby_rmp2_vhf3 = props.globals.initNode("/systems/radio/rmp[1]/vhf3-standby", 123.2, "DOUBLE");
var act_display_rmp3 = props.globals.initNode("/controls/radio/rmp[2]/active-display", "127.900", "STRING"); var act_display_rmp3 = props.globals.initNode("/controls/radio/rmp[2]/active-display", "data", "STRING");
var stby_display_rmp3 = props.globals.initNode("/controls/radio/rmp[2]/standby-display", "123.125", "STRING"); var stby_display_rmp3 = props.globals.initNode("/controls/radio/rmp[2]/standby-display", "123.200", "STRING");
var stby_rmp3_vhf1 = props.globals.initNode("/systems/radio/rmp[2]/vhf1-standby", 118.7, "DOUBLE"); var stby_rmp3_vhf1 = props.globals.initNode("/systems/radio/rmp[2]/vhf1-standby", 121.4, "DOUBLE");
var stby_rmp3_vhf2 = props.globals.initNode("/systems/radio/rmp[2]/vhf2-standby", 123.12, "DOUBLE"); var stby_rmp3_vhf2 = props.globals.initNode("/systems/radio/rmp[2]/vhf2-standby", 122.6, "DOUBLE");
var stby_rmp3_vhf3 = props.globals.initNode("/systems/radio/rmp[2]/vhf3-standby", 121.5, "DOUBLE"); var stby_rmp3_vhf3 = props.globals.initNode("/systems/radio/rmp[2]/vhf3-standby", 123.2, "DOUBLE");
var chan_rmp1 = props.globals.initNode("/systems/radio/rmp[0]/sel_chan", "vhf1", "STRING"); var chan_rmp1 = props.globals.initNode("/systems/radio/rmp[0]/sel_chan", "vhf1", "STRING");
var chan_rmp2 = props.globals.initNode("/systems/radio/rmp[1]/sel_chan", "vhf2", "STRING"); var chan_rmp2 = props.globals.initNode("/systems/radio/rmp[1]/sel_chan", "vhf2", "STRING");
@ -39,6 +41,14 @@ var pwr_sw_rmp1 = props.globals.initNode("/controls/radio/rmp[0]/on", 0, "BOOL")
var pwr_sw_rmp2 = props.globals.initNode("/controls/radio/rmp[1]/on", 0, "BOOL"); var pwr_sw_rmp2 = props.globals.initNode("/controls/radio/rmp[1]/on", 0, "BOOL");
var pwr_sw_rmp3 = props.globals.initNode("/controls/radio/rmp[2]/on", 0, "BOOL"); var pwr_sw_rmp3 = props.globals.initNode("/controls/radio/rmp[2]/on", 0, "BOOL");
var sel_light_rmp1 = props.globals.initNode("/systems/radio/rmp[0]/sel-light", 0, "BOOL");
var sel_light_rmp2 = props.globals.initNode("/systems/radio/rmp[1]/sel-light", 0, "BOOL");
var sel_light_rmp3 = props.globals.initNode("/systems/radio/rmp[2]/sel-light", 0, "BOOL");
var am_mode_rmp1 = props.globals.initNode("/systems/radio/rmp[0]/am-active", 0, "BOOL");
var am_mode_rmp2 = props.globals.initNode("/systems/radio/rmp[1]/am-active", 0, "BOOL");
var am_mode_rmp3 = props.globals.initNode("/systems/radio/rmp[2]/am-active", 0, "BOOL");
var init = func() { var init = func() {
for(var i = 0; i < 3; i += 1) { for(var i = 0; i < 3; i += 1) {
setprop("/systems/radio/rmp[" ~ i ~ "]/hf1-standby", 510); setprop("/systems/radio/rmp[" ~ i ~ "]/hf1-standby", 510);
@ -51,10 +61,48 @@ var init = func() {
pwr_sw_rmp1.setBoolValue(0); pwr_sw_rmp1.setBoolValue(0);
pwr_sw_rmp2.setBoolValue(0); pwr_sw_rmp2.setBoolValue(0);
pwr_sw_rmp3.setBoolValue(0); pwr_sw_rmp3.setBoolValue(0);
}
var rmpUpdate = func() {
chan_rmp1_v = chan_rmp1.getValue();
chan_rmp2_v = chan_rmp2.getValue();
chan_rmp3_v = chan_rmp3.getValue();
var rmp_update = maketimer(0.2, func { # SEL lights
rmp_refresh.update(); if (chan_rmp1_v == "vhf2" or chan_rmp1_v == "vhf3" or chan_rmp1_v == "hf1" or chan_rmp1_v == "hf2" or chan_rmp2_v == "vhf1" or chan_rmp2_v == "vhf3" or chan_rmp2_v == "hf1" or chan_rmp2_v == "hf2" or chan_rmp3_v == "vhf1" or chan_rmp3_v == "vhf2") {
}); if (sel_light_rmp1.getBoolValue() != 1) {
sel_light_rmp1.setBoolValue(1);
}
if (sel_light_rmp2.getBoolValue() != 1) {
sel_light_rmp2.setBoolValue(1);
}
if (sel_light_rmp3.getBoolValue() != 1) {
sel_light_rmp3.setBoolValue(1);
}
} else {
if (sel_light_rmp1.getBoolValue() != 0) {
sel_light_rmp1.setBoolValue(0);
}
if (sel_light_rmp2.getBoolValue() != 0) {
sel_light_rmp2.setBoolValue(0);
}
if (sel_light_rmp3.getBoolValue() != 0) {
sel_light_rmp3.setBoolValue(0);
}
}
# Disable AM mode if not in HF
if (chan_rmp1_v != "hf1" and chan_rmp1_v != "hf2" and am_mode_rmp1.getBoolValue() == 1) {
am_mode_rmp1.setBoolValue(0);
}
if (chan_rmp2_v != "hf1" and chan_rmp2_v != "hf2" and am_mode_rmp2.getBoolValue() == 1) {
am_mode_rmp2.setBoolValue(0);
}
if (chan_rmp3_v != "hf1" and chan_rmp3_v != "hf2" and am_mode_rmp3.getBoolValue() == 1) {
am_mode_rmp3.setBoolValue(0);
}
} }
var update_active_vhf = func(vhf) { var update_active_vhf = func(vhf) {
@ -85,15 +133,23 @@ var update_active_vhf = func(vhf) {
act_display_rmp2.setValue(act); act_display_rmp2.setValue(act);
} }
} }
} else { } else if (vhf == 3) {
if (sel1 == "vhf3" or sel2 == "vhf3") { if (sel1 == "vhf3" or sel2 == "vhf3") {
var act = sprintf("%3.3f", act_vhf3.getValue()); var act = sprintf("%3.3f", act_vhf3.getValue());
if (sel1 == "vhf3") { if (sel1 == "vhf3") {
act_display_rmp1.setValue(act); if (act == 0) {
act_display_rmp1.setValue("data");
} else {
act_display_rmp1.setValue(act);
}
} }
if (sel2 == "vhf3") { if (sel2 == "vhf3") {
act_display_rmp2.setValue(act); if (act == 0) {
act_display_rmp2.setValue("data");
} else {
act_display_rmp2.setValue(act);
}
} }
} }
} }
@ -132,7 +188,7 @@ var update_chan_sel = func(rmp_no) {
var chan = chan_rmp1.getValue(); var chan = chan_rmp1.getValue();
if (chan == "vhf1") { if (chan == "vhf1") {
update_stby_vhf(rmp_no, 1); update_stby_vhf(rmp_no, 1);
} else if (chan == "vhf1") { } else if (chan == "vhf2") {
update_stby_vhf(rmp_no, 2); update_stby_vhf(rmp_no, 2);
} else { } else {
update_stby_vhf(rmp_no, 3); update_stby_vhf(rmp_no, 3);
@ -160,7 +216,6 @@ var update_chan_sel = func(rmp_no) {
} }
var transfer = func(rmp_no) { var transfer = func(rmp_no) {
rmp_no = rmp_no - 1; rmp_no = rmp_no - 1;
var sel_chan = getprop("/systems/radio/rmp[" ~ rmp_no ~ "]/sel_chan"); var sel_chan = getprop("/systems/radio/rmp[" ~ rmp_no ~ "]/sel_chan");

View file

@ -82,7 +82,7 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/roll/gain-switch</independentVar> <independentVar lookup="column">fbw/roll/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 -26.2 0.0 0.2 -26.2 0.0
0.9 -15.5 0.0 0.9 -15.5 0.0
</tableData> </tableData>
@ -96,7 +96,7 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/roll/gain-switch</independentVar> <independentVar lookup="column">fbw/roll/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 -45.5 0.0 0.2 -45.5 0.0
0.9 -36.0 0.0 0.9 -36.0 0.0
</tableData> </tableData>
@ -110,7 +110,7 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/roll/gain-switch</independentVar> <independentVar lookup="column">fbw/roll/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 -2.1 0.0 0.2 -2.1 0.0
0.9 -1.1 0.0 0.9 -1.1 0.0
</tableData> </tableData>
@ -124,9 +124,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/pitch/gain-switch</independentVar> <independentVar lookup="column">fbw/pitch/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 28 0 0.2 28 0
0.9 23 0 0.9 23 0
</tableData> </tableData>
</table> </table>
</function> </function>
@ -138,9 +138,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/pitch/gain-switch</independentVar> <independentVar lookup="column">fbw/pitch/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 61 0 0.2 61 0
0.9 45 0 0.9 45 0
</tableData> </tableData>
</table> </table>
</function> </function>
@ -152,9 +152,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/pitch/gain-switch</independentVar> <independentVar lookup="column">fbw/pitch/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 2.9 0.0 0.2 2.9 0.0
0.9 1.3 0.0 0.9 1.3 0.0
</tableData> </tableData>
</table> </table>
</function> </function>
@ -166,7 +166,7 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/yaw/gain-switch</independentVar> <independentVar lookup="column">fbw/yaw/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 -7.5 0.0 0.2 -7.5 0.0
0.9 -1.5 0.0 0.9 -1.5 0.0
</tableData> </tableData>
@ -180,9 +180,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/yaw/gain-switch</independentVar> <independentVar lookup="column">fbw/yaw/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 5.01 0.00 0.2 5.01 0.00
0.9 1.05 0.00 0.9 1.05 0.00
</tableData> </tableData>
</table> </table>
</function> </function>
@ -194,9 +194,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">fbw/yaw/gain-switch</independentVar> <independentVar lookup="column">fbw/yaw/gain-switch</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 1.03 0.00 0.2 1.03 0.00
0.9 0.79 0.00 0.9 0.79 0.00
</tableData> </tableData>
</table> </table>
</function> </function>
@ -279,11 +279,11 @@
<independentVar lookup="row">attitude/roll-rad</independentVar> <independentVar lookup="row">attitude/roll-rad</independentVar>
<independentVar lookup="column">fbw/roll/a-i</independentVar> <independentVar lookup="column">fbw/roll/a-i</independentVar>
<tableData> <tableData>
-1 0 1 -1 0 1
-0.575959 0.261799 0.000000 0.000000 -0.575959 0.261799 0.000000 0.000000
-0.575958 0.000000 0.000000 0.000000 -0.575958 0.000000 0.000000 0.000000
0.575958 0.000000 0.000000 0.000000 0.575958 0.000000 0.000000 0.000000
0.575959 0.000000 0.000000 -0.261799 0.575959 0.000000 0.000000 -0.261799
</tableData> </tableData>
</table> </table>
<table> <table>
@ -310,11 +310,11 @@
<independentVar lookup="row">attitude/roll-rad</independentVar> <independentVar lookup="row">attitude/roll-rad</independentVar>
<independentVar lookup="column">fbw/roll/a-i</independentVar> <independentVar lookup="column">fbw/roll/a-i</independentVar>
<tableData> <tableData>
-1 0 1 -1 0 1
-1.169370 0.261799 0.000000 0.000000 -1.169370 0.261799 0.000000 0.000000
-1.169369 0.000000 0.000000 0.000000 -1.169369 0.000000 0.000000 0.000000
1.169369 0.000000 0.000000 0.000000 1.169369 0.000000 0.000000 0.000000
1.169370 0.000000 0.000000 -0.261799 1.169370 0.000000 0.000000 -0.261799
</tableData> </tableData>
</table> </table>
<table> <table>
@ -369,11 +369,11 @@
<independentVar lookup="row">attitude/roll-rad</independentVar> <independentVar lookup="row">attitude/roll-rad</independentVar>
<independentVar lookup="column">fbw/roll/a-i</independentVar> <independentVar lookup="column">fbw/roll/a-i</independentVar>
<tableData> <tableData>
-1 0 1 -1 0 1
-0.698132 0.261799 0.000000 0.000000 -0.698132 0.261799 0.000000 0.000000
-0.698131 0.000000 0.000000 0.000000 -0.698131 0.000000 0.000000 0.000000
0.698131 0.000000 0.000000 0.000000 0.698131 0.000000 0.000000 0.000000
0.698132 0.000000 0.000000 -0.261799 0.698132 0.000000 0.000000 -0.261799
</tableData> </tableData>
</table> </table>
</sum> </sum>
@ -523,9 +523,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">position/wow</independentVar> <independentVar lookup="column">position/wow</independentVar>
<tableData> <tableData>
0 1 0 1
0.2 0.5 1.0 0.2 0.5 1.0
0.9 0.1 1.0 0.9 0.1 1.0
</tableData> </tableData>
</table> </table>
</product> </product>
@ -615,8 +615,8 @@
<table> <table>
<independentVar lookup="row">/position/gear-agl-ft</independentVar> <independentVar lookup="row">/position/gear-agl-ft</independentVar>
<tableData> <tableData>
5 0.2 5 0.2
30 0.1 30 0.1
</tableData> </tableData>
</table> </table>
</sum> </sum>
@ -779,11 +779,11 @@
<independentVar lookup="row">attitude/pitch-rad</independentVar> <independentVar lookup="row">attitude/pitch-rad</independentVar>
<independentVar lookup="column">fbw/pitch/g-pi-switched</independentVar> <independentVar lookup="column">fbw/pitch/g-pi-switched</independentVar>
<tableData> <tableData>
-1 0 1 -1 0 1
-0.261799 0.000000 0.000000 0.087266 -0.261799 0.000000 0.000000 0.087266
-0.261798 0.000000 0.000000 0.000000 -0.261798 0.000000 0.000000 0.000000
0.523598 0.000000 0.000000 0.000000 0.523598 0.000000 0.000000 0.000000
0.523599 -0.087266 0.000000 0.000000 0.523599 -0.087266 0.000000 0.000000
</tableData> </tableData>
</table> </table>
<table> <table>
@ -818,9 +818,9 @@
<independentVar lookup="row">attitude/pitch-rad</independentVar> <independentVar lookup="row">attitude/pitch-rad</independentVar>
<independentVar lookup="column">fbw/pitch/g-pi-switched</independentVar> <independentVar lookup="column">fbw/pitch/g-pi-switched</independentVar>
<tableData> <tableData>
-1 0 -1 0
0.523598 -0.026180 0.000000 0.523598 -0.026180 0.000000
0.523599 -0.087266 0.000000 0.523599 -0.087266 0.000000
</tableData> </tableData>
</table> </table>
<table> <table>
@ -1066,7 +1066,7 @@
<independentVar lookup="row">/controls/flight/rudder</independentVar> <independentVar lookup="row">/controls/flight/rudder</independentVar>
<independentVar lookup="column">fbw/fmgc/enabled</independentVar> <independentVar lookup="column">fbw/fmgc/enabled</independentVar>
<tableData> <tableData>
0 1 0 1
-1.00 -1 0 -1.00 -1 0
-0.04 0 0 -0.04 0 0
0.04 0 0 0.04 0 0
@ -1192,8 +1192,8 @@
<table> <table>
<independentVar lookup="row">/velocities/airspeed-kt</independentVar> <independentVar lookup="row">/velocities/airspeed-kt</independentVar>
<tableData> <tableData>
62 1.0 62 1.0
116 0.0 116 0.0
</tableData> </tableData>
</table> </table>
</function> </function>
@ -1204,8 +1204,8 @@
<table> <table>
<independentVar lookup="row">/velocities/airspeed-kt</independentVar> <independentVar lookup="row">/velocities/airspeed-kt</independentVar>
<tableData> <tableData>
72 1.0 72 1.0
121 0.0 121 0.0
</tableData> </tableData>
</table> </table>
</function> </function>
@ -1222,8 +1222,8 @@
<table> <table>
<independentVar lookup="row">spoilers/anti-droop-cmd</independentVar> <independentVar lookup="row">spoilers/anti-droop-cmd</independentVar>
<tableData> <tableData>
0.5 0.0 0.5 0.0
1.0 1.0 1.0 1.0
</tableData> </tableData>
</table> </table>
</function> </function>
@ -1521,9 +1521,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">atmosphere/density-altitude</independentVar> <independentVar lookup="column">atmosphere/density-altitude</independentVar>
<tableData> <tableData>
0 43000 0 43000
0.0 1.00 0.850 0.0 1.00 0.850
0.9 0.02 0.750 0.9 0.02 0.750
</tableData> </tableData>
</table> </table>
</scheduled_gain> </scheduled_gain>
@ -1534,9 +1534,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">atmosphere/density-altitude</independentVar> <independentVar lookup="column">atmosphere/density-altitude</independentVar>
<tableData> <tableData>
0 43000 0 43000
0.0 1.00 0.850 0.0 1.00 0.850
0.9 0.02 0.750 0.9 0.02 0.750
</tableData> </tableData>
</table> </table>
</scheduled_gain> </scheduled_gain>
@ -1547,9 +1547,9 @@
<independentVar lookup="row">velocities/mach</independentVar> <independentVar lookup="row">velocities/mach</independentVar>
<independentVar lookup="column">atmosphere/density-altitude</independentVar> <independentVar lookup="column">atmosphere/density-altitude</independentVar>
<tableData> <tableData>
0 43000 0 43000
0.0 1.00 0.850 0.0 1.00 0.850
0.9 0.02 0.750 0.9 0.02 0.750
</tableData> </tableData>
</table> </table>
</scheduled_gain> </scheduled_gain>
@ -1563,34 +1563,34 @@
<table> <table>
<independentVar lookup="row">/velocities/airspeed-kt</independentVar> <independentVar lookup="row">/velocities/airspeed-kt</independentVar>
<tableData> <tableData>
160.00 25.000 160.00 25.000
162.15 23.649 162.15 23.649
165.02 22.226 165.02 22.226
168.64 21.015 168.64 21.015
172.25 19.734 172.25 19.734
176.59 18.595 176.59 18.595
181.67 17.525 181.67 17.525
186.75 16.385 186.75 16.385
191.83 15.316 191.83 15.316
197.65 14.318 197.65 14.318
205.65 13.247 205.65 13.247
212.93 12.318 212.93 12.318
219.48 11.462 219.48 11.462
227.48 10.533 227.48 10.533
236.96 9.7450 236.96 9.7450
246.43 8.8863 246.43 8.8863
255.18 8.0990 255.18 8.0990
266.12 7.4525 266.12 7.4525
277.06 6.7704 277.06 6.7704
288.00 6.0884 288.00 6.0884
299.67 5.5124 299.67 5.5124
311.35 5.0075 311.35 5.0075
323.03 4.5736 323.03 4.5736
335.44 4.2104 335.44 4.2104
347.13 3.9186 347.13 3.9186
358.81 3.6979 358.81 3.6979
370.50 3.5482 370.50 3.5482
380.00 3.4000 380.00 3.4000
</tableData> </tableData>
</table> </table>
</function> </function>
@ -1737,7 +1737,8 @@
</channel> </channel>
<channel name="Flaps"> <channel name="SFCC">
<switch name="fcs/sfcc/unit1-avail"> <switch name="fcs/sfcc/unit1-avail">
<default value="0"/> <default value="0"/>
<test logic="OR" value="1"> <test logic="OR" value="1">
@ -1751,6 +1752,10 @@
/systems/electrical/bus/dc2 ge 25 /systems/electrical/bus/dc2 ge 25
</test> </test>
</switch> </switch>
</channel>
<channel name="Flaps">
<pure_gain name="fcs/flap-pos-gain"> <pure_gain name="fcs/flap-pos-gain">
<input>/controls/flight/flaps</input> <input>/controls/flight/flaps</input>
@ -1900,9 +1905,9 @@
<independentVar lookup="row">/velocities/groundspeed-kt</independentVar> <independentVar lookup="row">/velocities/groundspeed-kt</independentVar>
<independentVar lookup="column">hydraulics/tiller/switch</independentVar> <independentVar lookup="column">hydraulics/tiller/switch</independentVar>
<tableData> <tableData>
-1 0 1 -1 0 1
30.000 -70.0 0 70.0 30.000 -70.0 0 70.0
30.001 -10.0 0 10.0 30.001 -10.0 0 10.0
</tableData> </tableData>
</table> </table>
</function> </function>

View file

@ -9,11 +9,9 @@
<!-- IT-AUTOFLIGHT --> <!-- IT-AUTOFLIGHT -->
<PropertyList> <PropertyList>
<!-- =============================================================== --> <!-- Predictors -->
<!-- Predictors -->
<!-- =============================================================== -->
<predict-simple> <predict-simple>
<name>IAS 5 SECOND PREDICTOR</name> <name>IAS 5 SECOND PREDICTOR</name>
<debug>false</debug> <debug>false</debug>
@ -22,7 +20,7 @@
<seconds>5.0</seconds> <seconds>5.0</seconds>
<filter-gain>0.0</filter-gain> <filter-gain>0.0</filter-gain>
</predict-simple> </predict-simple>
<predict-simple> <predict-simple>
<name>IAS 10 SECOND PREDICTOR</name> <name>IAS 10 SECOND PREDICTOR</name>
<debug>false</debug> <debug>false</debug>
@ -49,7 +47,7 @@
<seconds>5.0</seconds> <seconds>5.0</seconds>
<filter-gain>0.0</filter-gain> <filter-gain>0.0</filter-gain>
</predict-simple> </predict-simple>
<predict-simple> <predict-simple>
<name>MACH 10 SECOND PREDICTOR</name> <name>MACH 10 SECOND PREDICTOR</name>
<debug>false</debug> <debug>false</debug>
@ -67,16 +65,13 @@
<seconds>15.0</seconds> <seconds>15.0</seconds>
<filter-gain>0.0</filter-gain> <filter-gain>0.0</filter-gain>
</predict-simple> </predict-simple>
<!-- =============================================================== --> <!-- Autopilot Helpers/Calculators -->
<!-- Autopilot Helpers/Calculators -->
<!-- =============================================================== -->
<filter> <filter>
<name>AUTOLAND FD FPM</name> <name>AUTOLAND FD FPM</name>
<type>gain</type> <type>gain</type>
<gain>1.0</gain> <gain>1.0</gain>
<update-interval-secs type="double">0.05</update-interval-secs>
<input> <input>
<expression> <expression>
<table> <table>
@ -89,12 +84,11 @@
</input> </input>
<output>/it-autoflight/internal/target-fpm-c2</output> <output>/it-autoflight/internal/target-fpm-c2</output>
</filter> </filter>
<filter> <filter>
<name>AUTOLAND FPM</name> <name>AUTOLAND FPM</name>
<type>gain</type> <type>gain</type>
<gain>1.0</gain> <gain>1.0</gain>
<update-interval-secs type="double">0.05</update-interval-secs>
<input> <input>
<expression> <expression>
<table> <table>
@ -111,12 +105,11 @@
</input> </input>
<output>/it-autoflight/internal/target-fpm-c</output> <output>/it-autoflight/internal/target-fpm-c</output>
</filter> </filter>
<filter> <filter>
<name>FMGC MNG SPD</name> <name>FMGC MNG SPD</name>
<type>gain</type> <type>gain</type>
<gain>1.0</gain> <gain>1.0</gain>
<update-interval-secs type="double">0.05</update-interval-secs>
<input> <input>
<expression> <expression>
<product> <product>
@ -138,7 +131,6 @@
<name>FMGC MNG MACH</name> <name>FMGC MNG MACH</name>
<type>gain</type> <type>gain</type>
<gain>1.0</gain> <gain>1.0</gain>
<update-interval-secs type="double">0.05</update-interval-secs>
<input> <input>
<expression> <expression>
<product> <product>
@ -164,7 +156,6 @@
<name>FMGC Target IAS PFD</name> <name>FMGC Target IAS PFD</name>
<type>gain</type> <type>gain</type>
<gain>1.0</gain> <gain>1.0</gain>
<update-interval-secs type="double">0.1</update-interval-secs>
<input> <input>
<condition> <condition>
<equals> <equals>
@ -193,10 +184,11 @@
</input> </input>
<output>/FMGC/internal/target-ias-pfd</output> <output>/FMGC/internal/target-ias-pfd</output>
</filter> </filter>
<filter> <filter>
<name>KTS INPUT FILTER</name> <name>KTS INPUT FILTER</name>
<debug>false</debug> <debug>false</debug>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled> <feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to> <initialize-to>output</initialize-to>
<input> <input>
@ -218,32 +210,6 @@
<property>/it-autoflight/settings/togaspd</property> <property>/it-autoflight/settings/togaspd</property>
</input> </input>
<output>/it-autoflight/internal/flch-kts</output> <output>/it-autoflight/internal/flch-kts</output>
<type>noise-spike</type>
<max-rate-of-change>
<condition>
<or>
<and>
<not-equals>
<property>/it-autoflight/output/vert</property>
<value>4</value>
</not-equals>
<not-equals>
<property>/it-autoflight/output/vert</property>
<value>7</value>
</not-equals>
</and>
<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>100</value>
</max-rate-of-change>
<max-rate-of-change> <max-rate-of-change>
<condition> <condition>
<and> <and>
@ -257,6 +223,10 @@
<value>7</value> <value>7</value>
</equals> </equals>
</or> </or>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<equals> <equals>
<property>/gear/gear[1]/wow</property> <property>/gear/gear[1]/wow</property>
<value>0</value> <value>0</value>
@ -269,43 +239,33 @@
</condition> </condition>
<value>5</value> <value>5</value>
</max-rate-of-change> </max-rate-of-change>
<max-rate-of-change>100</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>MACH INPUT FILTER</name> <name>MACH INPUT FILTER</name>
<debug>false</debug> <debug>false</debug>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled> <feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to> <initialize-to>output</initialize-to>
<input> <input>/it-autoflight/input/spd-mach</input>
<property>/it-autoflight/input/spd-mach</property>
</input>
<output>/it-autoflight/internal/flch-mach</output> <output>/it-autoflight/internal/flch-mach</output>
<type>noise-spike</type>
<max-rate-of-change>
<condition>
<or>
<not-equals>
<property>/it-autoflight/output/vert</property>
<value>4</value>
</not-equals>
<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>1</value>
</max-rate-of-change>
<max-rate-of-change> <max-rate-of-change>
<condition> <condition>
<and> <and>
<or>
<equals>
<property>/it-autoflight/output/vert</property>
<value>4</value>
</equals>
<equals>
<property>/it-autoflight/output/vert</property>
<value>7</value>
</equals>
</or>
<equals> <equals>
<property>/it-autoflight/output/vert</property> <property>/it-autoflight/input/kts-mach</property>
<value>4</value> <value>1</value>
</equals> </equals>
<equals> <equals>
<property>/gear/gear[1]/wow</property> <property>/gear/gear[1]/wow</property>
@ -319,8 +279,9 @@
</condition> </condition>
<value>0.05</value> <value>0.05</value>
</max-rate-of-change> </max-rate-of-change>
<max-rate-of-change>1</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>IAS SYNC</name> <name>IAS SYNC</name>
<type>gain</type> <type>gain</type>
@ -333,8 +294,16 @@
</equals> </equals>
</condition> </condition>
</enable> </enable>
<update-interval-secs type="double">0.5</update-interval-secs> <input>
<input>/instrumentation/airspeed-indicator/indicated-speed-kt</input> <expression>
<floor>
<sum>
<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property>
<value>0.5</value>
</sum>
</floor>
</expression>
</input>
<output>/it-autoflight/input/spd-kts</output> <output>/it-autoflight/input/spd-kts</output>
</filter> </filter>
@ -350,8 +319,22 @@
</equals> </equals>
</condition> </condition>
</enable> </enable>
<update-interval-secs type="double">0.5</update-interval-secs> <input>
<input>/instrumentation/airspeed-indicator/indicated-mach</input> <expression>
<div>
<floor>
<sum>
<product>
<property>/instrumentation/airspeed-indicator/indicated-mach</property>
<value>1000</value>
</product>
<value>0.5</value>
</sum>
</floor>
<value>1000</value>
</div>
</expression>
</input>
<output>/it-autoflight/input/spd-mach</output> <output>/it-autoflight/input/spd-mach</output>
</filter> </filter>
@ -365,9 +348,7 @@
</condition> </condition>
<property>/orientation/heading-deg</property> <property>/orientation/heading-deg</property>
</input> </input>
<input> <input>/orientation/heading-magnetic-deg</input>
<property>/orientation/heading-magnetic-deg</property>
</input>
<reference>0</reference> <reference>0</reference>
<output>/it-autoflight/internal/heading-deg</output> <output>/it-autoflight/internal/heading-deg</output>
<output>/instrumentation/pfd/heading-deg</output> <output>/instrumentation/pfd/heading-deg</output>
@ -475,30 +456,16 @@
<property>/autopilot/route-manager/wp[0]/true-bearing-deg</property> <property>/autopilot/route-manager/wp[0]/true-bearing-deg</property>
<product> <product>
<property>/it-autoflight/internal/drift-angle-deg</property> <property>/it-autoflight/internal/drift-angle-deg</property>
<value>-1</value> <value>-1.0</value>
</product> </product>
<product> <product>
<property>/orientation/heading-deg</property> <property>/orientation/heading-deg</property>
<value>-1</value> <value>-1.0</value>
</product> </product>
</sum> </sum>
</expression> </expression>
</input> </input>
<input> <input>0</input>
<condition>
<and>
<not-equals>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</not-equals>
<not-equals>
<property>/it-autoflight/output/lat</property>
<value>1</value>
</not-equals>
</and>
</condition>
<value>0</value>
</input>
<output>/it-autoflight/internal/heading-error-deg</output> <output>/it-autoflight/internal/heading-error-deg</output>
<period> <period>
<min>-180</min> <min>-180</min>
@ -522,7 +489,10 @@
<input> <input>
<expression> <expression>
<floor> <floor>
<property>/it-autoflight/internal/vert-speed-fpm</property> <sum>
<property>/it-autoflight/internal/vert-speed-fpm</property>
<value>0.5</value>
</sum>
</floor> </floor>
</expression> </expression>
</input> </input>
@ -532,31 +502,18 @@
<filter> <filter>
<name>VERT SPEED FILTER</name> <name>VERT SPEED FILTER</name>
<debug>false</debug> <debug>false</debug>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled> <feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to> <initialize-to>output</initialize-to>
<input> <input>/it-autoflight/input/vs</input>
<property>/it-autoflight/input/vs</property>
</input>
<output>/it-autoflight/internal/vs</output> <output>/it-autoflight/internal/vs</output>
<type>noise-spike</type>
<max-rate-of-change>
<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>2000</value>
</max-rate-of-change>
<max-rate-of-change> <max-rate-of-change>
<condition> <condition>
<and> <and>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
<equals> <equals>
<property>/gear/gear[1]/wow</property> <property>/gear/gear[1]/wow</property>
<value>0</value> <value>0</value>
@ -569,8 +526,9 @@
</condition> </condition>
<value>300</value> <value>300</value>
</max-rate-of-change> </max-rate-of-change>
<max-rate-of-change>2000</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>NAV ERROR DEG</name> <name>NAV ERROR DEG</name>
<debug>false</debug> <debug>false</debug>
@ -589,7 +547,7 @@
<max>180</max> <max>180</max>
</period> </period>
</filter> </filter>
<filter> <filter>
<name>INTERNAL VERTICAL SPEED COMPUTER</name> <name>INTERNAL VERTICAL SPEED COMPUTER</name>
<debug>false</debug> <debug>false</debug>
@ -830,49 +788,13 @@
</input> </input>
<output>/it-autoflight/internal/fpa</output> <output>/it-autoflight/internal/fpa</output>
</filter> </filter>
<!-- =============================================================== --> <!-- Flight Director -->
<!-- Flight Director -->
<!-- =============================================================== -->
<filter> <filter>
<name>IT-CONTROLLER: TARGET ROLL CMD</name> <name>IT-CONTROLLER: TARGET ROLL CMD</name>
<debug>false</debug> <debug>false</debug>
<feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to>
<input>
<property>/it-autoflight/internal/target-roll-deg</property>
</input>
<output>/it-autoflight/internal/target-roll-fd</output>
<type>noise-spike</type> <type>noise-spike</type>
<max-rate-of-change>15</max-rate-of-change>
</filter>
<filter>
<name>FD: ROLL</name>
<debug>false</debug>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<and>
<not-equals>
<property>/it-autoflight/output/lat</property>
<value>4</value>
</not-equals>
<not-equals>
<property>/it-autoflight/output/lat</property>
<value>5</value>
</not-equals>
</and>
</condition>
<expression>
<dif>
<property>/it-autoflight/internal/target-roll-fd</property>
<property>/orientation/roll-deg</property>
</dif>
</expression>
</input>
<input> <input>
<condition> <condition>
<or> <or>
@ -886,9 +808,37 @@
</equals> </equals>
</or> </or>
</condition> </condition>
<value>0</value>
</input>
<input>/it-autoflight/internal/target-roll-deg</input>
<output>/it-autoflight/internal/target-roll-fd</output>
<max-rate-of-change>
<condition>
<and>
<not-equals>
<property>/it-autoflight/output/fd1</property>
<value>1</value>
</not-equals>
<not-equals>
<property>/it-autoflight/output/fd1</property>
<value>1</value>
</not-equals>
</and>
</condition>
<value>50</value>
</max-rate-of-change>
<max-rate-of-change>15</max-rate-of-change>
</filter>
<filter>
<name>FD: ROLL</name>
<debug>false</debug>
<type>gain</type>
<gain>1.0</gain>
<input>
<expression> <expression>
<dif> <dif>
<value>0</value> <property>/it-autoflight/internal/target-roll-fd</property>
<property>/orientation/roll-deg</property> <property>/orientation/roll-deg</property>
</dif> </dif>
</expression> </expression>
@ -897,7 +847,7 @@
<min>-30</min> <min>-30</min>
<max>30</max> <max>30</max>
</filter> </filter>
<filter> <filter>
<name>FD: PITCH</name> <name>FD: PITCH</name>
<debug>false</debug> <debug>false</debug>

View file

@ -9,10 +9,8 @@
<!-- IT-AUTOFLIGHT --> <!-- IT-AUTOFLIGHT -->
<PropertyList> <PropertyList>
<!-- =============================================================== --> <!-- Pitch Axis -->
<!-- Vertical Modes -->
<!-- =============================================================== -->
<filter> <filter>
<name>ALTITUDE CAPTURE/HOLD</name> <name>ALTITUDE CAPTURE/HOLD</name>
@ -29,33 +27,19 @@
</input> </input>
<reference> <reference>
<condition> <condition>
<not-equals> <equals>
<property>/it-autoflight/output/vert</property> <property>/it-autoflight/output/vert</property>
<value>8</value> <value>8</value>
</not-equals> </equals>
</condition> </condition>
<property>/it-autoflight/internal/alt</property>
</reference>
<reference>
<condition>
<equals>
<property>/it-autoflight/output/vert</property>
<value>8</value>
</equals>
</condition>
<property>/it-autoflight/internal/mng-alt</property> <property>/it-autoflight/internal/mng-alt</property>
</reference> </reference>
<output> <reference>/it-autoflight/internal/alt</reference>
<property>/it-autoflight/internal/target-fpm</property> <output>/it-autoflight/internal/target-fpm</output>
</output> <min>/it-autoflight/internal/min-vs</min>
<min> <max>/it-autoflight/internal/max-vs</max>
<property>/it-autoflight/internal/min-vs</property>
</min>
<max>
<property>/it-autoflight/internal/max-vs</property>
</max>
</filter> </filter>
<pid-controller> <pid-controller>
<name>FPA HOLD</name> <name>FPA HOLD</name>
<debug>false</debug> <debug>false</debug>
@ -87,15 +71,9 @@
</and> </and>
</condition> </condition>
</enable> </enable>
<input> <input>/it-autoflight/internal/fpa</input>
<property>/it-autoflight/internal/fpa</property> <reference>/it-autoflight/input/fpa</reference>
</input> <output>/it-autoflight/internal/target-fpm-d</output>
<reference>
<property>/it-autoflight/input/fpa</property>
</reference>
<output>
<property>/it-autoflight/internal/target-fpm-d</property>
</output>
<config> <config>
<Kp> <Kp>
<expression> <expression>
@ -106,9 +84,6 @@
</table> </table>
</expression> </expression>
</Kp> </Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>2.0</Ti> <Ti>2.0</Ti>
<Td>0.002</Td> <Td>0.002</Td>
<u_min> <u_min>
@ -215,9 +190,7 @@
<property>/it-autoflight/internal/flch-mach</property> <property>/it-autoflight/internal/flch-mach</property>
<scale>1000.0</scale> <scale>1000.0</scale>
</reference> </reference>
<output> <output>/it-autoflight/internal/target-fpm-b</output>
<property>/it-autoflight/internal/target-fpm-b</property>
</output>
<config> <config>
<Kp> <Kp>
<condition> <condition>
@ -237,9 +210,6 @@
</condition> </condition>
<value>-60</value> <value>-60</value>
</Kp> </Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>2.5</Ti> <Ti>2.5</Ti>
<Td>0.001</Td> <Td>0.001</Td>
<u_min> <u_min>
@ -505,9 +475,7 @@
</and> </and>
</condition> </condition>
</enable> </enable>
<input> <input>/it-autoflight/internal/vert-speed-fpm</input>
<property>/it-autoflight/internal/vert-speed-fpm</property>
</input>
<reference> <reference>
<condition> <condition>
<or> <or>
@ -590,9 +558,7 @@
</condition> </condition>
<property>/it-autoflight/internal/nav1-rate-of-climb-fpm</property> <property>/it-autoflight/internal/nav1-rate-of-climb-fpm</property>
</reference> </reference>
<output> <output>/it-autoflight/internal/target-pitch-deg</output>
<property>/it-autoflight/internal/target-pitch-deg</property>
</output>
<config> <config>
<Kp> <Kp>
<condition> <condition>
@ -711,21 +677,15 @@
<min>-15</min> <min>-15</min>
<max>30</max> <max>30</max>
</filter> </filter>
<filter> <filter>
<name>System Command: Pitch Rate</name> <name>System Command: Pitch Rate</name>
<debug>false</debug> <debug>false</debug>
<type>gain</type> <type>gain</type>
<gain>0.15</gain> <gain>0.15</gain>
<input> <input>/orientation/pitch-deg</input>
<property>/orientation/pitch-deg</property> <reference>/it-autoflight/internal/target-pitch-deg</reference>
</input> <output>/fdm/jsbsim/fbw/fmgc/pitch-cmd</output> <!-- Inputs to the FBW Pitch -->
<reference>
<property>/it-autoflight/internal/target-pitch-deg</property>
</reference>
<output>
<property>/fdm/jsbsim/fbw/fmgc/pitch-cmd</property> <!-- Inputs to the FBW Pitch Rate -->
</output>
<min>-0.3</min> <min>-0.3</min>
<max>0.3</max> <max>0.3</max>
</filter> </filter>

View file

@ -9,11 +9,9 @@
<!-- IT-AUTOFLIGHT --> <!-- IT-AUTOFLIGHT -->
<PropertyList> <PropertyList>
<!-- =============================================================== --> <!-- Roll Axis -->
<!-- Lateral Modes -->
<!-- =============================================================== -->
<pi-simple-controller> <pi-simple-controller>
<name>ROLL CONTROLLER: HDG/LNAV</name> <name>ROLL CONTROLLER: HDG/LNAV</name>
<debug>false</debug> <debug>false</debug>
@ -51,25 +49,17 @@
</and> </and>
</condition> </condition>
</enable> </enable>
<input> <input>/it-autoflight/internal/heading-error-deg</input>
<property>/it-autoflight/internal/heading-error-deg</property> <reference>0</reference>
</input> <output>/it-autoflight/internal/target-roll-deg</output>
<reference>
<value>0</value>
</reference>
<output>
<property>/it-autoflight/internal/target-roll-deg</property>
</output>
<config> <config>
<Kp>-1.8</Kp> <Kp>-1.8</Kp>
<Ki>-0.000001</Ki> <Ki>-0.000001</Ki>
<min> <min>
<property>/it-autoflight/internal/bank-limit</property> <property>/it-autoflight/internal/bank-limit</property>
<scale>-1</scale> <scale>-1.0</scale>
</min> </min>
<max> <max>/it-autoflight/internal/bank-limit</max>
<property>/it-autoflight/internal/bank-limit</property>
</max>
</config> </config>
</pi-simple-controller> </pi-simple-controller>
@ -104,43 +94,20 @@
</and> </and>
</condition> </condition>
</enable> </enable>
<input> <input>/it-autoflight/internal/nav-heading-error-deg</input>
<condition> <reference>0</reference>
<equals> <output>/it-autoflight/internal/target-roll-deg</output>
<property>/it-autoflight/settings/use-backcourse</property>
<value>0</value>
</equals>
</condition>
<property>/it-autoflight/internal/nav-heading-error-deg</property>
</input>
<input>
<condition>
<equals>
<property>/it-autoflight/settings/use-backcourse</property>
<value>1</value>
</equals>
</condition>
<property>/it-autoflight/internal/nav-bc-heading-error-deg</property>
</input>
<reference>
<value>0.0</value>
</reference>
<output>
<property>/it-autoflight/internal/target-roll-deg</property>
</output>
<config> <config>
<Kp>-2.8</Kp> <Kp>-2.8</Kp>
<Ki>-0.0001</Ki> <Ki>-0.0001</Ki>
<min> <min>
<property>/it-autoflight/internal/bank-limit</property> <property>/it-autoflight/internal/bank-limit</property>
<scale>-1</scale> <scale>-1.0</scale>
</min> </min>
<max> <max>/it-autoflight/internal/bank-limit</max>
<property>/it-autoflight/internal/bank-limit</property>
</max>
</config> </config>
</pi-simple-controller> </pi-simple-controller>
<filter> <filter>
<name>ROLL DEG SYNC</name> <name>ROLL DEG SYNC</name>
<debug>false</debug> <debug>false</debug>
@ -172,50 +139,16 @@
<output>/it-autoflight/internal/target-roll-deg</output> <output>/it-autoflight/internal/target-roll-deg</output>
<min> <min>
<property>/it-autoflight/internal/bank-limit</property> <property>/it-autoflight/internal/bank-limit</property>
<scale>-1</scale> <scale>-1.0</scale>
</min> </min>
<max> <max>/it-autoflight/internal/bank-limit</max>
<property>/it-autoflight/internal/bank-limit</property>
</max>
</filter> </filter>
<filter> <filter>
<name>IT-CONTROLLER: TARGET ROLL CMD</name> <name>IT-CONTROLLER: TARGET ROLL CMD</name>
<debug>false</debug> <debug>false</debug>
<feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to>
<input>
<property>/it-autoflight/internal/target-roll-deg</property>
</input>
<output>/it-autoflight/internal/target-roll</output>
<type>noise-spike</type> <type>noise-spike</type>
<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> <input>
<property>/orientation/roll-deg</property>
</input>
<reference>
<condition>
<and>
<not-equals>
<property>/it-autoflight/output/lat</property>
<value>4</value>
</not-equals>
<not-equals>
<property>/it-autoflight/output/lat</property>
<value>5</value>
</not-equals>
</and>
</condition>
<property>/it-autoflight/internal/target-roll</property>
</reference>
<reference>
<condition> <condition>
<or> <or>
<equals> <equals>
@ -229,17 +162,63 @@
</or> </or>
</condition> </condition>
<value>0</value> <value>0</value>
</reference> </input>
<output> <input>/it-autoflight/internal/target-roll-deg</input>
<property>/fdm/jsbsim/fbw/fmgc/roll-cmd</property> <!-- Inputs to the FBW Roll Rate --> <output>/it-autoflight/internal/target-roll</output>
</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> <min>-0.32</min>
<max>0.32</max> <max>0.32</max>
</filter> </filter>
<!-- =============================================================== --> <!-- Yaw Axis -->
<!-- Yaw Control -->
<!-- =============================================================== -->
<pi-simple-controller> <pi-simple-controller>
<name>RUDDER VORLOC TRK</name> <name>RUDDER VORLOC TRK</name>
@ -252,12 +231,8 @@
</equals> </equals>
</condition> </condition>
</enable> </enable>
<input> <input>/it-autoflight/internal/nav-heading-error-deg</input>
<property>/it-autoflight/internal/nav-heading-error-deg</property> <reference>0</reference>
</input>
<reference>
<value>0</value>
</reference>
<output>/it-autoflight/internal/rudder-cmd</output> <output>/it-autoflight/internal/rudder-cmd</output>
<config> <config>
<Kp> <Kp>
@ -275,21 +250,7 @@
</condition> </condition>
<value>-0.05</value> <value>-0.05</value>
</Kp> </Kp>
<Kp> <Kp>-0.02</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> <Ki>0</Ki>
</config> </config>
<min>-0.15</min> <min>-0.15</min>
@ -299,28 +260,32 @@
<filter> <filter>
<name>IT-CONTROLLER: RUDDER CMD</name> <name>IT-CONTROLLER: RUDDER CMD</name>
<debug>false</debug> <debug>false</debug>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled> <feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to> <initialize-to>output</initialize-to>
<input> <input>
<condition> <condition>
<not-equals> <and>
<property>/it-autoflight/output/lat</property> <or>
<value>4</value> <equals>
</not-equals> <property>/it-autoflight/output/ap1</property>
</condition> <value>1</value>
<value>0</value> </equals>
</input> <equals>
<input> <property>/it-autoflight/output/ap2</property>
<condition> <value>1</value>
<equals> </equals>
<property>/it-autoflight/output/lat</property> </or>
<value>4</value> <equals>
</equals> <property>/it-autoflight/output/lat</property>
<value>4</value>
</equals>
</and>
</condition> </condition>
<property>/it-autoflight/internal/rudder-cmd</property> <property>/it-autoflight/internal/rudder-cmd</property>
</input> </input>
<output>/fdm/jsbsim/fbw/fmgc/yaw-cmd</output> <input>0</input>
<type>noise-spike</type> <output>/fdm/jsbsim/fbw/fmgc/yaw-cmd</output> <!-- Inputs to the FBW Yaw -->
<max-rate-of-change>0.6</max-rate-of-change> <max-rate-of-change>0.6</max-rate-of-change>
</filter> </filter>

View file

@ -7,54 +7,31 @@
--> -->
<PropertyList> <PropertyList>
<!-- =============================================================== --> <!-- Thrust Axis -->
<!-- Thrust Modes -->
<!-- =============================================================== -->
<filter> <filter>
<name>KTS INPUT FILTER</name> <name>KTS INPUT FILTER</name>
<debug>false</debug> <debug>false</debug>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled> <feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to> <initialize-to>output</initialize-to>
<input> <input>/it-autoflight/input/spd-kts</input>
<property>/it-autoflight/input/spd-kts</property>
</input>
<output>/it-autoflight/internal/kts</output> <output>/it-autoflight/internal/kts</output>
<type>noise-spike</type>
<max-rate-of-change>
<condition>
<or>
<not-equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</not-equals>
<equals>
<property>/it-autoflight/output/athr</property>
<value>0</value>
</equals>
<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>200</value>
</max-rate-of-change>
<max-rate-of-change> <max-rate-of-change>
<condition> <condition>
<and> <and>
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
<equals> <equals>
<property>/it-autoflight/output/thr-mode</property> <property>/it-autoflight/output/thr-mode</property>
<value>0</value> <value>0</value>
</equals> </equals>
<equals> <equals>
<property>/it-autoflight/output/athr</property> <property>/it-autoflight/input/kts-mach</property>
<value>1</value> <value>0</value>
</equals> </equals>
<equals> <equals>
<property>/gear/gear[1]/wow</property> <property>/gear/gear[1]/wow</property>
@ -68,50 +45,30 @@
</condition> </condition>
<value>10</value> <value>10</value>
</max-rate-of-change> </max-rate-of-change>
<max-rate-of-change>200</max-rate-of-change>
</filter> </filter>
<filter> <filter>
<name>MACH INPUT FILTER</name> <name>MACH INPUT FILTER</name>
<debug>false</debug> <debug>false</debug>
<type>noise-spike</type>
<feedback-if-disabled>true</feedback-if-disabled> <feedback-if-disabled>true</feedback-if-disabled>
<initialize-to>output</initialize-to> <initialize-to>output</initialize-to>
<input> <input>/it-autoflight/input/spd-mach</input>
<property>/it-autoflight/input/spd-mach</property>
</input>
<output>/it-autoflight/internal/mach</output> <output>/it-autoflight/internal/mach</output>
<type>noise-spike</type>
<max-rate-of-change>
<condition>
<or>
<not-equals>
<property>/it-autoflight/output/thr-mode</property>
<value>0</value>
</not-equals>
<equals>
<property>/it-autoflight/output/athr</property>
<value>0</value>
</equals>
<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>2</value>
</max-rate-of-change>
<max-rate-of-change> <max-rate-of-change>
<condition> <condition>
<and> <and>
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
<equals> <equals>
<property>/it-autoflight/output/thr-mode</property> <property>/it-autoflight/output/thr-mode</property>
<value>0</value> <value>0</value>
</equals> </equals>
<equals> <equals>
<property>/it-autoflight/output/athr</property> <property>/it-autoflight/input/kts-mach</property>
<value>1</value> <value>1</value>
</equals> </equals>
<equals> <equals>
@ -126,6 +83,7 @@
</condition> </condition>
<value>0.1</value> <value>0.1</value>
</max-rate-of-change> </max-rate-of-change>
<max-rate-of-change>2</max-rate-of-change>
</filter> </filter>
<filter> <filter>
@ -250,28 +208,15 @@
</and> </and>
</condition> </condition>
</enable> </enable>
<input> <input>/instrumentation/airspeed-indicator/indicated-speed-kt</input>
<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property> <reference>/it-autoflight/internal/kts</reference>
</input> <output>/controls/engines/throttle-cmd-pid</output>
<reference>
<property>/it-autoflight/internal/kts</property>
</reference>
<output>
<property>/controls/engines/throttle-cmd-pid</property>
</output>
<config> <config>
<Kp>0.055</Kp> <Kp>0.055</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>9.0</Ti> <Ti>9.0</Ti>
<Td>0.00001</Td> <Td>0.00001</Td>
<u_min> <u_min>/controls/engines/idle-limit</u_min>
<property>/controls/engines/idle-limit</property> <u_max>/controls/engines/throttle-pid-max</u_max>
</u_min>
<u_max>
<property>/controls/engines/throttle-pid-max</property>
</u_max>
</config> </config>
</pid-controller> </pid-controller>
@ -390,22 +335,13 @@
<property>/it-autoflight/internal/mach</property> <property>/it-autoflight/internal/mach</property>
<scale>1000.0</scale> <scale>1000.0</scale>
</reference> </reference>
<output> <output>/controls/engines/throttle-cmd-pid</output>
<property>/controls/engines/throttle-cmd-pid</property>
</output>
<config> <config>
<Kp>0.055</Kp> <Kp>0.055</Kp>
<beta>1.0</beta>
<alpha>0.1</alpha>
<gamma>0.0</gamma>
<Ti>9.0</Ti> <Ti>9.0</Ti>
<Td>0.00001</Td> <Td>0.00001</Td>
<u_min> <u_min>/controls/engines/idle-limit</u_min>
<property>/controls/engines/idle-limit</property> <u_max>/controls/engines/throttle-pid-max</u_max>
</u_min>
<u_max>
<property>/controls/engines/throttle-pid-max</property>
</u_max>
</config> </config>
</pid-controller> </pid-controller>
@ -512,12 +448,8 @@
</and> </and>
</condition> </condition>
</enable> </enable>
<input> <input>0.0</input>
<value>0.0</value> <output>/controls/engines/throttle-cmd-pid</output>
</input>
<output>
<property>/controls/engines/throttle-cmd-pid</property>
</output>
</filter> </filter>
<filter> <filter>
@ -623,12 +555,8 @@
</and> </and>
</condition> </condition>
</enable> </enable>
<input> <input>1.0</input>
<value>1.0</value> <output>/controls/engines/throttle-cmd-pid</output>
</input>
<output>
<property>/controls/engines/throttle-cmd-pid</property>
</output>
</filter> </filter>
<filter> <filter>
@ -725,12 +653,10 @@
</not-equals> </not-equals>
</and> </and>
</condition> </condition>
<value>1</value> <value>1.0</value>
</input> </input>
<input>0</input> <input>0.0</input>
<output> <output>/controls/engines/throttle-cmd-pid</output>
<property>/controls/engines/throttle-cmd-pid</property>
</output>
</filter> </filter>
</PropertyList> </PropertyList>

View file

@ -1 +1 @@
4679 4683