1
0
Fork 0

fix logic of gear warning

This commit is contained in:
legoboyvdlp R 2021-01-31 12:29:28 +00:00
parent 4d252bade0
commit 7abb18dca7
2 changed files with 2 additions and 6 deletions

View file

@ -663,7 +663,7 @@ var messages_priority_3 = func {
if (gearNotDownLocked.clearFlag == 0 and warningNodes.Logic.gearNotDownLocked.getBoolValue() and phaseVar3 != 3 and phaseVar3 != 4 and phaseVar3 != 5 and phaseVar3 != 8) {
gearNotDownLocked.active = 1;
if (gearNotDownLockedRec.clearFlag == 0 and !warningNodes.Logic.gearNotDownLockedFlipflop.getBoolValue()) {
if (gearNotDownLockedRec.clearFlag == 0 and warningNodes.Logic.gearNotDownLockedFlipflop.getValue() == 0) {
gearNotDownLockedRec.active = 1;
gearNotDownLockedWork.active = 1;
} else {

View file

@ -2328,11 +2328,7 @@
<test logic="AND" value="1">
/ECAM/warnings/fctl/gear-lever-down-pulse eq 1
/ECAM/warnings/fctl/gear-lever-down eq 1
<test logic="OR">
/gear/gear[0]/position-norm ne 1
/gear/gear[1]/position-norm ne 1
/gear/gear[2]/position-norm ne 1
</test>
/ECAM/warnings/fctl/gear-not-down-locked eq 1
</test>
</switch>