Fix phases correctly this time
This commit is contained in:
parent
25132937ab
commit
90ef8b431a
1 changed files with 2 additions and 2 deletions
|
@ -809,7 +809,7 @@ var switchDatabase = func {
|
|||
|
||||
# Landing to phase 7
|
||||
setlistener("gear/gear[1]/wow", func() {
|
||||
if (timer30secLanding.isRunning) {
|
||||
if (getprop("gear/gear[1]/wow") == 0 and timer30secLanding.isRunning) {
|
||||
timer30secLanding.stop();
|
||||
setprop("FMGC/internal/landing-time", -99);
|
||||
}
|
||||
|
@ -850,7 +850,7 @@ setlistener("systems/navigation/adr/operating-3", func() {
|
|||
timer48gpsAlign3.stop();
|
||||
}
|
||||
|
||||
if (getprop("gear/gear[1]/wow") == 1 and getprop("FMGC/internal/align3-time") == -99) {
|
||||
if (getprop("FMGC/internal/align3-time") == -99) {
|
||||
timer48gpsAlign3.start();
|
||||
setprop("FMGC/internal/align3-time", pts.Sim.Time.elapsedSec.getValue());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue