Winwing WINWING FCU-320
true
= 0 and getprop("/it-autoflight/custom/trk-fpa") == false) or (getprop("/it-autoflight/input/fpa") >= 0 and getprop("/it-autoflight/custom/trk-fpa"))) and (getprop("/it-autoflight/output/vert") == 1 or getprop("/it-autoflight/output/vert") == 5))) {
flags = flags ~ ",plus";
}
if (getprop("/controls/switches/annun-test") or getprop("/it-autoflight/output/ap1")) {
flags = flags ~ ",ap1";
}
if (getprop("/controls/switches/annun-test") or getprop("/it-autoflight/output/ap2")) {
flags = flags ~ ",ap2";
}
if (getprop("/controls/switches/annun-test") or getprop("/it-autoflight/output/athr")) {
flags = flags ~ ",athr";
}
if (getprop("/controls/switches/annun-test") or ((getprop("/it-autoflight/output/lat") == 2 or getprop("/it-autoflight/output/loc-arm") == 1) and getprop("/it-autoflight/output/gs-arm") == false and getprop("/it-autoflight/output/vert") != 2 and getprop("/it-autoflight/output/vert") != 6)) {
flags = flags ~ ",loc";
}
if (getprop("/controls/switches/annun-test") or getprop("/it-autoflight/output/gs-arm") or getprop("/it-autoflight/output/vert") == 2 or getprop("/it-autoflight/output/vert") == 6) {
flags = flags ~ ",appr";
}
setprop("/winwing/flags", flags);
return [0x00]; # dummy return so log doesn't get spammed anymore
};
var getButtonBrightnessReport = func(item, value) {
var r = [0x10, 0xBB, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
r[6] = item;
r[7] = int(value);
return r;
};
var updateWinwingFCUIntegLT = func() {
var value = getprop("/controls/lighting/fcu-panel-norm") * 255;
# debug.dump(getButtonBrightnessReport(0x00, value));
return getButtonBrightnessReport(0x00, value);
};
]]>
input
1
1
128
176
input
2
8
13
0
output
2
104
1
0
input
240
8
63
0
output
240
8
63
0
2
output
/controls/lighting/fcu-panel-norm
updateWinwingFCUIntegLT
2
output
/it-autoflight/input/kts-mach
/it-autoflight/input/kts
/it-autoflight/input/mach
/it-autoflight/input/hdg
/it-autoflight/input/alt
/it-autoflight/output/vs-fcu-display
/controls/switches/annun-test
updateWinwingFCUDisplay
button-1
IAS/Mach
false
nasal
button-2
LOC
false
nasal
button-3
Track/Fligtht Path Angle
false
nasal
button-4
Autopilot 1
false
nasal
button-5
Autopilot 2
false
nasal
button-6
Autothrust
false
nasal
button-7
Expedite
false
nasal
button-8
Metric ALT
false
nasal
button-9
Approach
false
nasal
button-10
Speed decrease
false
nasal
button-11
Speed increase
false
nasal
button-12
Speed Push
false
nasal
button-13
Speed Pull
false
nasal
button-14
Heading decrease
false
nasal
button-15
Heading increase
false
nasal
button-16
Heading push
false
nasal
button-17
Heading pull
false
nasal
button-18
Altitude decrease
false
nasal
button-19
Altitude increase
false
nasal
button-20
Altitude Push
false
nasal
button-21
Altitude pull
false
nasal
button-22
Vertical Speed decrease
false
nasal
button-23
Vertical Speed increase
false
nasal
button-24
Vertical Speed push
false
nasal
button-25
Vertical Speed pull
false
nasal
button-26
Altitude mode 100
false
property-assign
it-autoflight/config/altitude-dial-mode
0
button-27
Altitude mode 1000
false
property-assign
it-autoflight/config/altitude-dial-mode
1