n4gix
Resource contributor
- Messages
- 11,674
- Country

Lacking any other suggestions, and given that there's no actual way to determine the signal strength/reliability for the bloody Glideslope variables (of which there is only one, really!)...
I finally decided the only somewhat arbitrary way to handle this was to set up to cones of sensitivity based on the (A:Nav Glideslope Error:index) variable. In this way, if the aircraft is outside of this "cone" (too high, too low, too oblique of an angle), the "GS" indicator will remain dark.
I've arbitrarily defined this cone of sensitivity as a 1.32º arc, which is then narrowed to a 0.66º arc for the most sensitive zone.
Once the aircraft enters the cone of sensitivity, the "GS" indicator will glow amber, and the "GS" green will extinguish if already lighted.
Once the aircraft enters the most sensitive cone of sensitivity, the "GS" indicator will glow green, and the amber will extinguish.
I finally decided the only somewhat arbitrary way to handle this was to set up to cones of sensitivity based on the (A:Nav Glideslope Error:index) variable. In this way, if the aircraft is outside of this "cone" (too high, too low, too oblique of an angle), the "GS" indicator will remain dark.
I've arbitrarily defined this cone of sensitivity as a 1.32º arc, which is then narrowed to a 0.66º arc for the most sensitive zone.
Code:
<!-- OUTSIDE CONE OF SENSITIVITY -->
(A:NAV HAS GLIDE SLOPE:1,bool) !
(A:NAV GLIDE SLOPE ERROR:1,degrees) -0.66 < or
(A:NAV GLIDE SLOPE ERROR:1,degrees) 0.66 > or
(L:B737_AP_GlideSlopeAmber_Light, enum) and
if{ 0 (>L:B737_AP_GlideSlopeGreen_Light, enum) 0 (>L:B737_AP_GlideSlopeAmber_Light, enum) }
Code:
<!-- FD GS AMBER LIGHT -->
-0.66 -0.34 (A:NAV GLIDE SLOPE ERROR:1,degrees) rng
0.34 0.66 (A:NAV GLIDE SLOPE ERROR:1,degrees) rng or
(A:NAV HAS GLIDE SLOPE:1,bool) and
(L:B737_AP_GlideSlopeAmber_Light, enum) ! and
if{ 1 (>L:B737_AP_GlideSlopeAmber_Light, enum) 0 (>L:B737_AP_GlideSlopeGreen_Light, enum) }
Code:
(A:NAV HAS GLIDE SLOPE:1,bool)
-0.33 0.33 (A:NAV GLIDE SLOPE ERROR:1,degrees) rng and
(L:B737_AP_GlideSlopeAmber_Light, enum) ! and
if{ 1 (>L:B737_AP_GlideSlopeGreen_Light, enum) 0 (>L:B737_AP_GlideSlopeAmber_Light, enum) }


