1
0
Fork 0

Pack flow sound; fix bug in ECAM BLEED 2 NOT CLOSED (is buggy ,need to fix; fix pack 2 logic

This commit is contained in:
legoboyvdlp R 2020-05-15 12:36:11 +01:00
parent 8e47693170
commit c0517ded08
5 changed files with 8 additions and 5 deletions

View file

@ -839,8 +839,8 @@
<pneumatics n="0"> <pneumatics n="0">
<switches n="0"> <switches n="0">
<apu type="bool">0</apu> <apu type="bool">0</apu>
<bleed-1 type="bool">0</bleed-1> <bleed-1 type="bool">1</bleed-1>
<bleed-2 type="bool">0</bleed-2> <bleed-2 type="bool">1</bleed-2>
<blower type="bool">0</blower> <blower type="bool">0</blower>
<cabin-fans type="bool">0</cabin-fans> <cabin-fans type="bool">0</cabin-fans>
<extract type="bool">0</extract> <extract type="bool">0</extract>

View file

@ -1540,7 +1540,7 @@ var messages_priority_2 = func {
ECAM_controller.warningReset(eng1BleedNotClsdOff); ECAM_controller.warningReset(eng1BleedNotClsdOff);
} }
if (eng2BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed2NotShutOutput.getValue == 1) { if (eng2BleedNotClsd.clearFlag == 0 and (phaseVar <= 2 or phaseVar >= 9 or phaseVar == 6) and warningNodes.Timers.bleed2NotShutOutput.getValue() == 1) {
eng2BleedNotClsd.active = 1; eng2BleedNotClsd.active = 1;
if (systems.PNEU.Switch.bleed2.getBoolValue()) { if (systems.PNEU.Switch.bleed2.getBoolValue()) {
eng2BleedNotClsdOff.active = 1; eng2BleedNotClsdOff.active = 1;

View file

@ -1064,6 +1064,7 @@
</condition> </condition>
<volume> <volume>
<property>/sim/sound/other/air-con</property> <property>/sim/sound/other/air-con</property>
<factor>6</factor>
</volume> </volume>
</ac> </ac>

View file

@ -71,6 +71,8 @@
/gear/gear[1]/wow eq 0 /gear/gear[1]/wow eq 0
</test> </test>
</test> </test>
/systems/pressurization/ditchingpb eq 1
/systems/pneumatics/psi/engine-2-psi le 13.8
</test> </test>
<test logic="AND" value="1"> <test logic="AND" value="1">
/controls/pneumatics/switches/pack-2 eq 1 /controls/pneumatics/switches/pack-2 eq 1

View file

@ -203,12 +203,12 @@
<filter> <filter>
<type>gain</type> <type>gain</type>
<gain>0.025</gain> <gain>1</gain>
<input> <input>
<condition> <condition>
<property>/sim/sound/internal-custom</property> <property>/sim/sound/internal-custom</property>
</condition> </condition>
<property>/systems/pneumatic/pack-psi</property> <property>/systems/air-conditioning/mass-flow-cockpit-kg_s</property>
</input> </input>
<input>0</input> <input>0</input>
<output>/sim/sound/other/air-con</output> <output>/sim/sound/other/air-con</output>