Fix miscellaneous bugs, including:
- RETURN did not operate on DUPLICATE NAMES - Formatting of DUPLICATE NAMES LAT / LON did not have leading zeroes - Default SID did not set altitude constraint - Sequencing would occur repeatedly when paused
This commit is contained in:
parent
e62e08fef1
commit
533583ce3f
3 changed files with 7 additions and 1 deletions
|
@ -215,6 +215,8 @@ var flightPlanController = {
|
|||
|
||||
autoSequencing: func() {
|
||||
if (!me.active.getBoolValue()) { return; }
|
||||
if (pts.Sim.Pause.getBoolValue()) { return; }
|
||||
|
||||
me.calculateTimeAltitudeOnSequence();
|
||||
|
||||
# Advancing logic
|
||||
|
@ -328,6 +330,7 @@ var flightPlanController = {
|
|||
# fudge the altitude since we cannot create a hdgtoAlt from nasal. Assume 600 feet per mile - 2.5 miles
|
||||
me.flightplans[n].insertWP(createWP(me.childWPBearingDistance(wptStore, me.flightplans[n].departure_runway.heading, 2.5 + (me.flightplans[n].departure_runway.length * M2NM)), "1500", "sid"), 1);
|
||||
me.flightplans[n].getWP(1).fly_type = "flyOver";
|
||||
me.flightplans[n].getWP(1).setAltitude(1500, "at");
|
||||
fmgc.windController.insertWind(n, 1, 0, "1500");
|
||||
}
|
||||
me.flightPlanChanged(n);
|
||||
|
|
|
@ -665,8 +665,9 @@ var decimalToShortString = func(dms, type) {
|
|||
var degrees = split(".", sprintf(dms))[0];
|
||||
if (type == "lat") {
|
||||
var sign = degrees >= 0 ? "N" : "S";
|
||||
return sprintf("%02d", abs(degrees)) ~ sign;
|
||||
} else {
|
||||
var sign = degrees >= 0 ? "E" : "W";
|
||||
return sprintf("%03d", abs(degrees)) ~ sign;
|
||||
}
|
||||
return abs(degrees) ~ sign;
|
||||
}
|
|
@ -851,6 +851,8 @@ var lskbutton = func(btn, i) {
|
|||
} else {
|
||||
if (canvas_mcdu.myDuplicate[i] != nil and canvas_mcdu.myDuplicate[i].flagPROG) {
|
||||
pagebutton("prog",i);
|
||||
} else {
|
||||
pageNode[i].setValue("F-PLNA");
|
||||
}
|
||||
}
|
||||
} else if (page == "ARRIVAL") {
|
||||
|
|
Loading…
Reference in a new issue