FMGC: make more F-PLN stuff work properly
This commit is contained in:
parent
169a8c5e45
commit
c760a823b5
2 changed files with 208 additions and 212 deletions
|
@ -117,13 +117,6 @@ var TMPYActive = [props.globals.getNode("/FMGC/internal/tmpy-active[0]"), props.
|
|||
var pageProp = [props.globals.getNode("/MCDU[0]/page", 1), props.globals.getNode("/MCDU[1]/page", 1)];
|
||||
var active = [props.globals.getNode("/MCDU[0]/active", 1), props.globals.getNode("/MCDU[1]/active", 1)];
|
||||
var scratchpad = [props.globals.getNode("/MCDU[0]/scratchpad", 1), props.globals.getNode("/MCDU[1]/scratchpad", 1)];
|
||||
var fplnL1s = [props.globals.getNode("/MCDU[0]/F-PLN/left-1s", 1), props.globals.getNode("/MCDU[1]/F-PLN/left-1s", 1)];
|
||||
var fplnL2s = [props.globals.getNode("/MCDU[0]/F-PLN/left-2s", 1), props.globals.getNode("/MCDU[1]/F-PLN/left-2s", 1)];
|
||||
var fplnL3s = [props.globals.getNode("/MCDU[0]/F-PLN/left-3s", 1), props.globals.getNode("/MCDU[1]/F-PLN/left-3s", 1)];
|
||||
var fplnL4s = [props.globals.getNode("/MCDU[0]/F-PLN/left-4s", 1), props.globals.getNode("/MCDU[1]/F-PLN/left-4s", 1)];
|
||||
var fplnL5s = [props.globals.getNode("/MCDU[0]/F-PLN/left-5s", 1), props.globals.getNode("/MCDU[1]/F-PLN/left-5s", 1)];
|
||||
var fplnL6s = [props.globals.getNode("/MCDU[0]/F-PLN/left-6s", 1), props.globals.getNode("/MCDU[1]/F-PLN/left-6s", 1)];
|
||||
var showFromInd = [props.globals.getNode("MCDU[0]/F-PLN/show-from", 1), props.globals.getNode("MCDU[1]/F-PLN/show-from", 1)];
|
||||
|
||||
# Create Nodes:
|
||||
var pageSwitch = [props.globals.initNode("/MCDU[0]/internal/switch", 0, "BOOL"), props.globals.initNode("/MCDU[1]/internal/switch", 0, "BOOL")];
|
||||
|
@ -217,135 +210,135 @@ var canvas_MCDU_base = {
|
|||
me["FPLN_Callsign"].hide();
|
||||
}
|
||||
|
||||
fplnLineSize = size(mcdu.MCDULines[i].output);
|
||||
fplnLineSize = size(mcdu.FPLNLines[i].output);
|
||||
|
||||
if (fplnLineSize >= 1) {
|
||||
fplnl1 = mcdu.MCDULines[i].output[0].getText(i);
|
||||
fplnl1 = mcdu.FPLNLines[i].output[0].getText();
|
||||
if (fplnl1 != "") {
|
||||
me["FPLN_L1"].setColor(mcdu.MCDULines[i].output[0].getColor(i));
|
||||
me["FPLN_L1"].setColor(mcdu.FPLNLines[i].output[0].getColor(i));
|
||||
me["FPLN_L1"].setText(fplnl1);
|
||||
me["FPLN_L1"].show();
|
||||
} else {
|
||||
me["FPLN_L1"].hide();
|
||||
}
|
||||
fplnl1s = mcdu.FPLNLines[i].output[0].getSubText();
|
||||
if (fplnl1s != "") {
|
||||
me["FPLN_L1S"].setText(fplnl1s);
|
||||
me["FPLN_L1S"].show();
|
||||
} else {
|
||||
me["FPLN_L1S"].hide();
|
||||
}
|
||||
} else {
|
||||
me["FPLN_L1"].hide();
|
||||
me["FPLN_L1S"].hide();
|
||||
}
|
||||
|
||||
if (fplnLineSize >= 2) {
|
||||
fplnl2 = mcdu.MCDULines[i].output[1].getText(i);
|
||||
fplnl2 = mcdu.FPLNLines[i].output[1].getText();
|
||||
if (fplnl2 != "") {
|
||||
me["FPLN_L2"].setColor(mcdu.MCDULines[i].output[1].getColor(i));
|
||||
me["FPLN_L2"].setColor(mcdu.FPLNLines[i].output[1].getColor(i));
|
||||
me["FPLN_L2"].setText(fplnl2);
|
||||
me["FPLN_L2"].show();
|
||||
} else {
|
||||
me["FPLN_L2"].hide();
|
||||
}
|
||||
fplnl2s = mcdu.FPLNLines[i].output[1].getSubText();
|
||||
if (fplnl2s != "") {
|
||||
me["FPLN_L2S"].setText(fplnl2s);
|
||||
me["FPLN_L2S"].show();
|
||||
} else {
|
||||
me["FPLN_L2S"].hide();
|
||||
}
|
||||
} else {
|
||||
me["FPLN_L2"].hide();
|
||||
me["FPLN_L2S"].hide();
|
||||
}
|
||||
|
||||
if (fplnLineSize >= 3) {
|
||||
fplnl3 = mcdu.MCDULines[i].output[2].getText(i);
|
||||
fplnl3 = mcdu.FPLNLines[i].output[2].getText();
|
||||
if (fplnl3 != "") {
|
||||
me["FPLN_L3"].setColor(mcdu.MCDULines[i].output[2].getColor(i));
|
||||
me["FPLN_L3"].setColor(mcdu.FPLNLines[i].output[2].getColor(i));
|
||||
me["FPLN_L3"].setText(fplnl3);
|
||||
me["FPLN_L3"].show();
|
||||
} else {
|
||||
me["FPLN_L3"].hide();
|
||||
}
|
||||
fplnl3s = mcdu.FPLNLines[i].output[2].getSubText();
|
||||
if (fplnl3s != "") {
|
||||
me["FPLN_L3S"].setText(fplnl3s);
|
||||
me["FPLN_L3S"].show();
|
||||
} else {
|
||||
me["FPLN_L3S"].hide();
|
||||
}
|
||||
} else {
|
||||
me["FPLN_L3"].hide();
|
||||
me["FPLN_L3S"].hide();
|
||||
}
|
||||
|
||||
if (fplnLineSize >= 4) {
|
||||
fplnl4 = mcdu.MCDULines[i].output[3].getText(i);
|
||||
fplnl4 = mcdu.FPLNLines[i].output[3].getText();
|
||||
if (fplnl4 != "") {
|
||||
me["FPLN_L4"].setColor(mcdu.MCDULines[i].output[3].getColor(i));
|
||||
me["FPLN_L4"].setColor(mcdu.FPLNLines[i].output[3].getColor(i));
|
||||
me["FPLN_L4"].setText(fplnl4);
|
||||
me["FPLN_L4"].show();
|
||||
} else {
|
||||
me["FPLN_L4"].hide();
|
||||
}
|
||||
fplnl4s = mcdu.FPLNLines[i].output[3].getSubText();
|
||||
if (fplnl4s != "") {
|
||||
me["FPLN_L4S"].setText(fplnl4s);
|
||||
me["FPLN_L4S"].show();
|
||||
} else {
|
||||
me["FPLN_L4S"].hide();
|
||||
}
|
||||
} else {
|
||||
me["FPLN_L4"].hide();
|
||||
me["FPLN_L4S"].hide();
|
||||
}
|
||||
|
||||
if (fplnLineSize >= 5) {
|
||||
fplnl5 = mcdu.MCDULines[i].output[4].getText(i);
|
||||
fplnl5 = mcdu.FPLNLines[i].output[4].getText();
|
||||
if (fplnl5 != "") {
|
||||
me["FPLN_L5"].setColor(mcdu.MCDULines[i].output[4].getColor(i));
|
||||
me["FPLN_L5"].setColor(mcdu.FPLNLines[i].output[4].getColor(i));
|
||||
me["FPLN_L5"].setText(fplnl5);
|
||||
me["FPLN_L5"].show();
|
||||
} else {
|
||||
me["FPLN_L5"].hide();
|
||||
}
|
||||
fplnl5s = mcdu.FPLNLines[i].output[4].getSubText();
|
||||
if (fplnl5s != "") {
|
||||
me["FPLN_L5S"].setText(fplnl5s);
|
||||
me["FPLN_L5S"].show();
|
||||
} else {
|
||||
me["FPLN_L5S"].hide();
|
||||
}
|
||||
} else {
|
||||
me["FPLN_L5"].hide();
|
||||
me["FPLN_L5S"].hide();
|
||||
}
|
||||
|
||||
if (fplnLineSize >= 6) {
|
||||
fplnl6 = mcdu.MCDULines[i].output[5].getText(i);
|
||||
fplnl6 = mcdu.FPLNLines[i].output[5].getText();
|
||||
if (fplnl6 != "") {
|
||||
me["FPLN_L6"].setColor(mcdu.MCDULines[i].output[5].getColor(i));
|
||||
me["FPLN_L6"].setColor(mcdu.FPLNLines[i].output[5].getColor(i));
|
||||
me["FPLN_L6"].setText(fplnl6);
|
||||
me["FPLN_L6"].show();
|
||||
} else {
|
||||
me["FPLN_L6"].hide();
|
||||
}
|
||||
fplnl6s = mcdu.FPLNLines[i].output[5].getSubText();
|
||||
if (fplnl6s != "") {
|
||||
me["FPLN_L6S"].setText(fplnl6s);
|
||||
me["FPLN_L6S"].show();
|
||||
} else {
|
||||
me["FPLN_L6S"].hide();
|
||||
}
|
||||
} else {
|
||||
me["FPLN_L6"].hide();
|
||||
}
|
||||
|
||||
fplnl1s = fplnL1s[i].getValue();
|
||||
if (fplnl1s != "") {
|
||||
me["FPLN_L1S"].setText(fplnl1s);
|
||||
me["FPLN_L1S"].show();
|
||||
} else {
|
||||
me["FPLN_L1S"].hide();
|
||||
}
|
||||
|
||||
fplnl2s = fplnL2s[i].getValue();
|
||||
if (fplnl2s != "") {
|
||||
me["FPLN_L2S"].setText(fplnl2s);
|
||||
me["FPLN_L2S"].show();
|
||||
} else {
|
||||
me["FPLN_L2S"].hide();
|
||||
}
|
||||
|
||||
fplnl3s = fplnL3s[i].getValue();
|
||||
if (fplnl3s != "") {
|
||||
me["FPLN_L3S"].setText(fplnl3s);
|
||||
me["FPLN_L3S"].show();
|
||||
} else {
|
||||
me["FPLN_L3S"].hide();
|
||||
}
|
||||
|
||||
fplnl4s = fplnL4s[i].getValue();
|
||||
if (fplnl4s != "") {
|
||||
me["FPLN_L4S"].setText(fplnl4s);
|
||||
me["FPLN_L4S"].show();
|
||||
} else {
|
||||
me["FPLN_L4S"].hide();
|
||||
}
|
||||
|
||||
fplnl5s = fplnL5s[i].getValue();
|
||||
if (fplnl5s != "") {
|
||||
me["FPLN_L5S"].setText(fplnl5s);
|
||||
me["FPLN_L5S"].show();
|
||||
} else {
|
||||
me["FPLN_L5S"].hide();
|
||||
}
|
||||
|
||||
fplnl6s = fplnL6s[i].getValue();
|
||||
if (fplnl6s != "") {
|
||||
me["FPLN_L6S"].setText(fplnl6s);
|
||||
me["FPLN_L6S"].show();
|
||||
} else {
|
||||
me["FPLN_L6S"].hide();
|
||||
}
|
||||
|
||||
if (showFromInd[i].getBoolValue()) {
|
||||
if (mcdu.FPLNLines[i].index == 0) {
|
||||
me["FPLN_From"].show();
|
||||
} else {
|
||||
me["FPLN_From"].hide();
|
||||
|
|
|
@ -32,7 +32,7 @@ var StaticText = {
|
|||
in.type = type;
|
||||
return in;
|
||||
},
|
||||
getText: func(i) {
|
||||
getText: func() {
|
||||
if (me.type == "discontinuity") {
|
||||
return "---F-PLN DISCONTINUITY--";
|
||||
} else if (me.type == "fplnEnd") {
|
||||
|
@ -43,9 +43,12 @@ var StaticText = {
|
|||
return "------NO ALTN F-PLN-----";
|
||||
}
|
||||
},
|
||||
getColor: func(i) {
|
||||
getColor: func() {
|
||||
return canvas_mcdu.WHITE;
|
||||
},
|
||||
getSubText: func() {
|
||||
return "";
|
||||
},
|
||||
type: nil,
|
||||
pushButtonLeft: func() {
|
||||
|
||||
|
@ -55,18 +58,19 @@ var StaticText = {
|
|||
},
|
||||
};
|
||||
|
||||
var MCDUText = {
|
||||
new: func(wp, dest) {
|
||||
var in = {parents:[MCDUText]};
|
||||
var FPLNText = {
|
||||
new: func(wp, dest, fp, wpIndex) {
|
||||
var in = {parents:[FPLNText]};
|
||||
in.wp = wp;
|
||||
in.dest = dest;
|
||||
in.fp = fp;
|
||||
in.index = wpIndex;
|
||||
return in;
|
||||
},
|
||||
getText: func(i) {
|
||||
getText: func() {
|
||||
return me.wp.wp_name;
|
||||
},
|
||||
getColor: func(i) {
|
||||
|
||||
if (TMPYActive[i].getBoolValue()) {
|
||||
if (me.dest) {
|
||||
return canvas_mcdu.WHITE;
|
||||
|
@ -81,6 +85,9 @@ var MCDUText = {
|
|||
}
|
||||
}
|
||||
},
|
||||
getSubText: func() {
|
||||
return "C" ~ sprintf("%03d", fmgc.wpCoursePrev[me.fp][me.index].getValue()) ~ "g"; # g is a degrees symbol in the MCDU font
|
||||
},
|
||||
wp: nil,
|
||||
pushButtonLeft: func() {
|
||||
|
||||
|
@ -94,6 +101,8 @@ var FPLNLineComputer = {
|
|||
new: func(mcdu) {
|
||||
var in = {parents:[FPLNLineComputer]};
|
||||
in.mcdu = mcdu;
|
||||
in.planEnd = StaticText.new("fplnEnd");
|
||||
in.planNoAlt = StaticText.new("noAltnFpln");
|
||||
if (debug == 1) printf("%d: Line computer created.", in.mcdu);
|
||||
return in;
|
||||
},
|
||||
|
@ -106,41 +115,35 @@ var FPLNLineComputer = {
|
|||
lines: nil,
|
||||
output: [],
|
||||
mcdu: nil,
|
||||
fplnID: nil,
|
||||
enableScroll: 0,
|
||||
updatePlan: func(fpln) {
|
||||
if (debug == 1) printf("oops, this method is not ready yet");
|
||||
# Here you make the line instances and put them into me.planList
|
||||
me.checkIndex();
|
||||
me.updateScroll();
|
||||
},
|
||||
replacePlan: func(fpln, lines, destIndex) {
|
||||
replacePlan: func(fplnID, lines, destIndex, firstLineIndex) {
|
||||
# Here you set another plan, do this when changing plan on display or when destination changes
|
||||
if (debug == 1) printf("%d: replacePlan called for %d lines and destIndex %d", me.mcdu, lines, destIndex);
|
||||
fpln = fmgc.fp[fplnID]; # Get the Nasal Flightplan
|
||||
me.planList = [];
|
||||
for (var j = 0; j < fpln.getPlanSize(); j += 1) {
|
||||
me.dest = 0;
|
||||
if (j == destIndex) {
|
||||
me.dest = 1;
|
||||
}
|
||||
append(me.planList, MCDUText.new(fpln.getWP(j), me.dest));
|
||||
append(me.planList, FPLNText.new(fpln.getWP(j), me.dest, fplnID, j));
|
||||
}
|
||||
me.destination = MCDUText.new(fpln.getWP(destIndex), 1);
|
||||
me.destination = FPLNText.new(fpln.getWP(destIndex), 1, fplnID, destIndex);
|
||||
if (debug == 1) printf("%d: dest is: %s", me.mcdu, fpln.getWP(destIndex).wp_name);
|
||||
me.planEnd = StaticText.new("fplnEnd");
|
||||
me.planNoAlt = StaticText.new("noAltnFpln");
|
||||
me.destIndex = destIndex;
|
||||
me.initScroll(lines);
|
||||
},
|
||||
initScroll: func(lines) {
|
||||
me.index = firstLineIndex;
|
||||
me.lines = lines;
|
||||
me.index = 0;
|
||||
me.initScroll();
|
||||
},
|
||||
initScroll: func() {
|
||||
me.maxItems = size(me.planList) + 2; # + 2 is for end of plan line and altn end of plan.
|
||||
me.enableScroll = lines < me.maxItems;
|
||||
me.enableScroll = me.lines < me.maxItems;
|
||||
if (debug == 1) printf("%d: scroll is %d. Size of plan is %d", me.mcdu, me.enableScroll, size(me.planList));
|
||||
me.updateScroll();
|
||||
},
|
||||
checkIndex: func() {
|
||||
if (debug == 1) printf("oops, this method is not ready yet");
|
||||
printf("oops, this method is not ready yet");
|
||||
if (me.lines == MAIN) {
|
||||
me.extra = 2;
|
||||
} else {
|
||||
|
@ -159,7 +162,7 @@ var FPLNLineComputer = {
|
|||
me.index = 0;
|
||||
} else {
|
||||
me.index += 1;
|
||||
if (me.index > size(me.planList) + 1) {
|
||||
if (me.index > size(me.planList) + 2 - me.lines) {
|
||||
me.index = 0;
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +176,7 @@ var FPLNLineComputer = {
|
|||
} else {
|
||||
me.index -= 1;
|
||||
if (me.index < 0) {
|
||||
me.index = size(me.planList) + 1;
|
||||
me.index = size(me.planList) + 2 - me.lines;
|
||||
}
|
||||
}
|
||||
me.updateScroll();
|
||||
|
@ -195,7 +198,7 @@ var FPLNLineComputer = {
|
|||
if (debug == 1) printf("%d: added dest at bottom for total of %d lines", me.mcdu, size(me.output));
|
||||
return;
|
||||
} else if (size(me.output) < me.lines) {
|
||||
for (i = me.realIndex+1; size(me.output) < me.lines and i < size(me.planList); i += 1) {
|
||||
for (i = me.realIndex + 1; size(me.output) < me.lines and i < size(me.planList); i += 1) {
|
||||
append(me.output, me.planList[i]);
|
||||
me.realIndex = i;
|
||||
}
|
||||
|
@ -225,164 +228,164 @@ var FPLNLineComputer = {
|
|||
},
|
||||
};
|
||||
|
||||
var MCDULines = [FPLNLineComputer.new(0), FPLNLineComputer.new(1)];
|
||||
var FPLNLines = [FPLNLineComputer.new(0), FPLNLineComputer.new(1)];
|
||||
|
||||
# For testing purposes only -- do not touch!
|
||||
var test = func {
|
||||
var fp = createFlightplan(getprop("sim/aircraft-dir")~"/plan.gpx");
|
||||
var desti = int(fp.getPlanSize()*0.5);
|
||||
MCDULines[0].replacePlan(fp,6,desti);
|
||||
FPLNLines[0].replacePlan(fp,6,desti,0);
|
||||
print("Display:");
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("down");MCDULines[0].scrollDown();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("down");FPLNLines[0].scrollDown();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
print("up");MCDULines[0].scrollUp();
|
||||
foreach(line;MCDULines[0].output) {
|
||||
printf("line: %s",line.getText(0));
|
||||
print("up");FPLNLines[0].scrollUp();
|
||||
foreach(line;FPLNLines[0].output) {
|
||||
printf("line: %s",line.getText());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -390,9 +393,9 @@ var test = func {
|
|||
|
||||
var slewFPLN = func(d, i) { # Scrolling function. d is -1 or 1 for direction, and i is instance.
|
||||
if (d == 1) {
|
||||
MCDULines[i].scrollDown(); # Scroll Up in Thales Manual
|
||||
FPLNLines[i].scrollDown(); # Scroll Up in Thales Manual
|
||||
} else if (d == -1) {
|
||||
MCDULines[i].scrollUp(); # Scroll Down in Thales Manual
|
||||
FPLNLines[i].scrollUp(); # Scroll Down in Thales Manual
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue