Control: Begin EPR simulation for IAE
This commit is contained in:
parent
632c73c3d1
commit
5be6d11265
4 changed files with 224 additions and 1721 deletions
|
@ -47,13 +47,8 @@ var FADEC = {
|
|||
me.Limit.activeModeInt.setValue(0);
|
||||
me.Limit.flexActive.setBoolValue(0);
|
||||
me.Limit.flexActiveCmd.setBoolValue(0);
|
||||
if (pts.Options.eng.getValue() == "IAE") {
|
||||
me.n1ModeSw[0].setBoolValue(1);
|
||||
me.n1ModeSw[1].setBoolValue(1);
|
||||
} else {
|
||||
me.n1ModeSw[0].setBoolValue(0);
|
||||
me.n1ModeSw[1].setBoolValue(0);
|
||||
}
|
||||
systems.FADEC_S.init();
|
||||
thrustFlashT.start();
|
||||
},
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
<system name="A320: V2500 Engine">
|
||||
|
||||
<property value="1">fadec/epr/c1</property> <!-- Done in property rule because its easier to tune -->
|
||||
<property value="1">fadec/epr/c2</property> <!-- Done in property rule because its easier to tune -->
|
||||
<property value="46">fadec/limit/rated-temp</property>
|
||||
<property value="30">fadec/limit/flex-rated-temp</property>
|
||||
<property value="26600">fadec/limit/rated-thrust</property>
|
||||
|
@ -199,6 +201,51 @@
|
|||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/limit/toga-epr-input">
|
||||
<function>
|
||||
<pow>
|
||||
<property>fadec/limit/toga-ref</property>
|
||||
<value>3.5</value>
|
||||
</pow>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/limit/toga-epr-ref">
|
||||
<function>
|
||||
<sum>
|
||||
<product>
|
||||
<table>
|
||||
<independentVar lookup="row">fadec/limit/toga-epr-input</independentVar>
|
||||
<tableData>
|
||||
24743.1 0.00
|
||||
53194.6 0.03
|
||||
10000000.0 1.00
|
||||
</tableData>
|
||||
</table>
|
||||
<property>fadec/epr/c1</property>
|
||||
</product>
|
||||
<property>fadec/epr/c2</property>
|
||||
</sum>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/limit/toga-epr">
|
||||
<function>
|
||||
<quotient>
|
||||
<integer>
|
||||
<sum>
|
||||
<product>
|
||||
<property>fadec/limit/toga-epr-ref</property>
|
||||
<value>1000</value>
|
||||
</product>
|
||||
<value>0.5</value> <!-- Make it round correctly -->
|
||||
</sum>
|
||||
</integer>
|
||||
<value>1000</value>
|
||||
</quotient>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/limit/toga-norm">
|
||||
<function>
|
||||
<table>
|
||||
|
@ -677,6 +724,34 @@
|
|||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/control-1/lever-epr-ref">
|
||||
<function>
|
||||
<pow>
|
||||
<property>fadec/control-1/lever-n1</property>
|
||||
<value>3.5</value>
|
||||
</pow>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/control-1/lever-epr">
|
||||
<function>
|
||||
<sum>
|
||||
<product>
|
||||
<table>
|
||||
<independentVar lookup="row">fadec/control-1/lever-epr-ref</independentVar>
|
||||
<tableData>
|
||||
24743.1 0.00
|
||||
53194.6 0.03
|
||||
10000000.0 1.00
|
||||
</tableData>
|
||||
</table>
|
||||
<property>fadec/epr/c1</property>
|
||||
</product>
|
||||
<property>fadec/epr/c2</property>
|
||||
</sum>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<switch name="fadec/control-1/detent">
|
||||
<default value="0"/> <!-- IDLE -->
|
||||
<test value="6"> <!-- TOGA -->
|
||||
|
@ -924,6 +999,34 @@
|
|||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/control-2/lever-epr-ref">
|
||||
<function>
|
||||
<pow>
|
||||
<property>fadec/control-2/lever-n1</property>
|
||||
<value>3.5</value>
|
||||
</pow>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/control-2/lever-epr">
|
||||
<function>
|
||||
<sum>
|
||||
<product>
|
||||
<table>
|
||||
<independentVar lookup="row">fadec/control-2/lever-epr-ref</independentVar>
|
||||
<tableData>
|
||||
24743.1 0.00
|
||||
53194.6 0.03
|
||||
10000000.0 1.00
|
||||
</tableData>
|
||||
</table>
|
||||
<property>fadec/epr/c1</property>
|
||||
</product>
|
||||
<property>fadec/epr/c2</property>
|
||||
</sum>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<switch name="fadec/control-2/detent">
|
||||
<default value="0"/> <!-- IDLE -->
|
||||
<test value="6"> <!-- TOGA -->
|
||||
|
@ -1456,6 +1559,64 @@
|
|||
<output>/engines/engine[4]/n1</output>
|
||||
</lag_filter>
|
||||
|
||||
<fcs_function name="fadec/epr-actual-1-ref">
|
||||
<function>
|
||||
<pow>
|
||||
<property>fadec/n1-actual-1</property>
|
||||
<value>3.5</value>
|
||||
</pow>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/epr-actual-1">
|
||||
<function>
|
||||
<sum>
|
||||
<product>
|
||||
<table>
|
||||
<independentVar lookup="row">fadec/epr-actual-1-ref</independentVar>
|
||||
<tableData>
|
||||
24743.1 0.00
|
||||
53194.6 0.03
|
||||
10000000.0 1.00
|
||||
</tableData>
|
||||
</table>
|
||||
<property>fadec/epr/c1</property>
|
||||
</product>
|
||||
<property>fadec/epr/c2</property>
|
||||
</sum>
|
||||
</function>
|
||||
<output>/engines/engine[0]/epr-actual</output>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/epr-actual-2-ref">
|
||||
<function>
|
||||
<pow>
|
||||
<property>fadec/n1-actual-2</property>
|
||||
<value>3.5</value>
|
||||
</pow>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<fcs_function name="fadec/epr-actual-2">
|
||||
<function>
|
||||
<sum>
|
||||
<product>
|
||||
<table>
|
||||
<independentVar lookup="row">fadec/epr-actual-2-ref</independentVar>
|
||||
<tableData>
|
||||
24743.1 0.00
|
||||
53194.6 0.03
|
||||
10000000.0 1.00
|
||||
</tableData>
|
||||
</table>
|
||||
<property>fadec/epr/c1</property>
|
||||
</product>
|
||||
<property>fadec/epr/c2</property>
|
||||
</sum>
|
||||
</function>
|
||||
<output>/engines/engine[1]/epr-actual</output>
|
||||
</fcs_function>
|
||||
|
||||
<lag_filter name="fadec/n2-actual-1">
|
||||
<input>/engines/engine[0]/n2</input>
|
||||
<c1>2.25</c1>
|
||||
|
@ -1521,7 +1682,7 @@
|
|||
<fcs_function name="/instrumentation/upper-ecam/epr-thr[0]">
|
||||
<function>
|
||||
<table>
|
||||
<independentVar lookup="row">/engines/engine[0]/epr-actual</independentVar> <!-- Fix prop -->
|
||||
<independentVar lookup="row">fadec/control-1/lever-epr</independentVar>
|
||||
<tableData>
|
||||
0.97 -139
|
||||
1.00 -125
|
||||
|
@ -1537,7 +1698,7 @@
|
|||
<fcs_function name="/instrumentation/upper-ecam/epr-thr[1]">
|
||||
<function>
|
||||
<table>
|
||||
<independentVar lookup="row">/engines/engine[1]/epr-actual</independentVar> <!-- Fix prop -->
|
||||
<independentVar lookup="row">fadec/control-1/lever-epr</independentVar>
|
||||
<tableData>
|
||||
0.97 -139
|
||||
1.00 -125
|
||||
|
@ -1553,7 +1714,7 @@
|
|||
<fcs_function name="/instrumentation/upper-ecam/epr-limit">
|
||||
<function>
|
||||
<table>
|
||||
<independentVar lookup="row">/engines/engine[0]/epr-actual</independentVar> <!-- Fix prop -->
|
||||
<independentVar lookup="row">fadec/limit/toga-epr</independentVar>
|
||||
<tableData>
|
||||
0.97 -139
|
||||
1.00 -125
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,6 +4,63 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<filter>
|
||||
<name>EPR Scale</name>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<input>
|
||||
<expression>
|
||||
<table>
|
||||
<property>/position/altitude-ft</property>
|
||||
<entry><ind> 0</ind><dep>0.674</dep></entry>
|
||||
<entry><ind>43000</ind><dep>1.120</dep></entry>
|
||||
</table>
|
||||
</expression>
|
||||
</input>
|
||||
<output>/fdm/jsbsim/fadec/epr/c1</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>EPR Scale 2 Sum/Difference</name>
|
||||
<type>gain</type>
|
||||
<gain>1.0</gain>
|
||||
<input>
|
||||
<expression>
|
||||
<difference>
|
||||
<table>
|
||||
<property>/position/altitude-ft</property>
|
||||
<entry><ind> 0</ind><dep>0.9857</dep></entry>
|
||||
<entry><ind>43000</ind><dep>0.8584</dep></entry>
|
||||
</table>
|
||||
<table>
|
||||
<property>/fdm/jsbsim/velocities/mach</property>
|
||||
<entry><ind>0.00</ind><dep>0.000</dep></entry>
|
||||
<entry><ind>0.09</ind><dep>0.000</dep></entry>
|
||||
<entry><ind>0.15</ind><dep>0.016</dep></entry>
|
||||
<entry><ind>0.22</ind><dep>0.022</dep></entry>
|
||||
<entry><ind>1.00</ind><dep>0.010</dep></entry>
|
||||
</table>
|
||||
<table>
|
||||
<property>/fdm/jsbsim/aero/alpha-deg-norm</property>
|
||||
<entry><ind> 0.0</ind><dep>0.00</dep></entry>
|
||||
<entry><ind> 7.5</ind><dep>0.01</dep></entry>
|
||||
<entry><ind>17.0</ind><dep>0.03</dep></entry>
|
||||
</table>
|
||||
</difference>
|
||||
</expression>
|
||||
</input>
|
||||
<output>/fdm/jsbsim/fadec/epr/c2-raw</output>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>EPR Scale 2 Sum/Difference Exponential</name>
|
||||
<type>exponential</type>
|
||||
<gain>1.0</gain>
|
||||
<input>/fdm/jsbsim/fadec/epr/c2-raw</input>
|
||||
<output>/fdm/jsbsim/fadec/epr/c2</output>
|
||||
<filter-time>0.32</filter-time>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<name>Groundspeed Meters Per Second</name>
|
||||
<type>gain</type>
|
||||
|
|
Loading…
Add table
Reference in a new issue