Fire going out should reset warning
This commit is contained in:
parent
0bd902fbe7
commit
baef2f21af
1 changed files with 10 additions and 0 deletions
|
@ -250,6 +250,7 @@ var engFireDetectorUnit = {
|
|||
if (me.fireProp.getValue() == 0) {
|
||||
me.loopOne = 0;
|
||||
me.loopTwo = 0;
|
||||
me.reset(me.sys);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -317,6 +318,15 @@ var engFireDetectorUnit = {
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reset: func(system) {
|
||||
if (system == 0) {
|
||||
eng1FireWarn.setBoolValue(0);
|
||||
} elsif (system == 1) {
|
||||
eng2FireWarn.setBoolValue(0);
|
||||
} elsif (system == 2) {
|
||||
apuFireWarn.setBoolValue(0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue