Hide the DECEL after the sequencing. Fix a nasal error where the static text broke the direct to
This commit is contained in:
parent
6cb990b8f6
commit
e6e0679a81
5 changed files with 6 additions and 1 deletions
|
@ -643,6 +643,7 @@ var masterFMGC = maketimer(0.2, func {
|
|||
courseDistanceDecel = courseAndDistance(flightPlanController.decelPoint.lat, flightPlanController.decelPoint.lon);
|
||||
if (flightPlanController.num[2].getValue() > 0 and fmgc.flightPlanController.active.getBoolValue() and flightPlanController.decelPoint != nil and (courseDistanceDecel[1] <= 5 and (math.abs(courseDistanceDecel[0] - pts.Orientation.heading.getValue()) >= 90 and xtrkError <= 5) or courseDistanceDecel[1] <= 0.1) and (modelat == "NAV" or modelat == "LOC" or modelat == "LOC*") and pts.Position.gearAglFt.getValue() < 9500) {
|
||||
FMGCInternal.decel = 1;
|
||||
setprop("/instrumentation/nd/symbols/decel/show", 0);
|
||||
} elsif (FMGCInternal.decel and (FMGCInternal.phase == 0 or FMGCInternal.phase == 6)) {
|
||||
FMGCInternal.decel = 0;
|
||||
}
|
||||
|
|
|
@ -83,7 +83,8 @@ var dirTo = {
|
|||
var dirToLeftIndex = 0;
|
||||
me.vector = [];
|
||||
for (var i = 1 + (me.scroll); i < size(canvas_mcdu.myFpln[me.computer].planList) - 2; i = i + 1) {
|
||||
if (canvas_mcdu.myFpln[me.computer].planList[i].wp == "PSEUDO" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_name == "DISCONTINUITY" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_name == "VECTORS" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_name == "T-P" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_type == "hdgToAlt") { continue; }
|
||||
debug.dump(canvas_mcdu.myFpln[me.computer].planList[i].wp);
|
||||
if (canvas_mcdu.myFpln[me.computer].planList[i].wp == "PSEUDO" or canvas_mcdu.myFpln[me.computer].planList[i].wp == "STATIC" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_name == "DISCONTINUITY" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_name == "VECTORS" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_name == "T-P" or canvas_mcdu.myFpln[me.computer].planList[i].wp.wp_type == "hdgToAlt") { continue; }
|
||||
if (canvas_mcdu.myFpln[me.computer].planList[i].index > fmgc.flightPlanController.arrivalIndex[2]) { continue; }
|
||||
append(me.vector, canvas_mcdu.myFpln[me.computer].planList[i].wp);
|
||||
dirToLeftIndex += 1;
|
||||
|
|
|
@ -39,6 +39,7 @@ var perfCLBInput = func(key, i) {
|
|||
setprop("/FMGC/internal/activate-twice", 1);
|
||||
fmgc.FMGCInternal.phase = 5;
|
||||
fmgc.FMGCInternal.decel = 1;
|
||||
setprop("/instrumentation/nd/symbols/decel/show", 0);
|
||||
setprop("MCDU[" ~ i ~ "]/page", "PERFAPPR");
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
|
|
|
@ -33,6 +33,7 @@ var perfCRZInput = func(key, i) {
|
|||
setprop("/FMGC/internal/activate-twice", 1);
|
||||
fmgc.FMGCInternal.phase = 5;
|
||||
fmgc.FMGCInternal.decel = 1;
|
||||
setprop("/instrumentation/nd/symbols/decel/show", 0);
|
||||
setprop("MCDU[" ~ i ~ "]/page", "PERFAPPR");
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
|
|
|
@ -33,6 +33,7 @@ var perfDESInput = func(key, i) {
|
|||
setprop("/FMGC/internal/activate-twice", 1);
|
||||
fmgc.FMGCInternal.phase = 5;
|
||||
fmgc.FMGCInternal.decel = 1;
|
||||
setprop("/instrumentation/nd/symbols/decel/show", 0);
|
||||
setprop("MCDU[" ~ i ~ "]/page", "PERFAPPR");
|
||||
} else {
|
||||
mcdu_message(i, "NOT ALLOWED");
|
||||
|
|
Loading…
Reference in a new issue