1
0
Fork 0

Fix phases correctly this time

This commit is contained in:
legoboyvdlp R 2020-04-24 17:13:10 +01:00
parent 25132937ab
commit 90ef8b431a

View file

@ -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());
}