A3XX: THRRED and ACC are now from instrumentatin altimeter, make sure they are set correct before flying!

This commit is contained in:
Joshua Davidson 2017-07-03 18:09:22 -04:00
parent 0c1fd116a9
commit 4a97e1d3b7
2 changed files with 3 additions and 2 deletions

View file

@ -114,8 +114,9 @@ var phasecheck = maketimer(0.2, func {
var reduc_agl_ft = getprop("/it-autoflight/settings/reduc-agl-ft");
var locarm = getprop("/it-autopilot/output/loc-armed");
var apprarm = getprop("/it-autopilot/output/appr-armed");
var gear0 = getprop("/gear/gear[0]/wow");
if ((((n1_left >= 85) and (n1_right >= 85)) or (gs > 90 )) and (mode == "SRS")) {
if ((((n1_left >= 85) and (n1_right >= 85)) or (gs > 90 )) and (mode == "SRS") and gear0 == 1 and phase == 0) {
setprop("/FMGC/status/phase", "1");
setprop("/systems/pressurization/mode", "TO");
}

View file

@ -225,7 +225,7 @@ var thrust_loop = func {
if (getprop("/systems/thrust/state1") == "MAN" or getprop("/systems/thrust/state2") == "MAN") {
setprop("/systems/thrust/lvrclb", "1");
} else {
if (getprop("/position/gear-agl-ft") >= getprop("/systems/thrust/clbreduc-ft")) {
if (getprop("/instrumentation/altimeter/indicated-altitude-ft") >= getprop("/systems/thrust/clbreduc-ft") and getprop("/gear/gear[1]/wow") == 0 and getprop("/gear/gear[2]/wow") == 0) {
setprop("/systems/thrust/lvrclb", "1");
} else {
setprop("/systems/thrust/lvrclb", "0");