Fuel now updates for all revisions + clearing a discontinuity
This commit is contained in:
parent
568d265dea
commit
192ef3a4d9
2 changed files with 10 additions and 0 deletions
|
@ -647,6 +647,11 @@ var flightPlanController = {
|
||||||
append(wpDistancePrev[n], props.globals.initNode("/FMGC/flightplan[" ~ n ~ "]/wp[" ~ counter ~ "]/distance-from-prev", 0, "DOUBLE"));
|
append(wpDistancePrev[n], props.globals.initNode("/FMGC/flightplan[" ~ n ~ "]/wp[" ~ counter ~ "]/distance-from-prev", 0, "DOUBLE"));
|
||||||
}
|
}
|
||||||
me.updatePlans();
|
me.updatePlans();
|
||||||
|
# push update to fuel
|
||||||
|
if (getprop("/FMGC/internal/block-confirmed")) {
|
||||||
|
setprop("/FMGC/internal/fuel-calculating", 0);
|
||||||
|
setprop("/FMGC/internal/fuel-calculating", 1);
|
||||||
|
}
|
||||||
canvas_nd.A3XXRouteDriver.triggerSignal("fp-added");
|
canvas_nd.A3XXRouteDriver.triggerSignal("fp-added");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -391,6 +391,11 @@ var fplnPage = { # this one is only created once, and then updated - remember th
|
||||||
if (index == 6) {
|
if (index == 6) {
|
||||||
if (fmgc.flightPlanController.temporaryFlag[me.computer]) {
|
if (fmgc.flightPlanController.temporaryFlag[me.computer]) {
|
||||||
fmgc.flightPlanController.destroyTemporaryFlightPlan(me.computer, 0);
|
fmgc.flightPlanController.destroyTemporaryFlightPlan(me.computer, 0);
|
||||||
|
# push update to fuel
|
||||||
|
if (getprop("/FMGC/internal/block-confirmed")) {
|
||||||
|
setprop("/FMGC/internal/fuel-calculating", 0);
|
||||||
|
setprop("/FMGC/internal/fuel-calculating", 1);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (canvas_mcdu.myLatRev[me.computer] != nil) {
|
if (canvas_mcdu.myLatRev[me.computer] != nil) {
|
||||||
canvas_mcdu.myLatRev[me.computer].del();
|
canvas_mcdu.myLatRev[me.computer].del();
|
||||||
|
|
Loading…
Reference in a new issue