2017-07-28 14:59:23 +00:00
|
|
|
# A3XX mCDU by Joshua Davidson (it0uchpods) and Jonathan Redpath
|
|
|
|
|
2019-01-01 06:03:06 +00:00
|
|
|
# Copyright (c) 2019 Joshua Davidson (it0uchpods)
|
2017-07-28 14:59:23 +00:00
|
|
|
|
2018-08-29 21:34:11 +00:00
|
|
|
var dataInput = func(key, i) {
|
2017-07-28 14:59:23 +00:00
|
|
|
if (key == "L1") {
|
2018-08-29 21:34:11 +00:00
|
|
|
setprop("/MCDU[" ~ i ~ "]/page", "POSMON");
|
2017-07-28 14:59:23 +00:00
|
|
|
}
|
2017-07-28 16:21:48 +00:00
|
|
|
if (key == "L2") {
|
2018-08-29 21:34:11 +00:00
|
|
|
setprop("/MCDU[" ~ i ~ "]/page", "IRSMON");
|
2017-07-28 16:21:48 +00:00
|
|
|
}
|
2017-07-31 13:43:13 +00:00
|
|
|
if (key == "R5") {
|
2018-08-29 21:34:11 +00:00
|
|
|
setprop("/MCDU[" ~ i ~ "]/page", "PRINTFUNC");
|
2017-07-31 13:43:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-29 21:34:11 +00:00
|
|
|
var printInput = func(key, i) {
|
2017-07-31 13:43:13 +00:00
|
|
|
if (key == "L1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/L1auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/L2auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/L3auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L5") {
|
2018-08-29 21:34:11 +00:00
|
|
|
setprop("/MCDU[" ~ i ~ "]/page", "DATA");
|
2017-07-31 13:43:13 +00:00
|
|
|
}
|
|
|
|
if (key == "R1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/R1req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/R2req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page1/R3req", 1);
|
|
|
|
}
|
2017-07-28 14:59:23 +00:00
|
|
|
}
|
2017-07-31 13:43:13 +00:00
|
|
|
|
2018-08-29 21:34:11 +00:00
|
|
|
var printInput2 = func(key, i) {
|
2017-07-31 13:43:13 +00:00
|
|
|
if (key == "L1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L1auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L2auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L3auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L4") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/L4auto", 1);
|
|
|
|
}
|
|
|
|
if (key == "L6") {
|
2018-08-29 21:34:11 +00:00
|
|
|
setprop("/MCDU[" ~ i ~ "]/page", "DATA");
|
2017-07-31 13:43:13 +00:00
|
|
|
}
|
|
|
|
if (key == "R1") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R1req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R2") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R2req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R3") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R3req", 1);
|
|
|
|
}
|
|
|
|
if (key == "R4") {
|
|
|
|
setprop("/FMGC/print/mcdu/page2/R4req", 1);
|
|
|
|
}
|
2018-08-29 21:34:11 +00:00
|
|
|
}
|