1
0
Fork 0

Autoland light on pitch mode LAND and faster light pulse

This commit is contained in:
Inuyaksa 2021-09-01 23:31:08 +02:00
parent f603613e47
commit d6f84d4570
2 changed files with 6 additions and 6 deletions

View file

@ -166,7 +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_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 autoland_pitch_land = props.globals.initNode("/instrumentation/pfd/logic/autoland/pitch-land", 0, "BOOL");
var canvas_PFD_base = {
init: func(canvas_group, file) {
@ -2969,7 +2969,7 @@ var dhTimer = maketimer(0.50, func {
}
});
var autolandTimer = maketimer(1.0, func {
var autolandTimer = maketimer(0.5, func {
if (autoland_pulse.getBoolValue()) {
autoland_pulse.setBoolValue(0);
} else {
@ -2988,9 +2988,9 @@ setlistener(autoland_alarm, func(alarm) {
}, 0, 0);
setlistener(pitch_mode, func(pitch) {
if (pitch.getValue() == "FLARE") {
autoland_flare_mode.setBoolValue(1);
if (pitch.getValue() == "LAND") {
autoland_pitch_land.setBoolValue(1);
} else {
autoland_flare_mode.setBoolValue(0);
autoland_pitch_land.setBoolValue(0);
}
},0,0);

View file

@ -2326,7 +2326,7 @@
<test logic="AND" value="1">
/instrumentation/pfd/logic/autoland/autoland-armed eq 1
<!-- /modes/pfd/fma/pitch-mode eq "LAND" -->
/instrumentation/pfd/logic/autoland/flare-mode eq 1
/instrumentation/pfd/logic/autoland/pitch-land eq 1
<test logic="OR">
<test logic="AND">
/it-autoflight/output/ap1 eq 0