1
0
Fork 0
This commit is contained in:
legoboyvdlp R 2020-04-18 17:02:08 +01:00
parent 8bf1035d0d
commit a651bd1bfd

View file

@ -95,7 +95,7 @@ var APU = {
}, 3); }, 3);
settimer(func() { me.checkOil }, 8); settimer(func() { me.checkOil }, 8);
}, },
startCommand: func(fast) { startCommand: func(fast = 0) {
if (me.listenSignals and (me.state == 1 or me.state == 2)) { if (me.listenSignals and (me.state == 1 or me.state == 2)) {
me.signals.startInProgress.setValue(1); me.signals.startInProgress.setValue(1);
me.setState(3); me.setState(3);
@ -121,6 +121,7 @@ var APU = {
waitStart: func() { waitStart: func() {
if (pts.APU.rpm.getValue() >= 4.9) { if (pts.APU.rpm.getValue() >= 4.9) {
me.GenericControls.cutoff.setValue(0); me.GenericControls.cutoff.setValue(0);
setprop("/fdm/jsbsim/propulsion/set-running", 2);
apuStartTimer.stop(); apuStartTimer.stop();
apuStartTimer2.start(); apuStartTimer2.start();
} }