autoland light on flare only #241
This commit is contained in:
parent
704fc63fe2
commit
87f101bd28
2 changed files with 10 additions and 1 deletions
|
@ -166,6 +166,7 @@ var dhFlash = props.globals.initNode("/instrumentation/pfd/flash-indicators/dh-f
|
||||||
|
|
||||||
var autoland_alarm = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-alarm", 0, "BOOL");
|
var autoland_alarm = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-alarm", 0, "BOOL");
|
||||||
var autoland_pulse = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-sw-pulse", 0, "BOOL");
|
var autoland_pulse = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-sw-pulse", 0, "BOOL");
|
||||||
|
var autoland_flare_mode = props.globals.initNode("/instrumentation/pfd/logic/autoland/flare-mode", 0, "BOOL");
|
||||||
|
|
||||||
var canvas_PFD_base = {
|
var canvas_PFD_base = {
|
||||||
init: func(canvas_group, file) {
|
init: func(canvas_group, file) {
|
||||||
|
@ -2985,3 +2986,11 @@ setlistener(autoland_alarm, func(alarm) {
|
||||||
autoland_pulse.setBoolValue(0);
|
autoland_pulse.setBoolValue(0);
|
||||||
}
|
}
|
||||||
}, 0, 0);
|
}, 0, 0);
|
||||||
|
|
||||||
|
setlistener(pitch_mode, func(pitch) {
|
||||||
|
if (pitch.getValue() == "FLARE") {
|
||||||
|
autoland_flare_mode.setBoolValue(1);
|
||||||
|
} else {
|
||||||
|
autoland_flare_mode.setBoolValue(0);
|
||||||
|
}
|
||||||
|
},0,0);
|
||||||
|
|
|
@ -2326,7 +2326,7 @@
|
||||||
<test logic="AND" value="1">
|
<test logic="AND" value="1">
|
||||||
/instrumentation/pfd/logic/autoland/autoland-armed eq 1
|
/instrumentation/pfd/logic/autoland/autoland-armed eq 1
|
||||||
<!-- /modes/pfd/fma/pitch-mode eq "LAND" -->
|
<!-- /modes/pfd/fma/pitch-mode eq "LAND" -->
|
||||||
/it-autoflight/output/vert eq 2
|
/instrumentation/pfd/logic/autoland/flare-mode eq 1
|
||||||
<test logic="OR">
|
<test logic="OR">
|
||||||
<test logic="AND">
|
<test logic="AND">
|
||||||
/it-autoflight/output/ap1 eq 0
|
/it-autoflight/output/ap1 eq 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue