1
0
Fork 0
This commit is contained in:
Matthew Maring 2020-05-05 10:24:24 -04:00
parent 9e9f9f52f6
commit 62e77bce95
2 changed files with 7 additions and 3 deletions

View file

@ -227,7 +227,7 @@ var updateFuel = func {
if (dist < 0) {
dist = 0;
}
wind = getprop("/FMGC/internal/trip-wind");
wind_value = getprop("/FMGC/internal/trip-wind-value");
if (find("HD", wind) != -1 or find("-", wind) != -1 or find("H", wind) != -1) {

View file

@ -102,6 +102,10 @@ var initInputA = func(key, i) {
if (crzs == 0 and temps >= 1 and temps <= 3 and temp != nil and getprop("/FMGC/internal/cruise-lvl-set")) {
if (temp >= -99 and temp <= 99) {
setprop("/FMGC/internal/cruise-temp", temp);
if (getprop("/FMGC/internal/block-confirmed")) {
setprop("/FMGC/internal/fuel-calculating", 0);
setprop("/FMGC/internal/fuel-calculating", 1);
}
setprop("MCDU[" ~ i ~ "]/scratchpad", "");
} else {
notAllowed(i);
@ -112,12 +116,12 @@ var initInputA = func(key, i) {
setprop("/FMGC/internal/cruise-fl", crz);
setprop("/FMGC/internal/cruise-fl-prog", crz);
setprop("/FMGC/internal/cruise-lvl-set", 1);
setprop("/FMGC/internal/cruise-temp", temp);
setprop("/FMGC/internal/cruise-temp-set", 1);
if (getprop("/FMGC/internal/block-confirmed")) {
setprop("/FMGC/internal/fuel-calculating", 0);
setprop("/FMGC/internal/fuel-calculating", 1);
}
setprop("/FMGC/internal/cruise-temp", temp);
setprop("/FMGC/internal/cruise-temp-set", 1);
setprop("MCDU[" ~ i ~ "]/scratchpad", "");
} else {
notAllowed(i);