A32X: Fix FMGC bugs, fix managed speed calculation

This commit is contained in:
Joshua Davidson 2017-10-16 22:04:03 -04:00
parent 54600be193
commit aa0c077dcb
3 changed files with 5 additions and 9 deletions

View file

@ -212,7 +212,7 @@ var phasecheck = maketimer(0.2, func {
setprop("/systems/pressurization/mode", "TO");
}
if ((alt <= cruiseft_b) and (phase == "1") and (phase != "4") and (mode != "SRS")) {
if ((alt <= cruiseft_b) and (phase == "1") and (phase != "4") and (mode == "OP CLB" or mode == "CLB" or (modeI == "V/S" and getprop("/it-autoflight/input/vs") >= 100))) {
setprop("/FMGC/status/phase", "2");
setprop("/systems/pressurization/mode", "TO");
} else if ((phase == 3 or phase == 4) and (mode == "OP CLB" or mode == "CLB" or (modeI == "V/S" and getprop("/it-autoflight/input/vs") >= 100))) {

View file

@ -155,11 +155,7 @@
<input>
<expression>
<product>
<table>
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
<entry><ind>10000</ind><dep>286</dep></entry>
<entry><ind>42000</ind><dep>249</dep></entry>
</table>
<value>266</value>
<table>
<property>/FMGC/internal/cost-index</property>
<entry><ind> 0</ind><dep>1.00</dep></entry>
@ -181,8 +177,8 @@
<product>
<table>
<property>/instrumentation/altimeter/indicated-altitude-ft</property>
<entry><ind>26000</ind><dep>0.705</dep></entry>
<entry><ind>42000</ind><dep>0.815</dep></entry>
<entry><ind>20000</ind><dep>0.585</dep></entry>
<entry><ind>42000</ind><dep>0.825</dep></entry>
</table>
<table>
<property>/FMGC/internal/cost-index</property>

View file

@ -1 +1 @@
2130
2131