1
0
Fork 0

FMGC: Fix localizer not capturing if on course too close to beam

This commit is contained in:
Josh Davidson 2021-07-30 12:24:39 -04:00
parent c3cd26a30d
commit 3b428d1e1a

View file

@ -763,13 +763,13 @@ var ITAF = {
Radio.locDeflTemp = Radio.locDefl.getValue();
Radio.signalQualityTemp = Radio.signalQuality.getValue();
if (abs(Radio.locDeflTemp) <= 0.95 and Radio.locDeflTemp != 0 and Radio.signalQualityTemp >= 0.99) {
if (Radio.locDeflTemp >= 0 and Internal.navHeadingErrorDegTemp <= 0) {
if (abs(Radio.locDeflTemp[Input.radioSelTemp]) <= 0.25) {
me.activateLoc();
} else if (Radio.locDeflTemp < 0 and Internal.navHeadingErrorDegTemp >= 0) {
} else if (Radio.locDeflTemp[Input.radioSelTemp] >= 0 and Internal.navHeadingErrorDegTemp[Input.radioSelTemp] <= 0) {
me.activateLoc();
}
if (t != 1) { # Do not do this if loop calls it
} else if (Radio.locDeflTemp[Input.radioSelTemp] < 0 and Internal.navHeadingErrorDegTemp[Input.radioSelTemp] >= 0) {
me.activateLoc();
} else if (t != 1) { # Do not do this if loop calls it
if (Output.lat.getValue() != 2) {
me.updateLnavArm(0);
me.updateLocArm(1);