diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index 22496380..be3efb55 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -43,6 +43,7 @@ var du6_offtime = props.globals.initNode("/instrumentation/du/du6-off-time", 0.0 var autoland_alarm = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-alarm", 0, "BOOL"); var autoland_pulse = props.globals.initNode("/instrumentation/pfd/logic/autoland/autoland-sw-pulse", 0, "BOOL"); var autoland_pitch_land = props.globals.initNode("/instrumentation/pfd/logic/autoland/pitch-land", 0, "BOOL"); +var autoland_ap_disc_ft = props.globals.initNode("/instrumentation/pfd/logic/autoland/ap-disc-ft", 0, "INT"); var canvas_pfd = { middleOffset: 0, diff --git a/Nasal/FMGC/FCU.nas b/Nasal/FMGC/FCU.nas index 334c5c9c..5bf5a76d 100644 --- a/Nasal/FMGC/FCU.nas +++ b/Nasal/FMGC/FCU.nas @@ -507,6 +507,9 @@ var apOff = func(type, side) { } elsif (side == 2) { fmgc.Input.ap2.setValue(0); } + + var radarft = (side == 2) ? getprop("/instrumentation/radar-altimeter[1]/radar-altitude-ft-corrected") : getprop("/instrumentation/radar-altimeter[0]/radar-altitude-ft-corrected"); + setprop("/instrumentation/pfd/logic/autoland/ap-disc-ft",radarft); } # Autothrust Disconnection diff --git a/Systems/a320-fwc.xml b/Systems/a320-fwc.xml index 99080c7a..3feb1cee 100644 --- a/Systems/a320-fwc.xml +++ b/Systems/a320-fwc.xml @@ -2499,6 +2499,7 @@ + /instrumentation/pfd/logic/autoland/pitch-land eq 1 /systems/electrical/bus/ac-2 ge 110 /systems/electrical/bus/ac-ess-shed ge 110 @@ -2519,13 +2520,14 @@ - /instrumentation/pfd/logic/autoland/autoland-armed eq 1 - /instrumentation/pfd/logic/autoland/pitch-land eq 1 - - /it-autoflight/output/ap1 eq 0 - /it-autoflight/output/ap2 eq 0 - + /instrumentation/pfd/logic/autoland/autoland-armed eq 1 + + /it-autoflight/output/ap1 eq 0 + /it-autoflight/output/ap2 eq 0 + /instrumentation/pfd/logic/autoland/ap-disc-ft lt 200 + /instrumentation/pfd/logic/autoland/ap-disc-ft gt 0 + /instrumentation/radar-altimeter-difference-ft gt 15