autoland pulse logic rewritten
This commit is contained in:
parent
1b6bb9fd9b
commit
704fc63fe2
5 changed files with 33 additions and 31 deletions
|
@ -6453,16 +6453,10 @@
|
||||||
<property>controls/switches/annun-test</property>
|
<property>controls/switches/annun-test</property>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
</equals>
|
</equals>
|
||||||
<and>
|
<equals>
|
||||||
<equals>
|
<property>instrumentation/pfd/lights/autoland-on</property>
|
||||||
<property>instrumentation/pfd/lights/autoland-armed</property>
|
<value>1</value>
|
||||||
<value>1</value>
|
</equals>
|
||||||
</equals>
|
|
||||||
<equals>
|
|
||||||
<property>instrumentation/pfd/lights/autoland-on</property>
|
|
||||||
<value>1</value>
|
|
||||||
</equals>
|
|
||||||
</and>
|
|
||||||
</or>
|
</or>
|
||||||
</condition>
|
</condition>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
|
@ -164,8 +164,8 @@ var amberFlash1 = props.globals.initNode("/instrumentation/pfd/flash-indicators/
|
||||||
var amberFlash2 = props.globals.initNode("/instrumentation/pfd/flash-indicators/amber-flash-2", 0, "BOOL");
|
var amberFlash2 = props.globals.initNode("/instrumentation/pfd/flash-indicators/amber-flash-2", 0, "BOOL");
|
||||||
var dhFlash = props.globals.initNode("/instrumentation/pfd/flash-indicators/dh-flash", 0, "BOOL");
|
var dhFlash = props.globals.initNode("/instrumentation/pfd/flash-indicators/dh-flash", 0, "BOOL");
|
||||||
|
|
||||||
var light_autoland_armed = props.globals.initNode("/instrumentation/pfd/lights/autoland-armed", 0, "BOOL");
|
var autoland_alarm = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-alarm", 0, "BOOL");
|
||||||
var light_autoland_on = props.globals.initNode("/instrumentation/pfd/lights/autoland-on", 0, "BOOL");
|
var autoland_pulse = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-sw-pulse", 0, "BOOL");
|
||||||
|
|
||||||
var canvas_PFD_base = {
|
var canvas_PFD_base = {
|
||||||
init: func(canvas_group, file) {
|
init: func(canvas_group, file) {
|
||||||
|
@ -2967,3 +2967,21 @@ var dhTimer = maketimer(0.50, func {
|
||||||
dh_count = dh_count + 1;
|
dh_count = dh_count + 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var autolandTimer = maketimer(1.0, func {
|
||||||
|
if (autoland_pulse.getBoolValue()) {
|
||||||
|
autoland_pulse.setBoolValue(0);
|
||||||
|
} else {
|
||||||
|
autoland_pulse.setBoolValue(1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
setlistener(autoland_alarm, func(alarm) {
|
||||||
|
if (alarm.getBoolValue()) {
|
||||||
|
autoland_pulse.setBoolValue(1);
|
||||||
|
autolandTimer.start();
|
||||||
|
} else {
|
||||||
|
autolandTimer.stop();
|
||||||
|
autoland_pulse.setBoolValue(0);
|
||||||
|
}
|
||||||
|
}, 0, 0);
|
||||||
|
|
|
@ -1016,7 +1016,7 @@
|
||||||
<path>Aircraft/A320-family/Sounds/Cockpit/calvary-charge-once.wav</path>
|
<path>Aircraft/A320-family/Sounds/Cockpit/calvary-charge-once.wav</path>
|
||||||
<condition>
|
<condition>
|
||||||
<equals>
|
<equals>
|
||||||
<property>/instrumentation/pfd/lights/autoland-alarm</property>
|
<property>/instrumentation/pfd/logic/autoland/autoland-alarm</property>
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
</equals>
|
</equals>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
|
@ -2301,7 +2301,7 @@
|
||||||
</test>
|
</test>
|
||||||
</switch>
|
</switch>
|
||||||
|
|
||||||
<switch name="/instrumentation/pfd/lights/autoland-armed">
|
<switch name="/instrumentation/pfd/logic/autoland/autoland-armed">
|
||||||
<default value="0"/>
|
<default value="0"/>
|
||||||
<test logic="AND" value="1">
|
<test logic="AND" value="1">
|
||||||
<test logic="OR">
|
<test logic="OR">
|
||||||
|
@ -2321,12 +2321,12 @@
|
||||||
</test>
|
</test>
|
||||||
</switch>
|
</switch>
|
||||||
|
|
||||||
<switch name="/instrumentation/pfd/lights/autoland-alarm">
|
<switch name="/instrumentation/pfd/logic/autoland/autoland-alarm">
|
||||||
<default value="0"/>
|
<default value="0"/>
|
||||||
<test logic="AND" value="1">
|
<test logic="AND" value="1">
|
||||||
/instrumentation/pfd/lights/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
|
/it-autoflight/output/vert eq 2
|
||||||
<test logic="OR">
|
<test logic="OR">
|
||||||
<test logic="AND">
|
<test logic="AND">
|
||||||
/it-autoflight/output/ap1 eq 0
|
/it-autoflight/output/ap1 eq 0
|
||||||
|
@ -2345,11 +2345,12 @@
|
||||||
<default value="0"/>
|
<default value="0"/>
|
||||||
<test logic="OR" value="1">
|
<test logic="OR" value="1">
|
||||||
<test logic="AND">
|
<test logic="AND">
|
||||||
/instrumentation/pfd/lights/autoland-alarm eq 1
|
/instrumentation/pfd/logic/autoland/autoland-alarm eq 1
|
||||||
/instrumentation/pfd/lights/autoland-sw-pulse eq 1
|
/instrumentation/pfd/logic/autoland/autoland-sw-pulse eq 1
|
||||||
</test>
|
</test>
|
||||||
<test logic="AND">
|
<test logic="AND">
|
||||||
/it-autoflight/output/ap-warning eq 1
|
/instrumentation/pfd/logic/autoland/autoland-alarm eq 1
|
||||||
|
/it-autoflight/output/ap-warning ge 1
|
||||||
/ECAM/warnings/master-warning-flash eq 1
|
/ECAM/warnings/master-warning-flash eq 1
|
||||||
</test>
|
</test>
|
||||||
</test>
|
</test>
|
||||||
|
|
|
@ -676,16 +676,5 @@
|
||||||
<min>0</min>
|
<min>0</min>
|
||||||
<max>256</max>
|
<max>256</max>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<flipflop>
|
|
||||||
<type>monostable</type>
|
|
||||||
<time>
|
|
||||||
<value>1.5</value>
|
|
||||||
</time>
|
|
||||||
<S>
|
|
||||||
<property>/instrumentation/pfd/lights/autoland-armed</property>
|
|
||||||
</S>
|
|
||||||
<output>/instrumentation/pfd/lights/autoland-sw-pulse</output>
|
|
||||||
</flipflop>
|
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
Loading…
Reference in a new issue