This commit is contained in:
commit
601c7d4f7c
6 changed files with 889 additions and 10 deletions
|
@ -115,7 +115,6 @@ var phasecheck = maketimer(0.2, func {
|
|||
|
||||
if ((((n1_left >= 85) and (n1_right >= 85)) or (gs > 90 )) and flaps < 4 and (mode == "SRS")) {
|
||||
setprop("/FMGC/status/phase", "1");
|
||||
setprop("/systems/pressurization/mode", "TO");
|
||||
}
|
||||
|
||||
if ((aglalt >= reduc_agl_ft) and (alt <= cruiseft) and (phase == "1") and (phase != "4") and (mode != "SRS")) {
|
||||
|
@ -129,7 +128,6 @@ var phasecheck = maketimer(0.2, func {
|
|||
|
||||
if (alt <= cruiseft and (mode == "DES" or mode == "OP DES") and phase == "3") {
|
||||
setprop("/FMGC/status/phase", "4");
|
||||
setprop("/systems/pressurization/mode", "DE");
|
||||
}
|
||||
|
||||
if (getprop("/FMGC/status/to-state") == 0 and flaps >= 3 and ((phase == "3") or (phase == "4")) and alt < 7200) {
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
#############
|
||||
|
||||
var fuel_init = func {
|
||||
setprop("/systems/fuel/gravityfeedL", 0);
|
||||
setprop("/systems/fuel/gravityfeedR", 0);
|
||||
setprop("/systems/fuel/gravityfeedL-output", 0);
|
||||
setprop("/systems/fuel/gravityfeedR-output", 0);
|
||||
setprop("/controls/fuel/x-feed", 0);
|
||||
setprop("/controls/fuel/tank2pump1", 0);
|
||||
setprop("/controls/fuel/tank2pump2", 0);
|
||||
|
@ -40,15 +44,37 @@ var master_fuel = func {
|
|||
var xfeed = getprop("/systems/fuel/x-feed");
|
||||
var ac1 = getprop("/systems/electrical/bus/ac1");
|
||||
var ac2 = getprop("/systems/electrical/bus/ac2");
|
||||
var gravityfeedL = getprop("/systems/fuel/gravityfeedL");
|
||||
var gravityfeedR = getprop("/systems/fuel/gravityfeedR");
|
||||
var gload = getprop("/accelerations/pilot-gdamped");
|
||||
|
||||
if (gload >= 0.7 and gravityfeedL) {
|
||||
setprop("/systems/fuel/gravityfeedL-output", 1);
|
||||
} else {
|
||||
setprop("/systems/fuel/gravityfeedL-output", 0);
|
||||
}
|
||||
|
||||
if (gload >= 0.7 and gravityfeedR) {
|
||||
setprop("/systems/fuel/gravityfeedR-output", 1);
|
||||
} else {
|
||||
setprop("/systems/fuel/gravityfeedR-output", 0);
|
||||
}
|
||||
|
||||
var gravityfeedL_output = getprop("/systems/fuel/gravityfeedL-output");
|
||||
var gravityfeedR_output = getprop("/systems/fuel/gravityfeedR-output");
|
||||
|
||||
if ((ac1 >= 110 or ac2 >= 110) and tank2pump1_sw) {
|
||||
setprop("/systems/fuel/tank[2]/feed0", 1);
|
||||
} else if (gravityfeedL_output) {
|
||||
setprop("/systems/fuel/tank[2]/feed0", 1);
|
||||
} else {
|
||||
setprop("/systems/fuel/tank[2]/feed0", 0);
|
||||
}
|
||||
|
||||
if ((ac1 >= 110 or ac2 >= 110) and tank2pump2_sw) {
|
||||
setprop("/systems/fuel/tank[2]/feed1", 1);
|
||||
} else if (gravityfeedL_output) {
|
||||
setprop("/systems/fuel/tank[2]/feed1", 1);
|
||||
} else {
|
||||
setprop("/systems/fuel/tank[2]/feed1", 0);
|
||||
}
|
||||
|
@ -67,12 +93,16 @@ var master_fuel = func {
|
|||
|
||||
if ((ac1 >= 110 or ac2 >= 110) and tank4pump1_sw) {
|
||||
setprop("/systems/fuel/tank[4]/feed0", 1);
|
||||
} else if (gravityfeedR_output) {
|
||||
setprop("/systems/fuel/tank[2]/feed0", 1);
|
||||
} else {
|
||||
setprop("/systems/fuel/tank[4]/feed0", 0);
|
||||
}
|
||||
|
||||
if ((ac1 >= 110 or ac2 >= 110) and tank4pump2_sw) {
|
||||
setprop("/systems/fuel/tank[4]/feed1", 1);
|
||||
} else if (gravityfeedR_output) {
|
||||
setprop("/systems/fuel/tank[2]/feed1", 1);
|
||||
} else {
|
||||
setprop("/systems/fuel/tank[4]/feed1", 0);
|
||||
}
|
||||
|
@ -90,7 +120,22 @@ var master_fuel = func {
|
|||
var tank4feed0 = getprop("/systems/fuel/tank[4]/feed0");
|
||||
var tank4feed1 = getprop("/systems/fuel/tank[4]/feed1");
|
||||
|
||||
if ((getprop("/fdm/jsbsim/propulsion/tank[3]/contents-lbs") >= 50) and tank3feed0 and tank3feed1) {
|
||||
if (((ac1 >= 110 or ac2 >= 110) and tank2pump1_sw and tank2pump1_sw)) {
|
||||
setprop("/systems/fuel/gravityfeedL", 0);
|
||||
} else {
|
||||
setprop("/systems/fuel/gravityfeedL", 1);
|
||||
}
|
||||
|
||||
if (((ac1 >= 110 or ac2 >= 110) and tank4pump1_sw and tank4pump1_sw)) {
|
||||
setprop("/systems/fuel/gravityfeedR", 0);
|
||||
} else {
|
||||
setprop("/systems/fuel/gravityfeedR", 1);
|
||||
}
|
||||
|
||||
var gravityfeedL = getprop("/systems/fuel/gravityfeedL");
|
||||
var gravityfeedR = getprop("/systems/fuel/gravityfeedR");
|
||||
|
||||
if ((getprop("/fdm/jsbsim/propulsion/tank[3]/contents-lbs") >= 50) and tank3feed0 and tank3feed1 and !gravityfeedL and !gravityfeedR) {
|
||||
setprop("/systems/fuel/only-use-ctr-tank", 1);
|
||||
} else {
|
||||
setprop("/systems/fuel/only-use-ctr-tank", 0);
|
||||
|
|
|
@ -183,7 +183,7 @@ var master_pneu = func {
|
|||
}
|
||||
|
||||
if (cabinalt != targetalt and !wowl and !wowr and !pause) {
|
||||
setprop("/systems/pressurization/cabinalt", cabinalt + vs);
|
||||
setprop("/systems/pressurization/cabinalt", cabinalt + ((vs / 60) / 10));
|
||||
}
|
||||
|
||||
if (ditch and auto) {
|
||||
|
|
821
Resources/eicasIAE.svg
Normal file
821
Resources/eicasIAE.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 106 KiB |
15
Resources/eicasIAE.txt
Normal file
15
Resources/eicasIAE.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
no1eprarc
|
||||
no2eprarc
|
||||
no1n1arc
|
||||
no2n1arc
|
||||
no1egtarc
|
||||
no2egtarc
|
||||
n12egtarcred
|
||||
no2egtarcred
|
||||
|
||||
egt-1-text
|
||||
egt-2-text
|
||||
n1-1-text
|
||||
n1-2-text
|
||||
no1-epr
|
||||
no2-epr
|
|
@ -29,8 +29,8 @@
|
|||
<table>
|
||||
<property>/engines/engine[0]/fuel-flow_pph</property>
|
||||
<entry><ind> 0</ind><dep> 0</dep></entry>
|
||||
<entry><ind>2000</ind><dep> 2387</dep></entry>
|
||||
<entry><ind>9000</ind><dep>13847</dep></entry>
|
||||
<entry><ind>2000</ind><dep>2387</dep></entry>
|
||||
<entry><ind>9000</ind><dep>9847</dep></entry>
|
||||
</table>
|
||||
</expression>
|
||||
</input>
|
||||
|
@ -47,8 +47,8 @@
|
|||
<table>
|
||||
<property>/engines/engine[1]/fuel-flow_pph</property>
|
||||
<entry><ind> 0</ind><dep> 0</dep></entry>
|
||||
<entry><ind>2000</ind><dep> 2359</dep></entry>
|
||||
<entry><ind>9000</ind><dep>13831</dep></entry>
|
||||
<entry><ind>2000</ind><dep>2387</dep></entry>
|
||||
<entry><ind>9000</ind><dep>9847</dep></entry>
|
||||
</table>
|
||||
</expression>
|
||||
</input>
|
||||
|
|
Reference in a new issue