Bugfix for from waypoint, also bugfix for the aproach vias
This commit is contained in:
parent
06065f953d
commit
2d4ea99e68
2 changed files with 2 additions and 2 deletions
|
@ -660,7 +660,7 @@ var arrivalPage = {
|
||||||
me.L2 = [nil, nil, "wht"];
|
me.L2 = [nil, nil, "wht"];
|
||||||
me.arrowsMatrix[0][1] = 0;
|
me.arrowsMatrix[0][1] = 0;
|
||||||
me.arrowsColour[0][1] = "wht";
|
me.arrowsColour[0][1] = "wht";
|
||||||
} else {
|
} elsif (me.activePage == 1) {
|
||||||
me.L2 = [" VIAS", " APPR", "wht"];
|
me.L2 = [" VIAS", " APPR", "wht"];
|
||||||
me.arrowsMatrix[0][1] = 1;
|
me.arrowsMatrix[0][1] = 1;
|
||||||
me.arrowsColour[0][1] = "wht";
|
me.arrowsColour[0][1] = "wht";
|
||||||
|
|
|
@ -106,7 +106,7 @@ var fplnItem = {
|
||||||
if (me.index == 0 and left(me.wp.wp_name, 4) == getprop("/FMGC/internal/dep-arpt") and fmgc.flightPlanController.flightplans[me.plan].departure != nil) {
|
if (me.index == 0 and left(me.wp.wp_name, 4) == getprop("/FMGC/internal/dep-arpt") and fmgc.flightPlanController.flightplans[me.plan].departure != nil) {
|
||||||
return [" " ~ sprintf("%-5.0f", math.round(fmgc.flightPlanController.flightplans[me.plan].departure.elevation * M2FT)), "mag"];
|
return [" " ~ sprintf("%-5.0f", math.round(fmgc.flightPlanController.flightplans[me.plan].departure.elevation * M2FT)), "mag"];
|
||||||
} elsif (me.index == (fmgc.flightPlanController.currentToWptIndex.getValue() - 1) and fmgc.flightPlanController.fromWptAlt != nil) {
|
} elsif (me.index == (fmgc.flightPlanController.currentToWptIndex.getValue() - 1) and fmgc.flightPlanController.fromWptAlt != nil) {
|
||||||
return [" " ~ fmgc.flightPlanController.fromWptAlt, "mag"];
|
return [" " ~ fmgc.flightPlanController.fromWptAlt, "mag"];
|
||||||
} elsif (me.wp.alt_cstr != nil and me.wp.alt_cstr != 0) {
|
} elsif (me.wp.alt_cstr != nil and me.wp.alt_cstr != 0) {
|
||||||
if (me.wp.alt_cstr > fmgc.FMGCInternal.transAlt) {
|
if (me.wp.alt_cstr > fmgc.FMGCInternal.transAlt) {
|
||||||
return [" " ~ sprintf("%-5s", "FL" ~ math.round(num(me.wp.alt_cstr) / 100)), "mag"];
|
return [" " ~ sprintf("%-5s", "FL" ~ math.round(num(me.wp.alt_cstr) / 100)), "mag"];
|
||||||
|
|
Loading…
Reference in a new issue