Slight corrections
This commit is contained in:
parent
2fcfbcb180
commit
d8f83979c4
2 changed files with 4 additions and 2 deletions
|
@ -162,13 +162,13 @@ var flightPlanController = {
|
||||||
me.flightplans[plan].insertWP(createWPFrom(waypointGhost), 2);
|
me.flightplans[plan].insertWP(createWPFrom(waypointGhost), 2);
|
||||||
me.addDiscontinuity(3, plan);
|
me.addDiscontinuity(3, plan);
|
||||||
me.deleteWP(0, plan);
|
me.deleteWP(0, plan);
|
||||||
var curAircraftPosDirTo = geo.aircraft_position();
|
|
||||||
canvas_mcdu.myDirTo[plan].updateDist(me.flightplans[plan].getWP(1).courseAndDistanceFrom(curAircraftPosDirTo)[1]);
|
|
||||||
} else {
|
} else {
|
||||||
me.insertTP(plan);
|
me.insertTP(plan);
|
||||||
#todo
|
#todo
|
||||||
}
|
}
|
||||||
me.flightPlanChanged(plan);
|
me.flightPlanChanged(plan);
|
||||||
|
var curAircraftPosDirTo = geo.aircraft_position();
|
||||||
|
canvas_mcdu.myDirTo[plan].updateDist(me.flightplans[plan].getWP(1).courseAndDistanceFrom(curAircraftPosDirTo)[1]);
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteWP: func(index, n, a = 0, s = 0) { # a = 1, means adding a waypoint via deleting intermediate
|
deleteWP: func(index, n, a = 0, s = 0) { # a = 1, means adding a waypoint via deleting intermediate
|
||||||
|
|
|
@ -244,6 +244,7 @@ var dirTo = {
|
||||||
notAllowed(me.computer);
|
notAllowed(me.computer);
|
||||||
}
|
}
|
||||||
me.L1 = [" [ ]", " WAYPOINT", "blu"];
|
me.L1 = [" [ ]", " WAYPOINT", "blu"];
|
||||||
|
me.R1 = ["---- --- ", "UTC DIST ", "wht"];
|
||||||
},
|
},
|
||||||
fieldR6: func() {
|
fieldR6: func() {
|
||||||
if (fmgc.flightPlanController.temporaryFlag[me.computer] and dirToFlag) {
|
if (fmgc.flightPlanController.temporaryFlag[me.computer] and dirToFlag) {
|
||||||
|
@ -253,6 +254,7 @@ var dirTo = {
|
||||||
notAllowed(me.computer);
|
notAllowed(me.computer);
|
||||||
}
|
}
|
||||||
me.L1 = [" [ ]", " WAYPOINT", "blu"];
|
me.L1 = [" [ ]", " WAYPOINT", "blu"];
|
||||||
|
me.R1 = ["---- --- ", "UTC DIST ", "wht"];
|
||||||
},
|
},
|
||||||
updateDist: func(dist) {
|
updateDist: func(dist) {
|
||||||
me.R1 = ["---- " ~ sprintf("%.0f", dist) ~ " ", "UTC DIST ", "wht"];
|
me.R1 = ["---- " ~ sprintf("%.0f", dist) ~ " ", "UTC DIST ", "wht"];
|
||||||
|
|
Loading…
Reference in a new issue