Acconfig...
This commit is contained in:
parent
d0d6c8fa82
commit
8bf1035d0d
4 changed files with 11 additions and 21 deletions
|
@ -347,7 +347,7 @@ var beforestart = func {
|
|||
props.globals.getNode("controls/electrical/switches/bat-1").setValue(1);
|
||||
props.globals.getNode("controls/electrical/switches/bat-2").setValue(1);
|
||||
setprop("controls/apu/master", 1);
|
||||
systems.APUController.APU.startCommand(1);
|
||||
systems.APUController.APU.startCommand();
|
||||
var apu_rpm_chk = setlistener("/engines/engine[2]/n1", func {
|
||||
if (getprop("engines/engine[2]/n1") >= 98) {
|
||||
removelistener(apu_rpm_chk);
|
||||
|
|
|
@ -887,7 +887,7 @@ var messages_priority_3 = func {
|
|||
}
|
||||
|
||||
# EMER CONFIG
|
||||
if (getprop("systems/electrical/some-electric-thingie/emer-elec-config") and !dualFailNode.getBoolValue() and phaseVar != 4 and phaseVar != 8 and emerconfig.clearFlag == 0) {
|
||||
if (getprop("systems/electrical/some-electric-thingie/emer-elec-config") and !dualFailNode.getBoolValue() and phaseVar != 4 and phaseVar != 8 and emerconfig.clearFlag == 0 and !getprop("systems/acconfig/autoconfig-running")) {
|
||||
emerconfig.active = 1;
|
||||
|
||||
if (getprop("systems/hydraulic/sources/rat/position") != 0 and emerconfigMinRat.clearFlag == 0) {
|
||||
|
|
|
@ -26,7 +26,7 @@ var APU = {
|
|||
listenStopSignal: 0,
|
||||
bleedTime: 0,
|
||||
cooldownEndTime: 0,
|
||||
startFast: 0,
|
||||
fastStart: 0,
|
||||
warnings: {
|
||||
lowOilLevel: 0,
|
||||
},
|
||||
|
@ -57,7 +57,6 @@ var APU = {
|
|||
me.signals.bleedWasUsed = 0;
|
||||
me.signals.fault = 0;
|
||||
me.signals.autoshutdown = 0;
|
||||
me.startFast = 0;
|
||||
checkApuStartTimer.stop();
|
||||
apuStartTimer.stop();
|
||||
apuStartTimer2.stop();
|
||||
|
@ -96,15 +95,18 @@ var APU = {
|
|||
}, 3);
|
||||
settimer(func() { me.checkOil }, 8);
|
||||
},
|
||||
startCommand: func(fast = 0) {
|
||||
startCommand: func(fast) {
|
||||
if (me.listenSignals and (me.state == 1 or me.state == 2)) {
|
||||
me.signals.startInProgress.setValue(1);
|
||||
me.startFast = fast;
|
||||
me.setState(3);
|
||||
checkApuStartTimer.start();
|
||||
me.fastStart = fast;
|
||||
}
|
||||
},
|
||||
checkApuStart: func(fast) {
|
||||
checkApuStart: func() {
|
||||
if (me.fastStart) {
|
||||
me.inletFlap.setpos(1);
|
||||
}
|
||||
if (pts.APU.rpm.getValue() < 7 and me.fuelValvePos.getValue() and me.inletFlapPos.getValue() == 1 and me.signals.oilTestComplete and !me.warnings.lowOilLevel) {
|
||||
me.setState(4);
|
||||
me.listenStopSignal = 1;
|
||||
|
@ -114,16 +116,6 @@ var APU = {
|
|||
},
|
||||
startSequence: func() {
|
||||
me.GenericControls.starter.setValue(1);
|
||||
if (me.startFast) {
|
||||
setprop("controls/engines/engine[2]/cutoff", 0);
|
||||
setprop("engines/engine[2]/out-of-fuel", 0);
|
||||
setprop("engines/engine[2]/run", 1);
|
||||
|
||||
setprop("engines/engine[2]/cutoff", 0);
|
||||
setprop("engines/engine[2]/starter", 0);
|
||||
|
||||
setprop("fdm/jsbsim/propulsion/set-running", 0);
|
||||
}
|
||||
apuStartTimer.start();
|
||||
},
|
||||
waitStart: func() {
|
||||
|
@ -266,13 +258,13 @@ setlistener("controls/apu/master", func() {
|
|||
APUController.APU.stop();
|
||||
}
|
||||
}
|
||||
}, 0, 1);
|
||||
}, 0, 0);
|
||||
|
||||
setlistener("controls/pneumatic/switches/bleedapu", func() {
|
||||
if (APUController.APU != nil) {
|
||||
APUController.APU.signals.bleedWasUsed = 1;
|
||||
}
|
||||
}, 0, 1);
|
||||
}, 0, 0);
|
||||
|
||||
var checkMasterThreeMinTimer = maketimer(0.1, func() {
|
||||
if (!APUNodes.Controls.master.getValue()) {
|
||||
|
|
|
@ -1307,10 +1307,8 @@
|
|||
<test logic="AND" value="1">
|
||||
/systems/electrical/bus/ac-1 lt 110
|
||||
/systems/electrical/bus/ac-2 lt 110
|
||||
/systems/acconfig/autoconfig-running ne 1
|
||||
</test>
|
||||
<test logic="AND" value="1">
|
||||
/systems/acconfig/autoconfig-running ne 1
|
||||
/systems/electrical/relay/ext-epc/contact-pos eq 0
|
||||
<test logic="OR">
|
||||
/controls/electrical/switches/gen-1 eq 0
|
||||
|
|
Loading…
Reference in a new issue