Temp fix
This commit is contained in:
parent
9e9f9f52f6
commit
62e77bce95
2 changed files with 7 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue