APU: instant start up with panel states
This commit is contained in:
parent
238068f982
commit
62e3035ac1
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ var APU = {
|
||||||
me.inletFlap.open();
|
me.inletFlap.open();
|
||||||
me.listenSignals = 1;
|
me.listenSignals = 1;
|
||||||
settimer(func() {
|
settimer(func() {
|
||||||
if (APUNodes.Controls.master.getValue() and !getprop("/systems/acconfig/autoconfig-running")) {
|
if (APUNodes.Controls.master.getValue() and !pts.Acconfig.running.getValue()) {
|
||||||
me.setState(2);
|
me.setState(2);
|
||||||
}
|
}
|
||||||
}, 3);
|
}, 3);
|
||||||
|
@ -131,7 +131,7 @@ var APU = {
|
||||||
apuStartTimer.start();
|
apuStartTimer.start();
|
||||||
},
|
},
|
||||||
waitStart: func() {
|
waitStart: func() {
|
||||||
if (pts.APU.rpm.getValue() >= 4.9) {
|
if (pts.APU.rpm.getValue() >= 4.9 or me.fastStart) {
|
||||||
me.GenericControls.cutoff.setValue(0);
|
me.GenericControls.cutoff.setValue(0);
|
||||||
if (me.fastStart) {
|
if (me.fastStart) {
|
||||||
setprop("/fdm/jsbsim/propulsion/set-running", 2);
|
setprop("/fdm/jsbsim/propulsion/set-running", 2);
|
||||||
|
|
Loading…
Reference in a new issue