• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Glideslope Indicator Light

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
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.

Code:
<!-- OUTSIDE CONE OF SENSITIVITY -->
  (A:NAV HAS GLIDE SLOPE:1,bool) !
  (A:NAV GLIDE SLOPE ERROR:1,degrees) -0.66 &lt; or
  (A:NAV GLIDE SLOPE ERROR:1,degrees) 0.66 &gt; or
  (L:B737_AP_GlideSlopeAmber_Light, enum) and
  if{ 0 (>L:B737_AP_GlideSlopeGreen_Light, enum) 0 (>L:B737_AP_GlideSlopeAmber_Light, enum) }
Once the aircraft enters the cone of sensitivity, the "GS" indicator will glow amber, and the "GS" green will extinguish if already lighted.
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) }
Once the aircraft enters the most sensitive cone of sensitivity, the "GS" indicator will glow green, and the amber will extinguish.
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) }
 
For what it's worth the relevant ICAO glideslope coverage requirements are:

attachment.php


θ is the nominal glide slope angle

The localiser requirements are.

attachment.php
 

Attachments

  • CaptureGlide.JPG
    CaptureGlide.JPG
    33.1 KB · Views: 1,578
  • CaptureLocaliser.JPG
    CaptureLocaliser.JPG
    81.7 KB · Views: 1,611
Thanks, Gerry. Unfortunately FS doesn't actually follow the real world specifications, nor does it provide any sim variables to even begin to replicate this behavior. :o
 
Thanks, Gerry. Unfortunately FS doesn't actually follow the real world specifications, nor does it provide any sim variables to even begin to replicate this behavior. :o

I know that, but it provides upper and lower limits on beam height that can be compared with (A:Nav Glideslope Error:index) to control indicator lights.
 
Bill,

I hope you don't mind me using (messing about with?) your code but I love seeing how other people's code works.

I incorporated the three segments of code you showed into one of my gauges and displayed the results (Amber/Green Light off/on).

I then positioned myself close to the EIDW airport (Dublin) approaching Rwy 28.

I set the frequency for the ILS (111.35)

I descended to 2500' as per the Plate.

I hit the APP button on my MCP.

The Localiser captured way out as usual. On my ISG ND gauge the Glideslope Deviation Indicator and its Marker were also displayed at this time.

Both Amber and Green lights were off at this time.

At about 9 nm the Amber light came on.

At about 7 nm the Glideslope was captured and the aircraft followed the slope down to the runway.

No Green light ever showed.

The Amber light stayed on the whole way down and was lost only when I let the aircraft hit the runway (not advisable under normal circumstances I know but I wanted to see if the Green Light showed at any stage).

Does this demonstrate that the FS2004 standard ILS code works OK but is not as sensitive as the code you are writing for your gauges or have I just misinterpreted your code?

Thanks for the many templates for XML coding that you have (inadvertently maybe) given to me over the last while.

Walter
 
Last edited:
Two possibilities come to mind:

  1. My script is faulty
  2. That close to the runway the "green zone" is too narrow.

What I'd suggest is using Slew Mode to test. About 5 nm out, increase/decrease altitude to see what happens.

I'd also have a small gauge on screen displaying the variable:

Code:
  <Element>
    <Position X="113" Y="72"/>
    <FormattedText X="300" Y="35" Font="Glass Gauge" FontSize="10" LineSpacing="0" Adjust="Left" Color="White" Bright="Yes">
      <String>GS ERROR: = %((A:NAV GLIDE SLOPE ERROR:1,degrees))%!3.2f!%</String>
    </FormattedText>
  </Element>
I've also revised my script slightly, which may be the answer to #1 above:
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) }

  -0.33 0.33 (A:NAV GLIDE SLOPE ERROR:1,degrees) rng
  (A:NAV HAS GLIDE SLOPE:1,bool)
  and
  (L:B737_AP_GlideSlopeAmber_Light, enum) and
  if{ 0 (>L:B737_AP_GlideSlopeAmber_Light, enum) }

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

  (A:NAV HAS GLIDE SLOPE:1,bool) !
  (A:NAV GLIDE SLOPE ERROR:1,degrees) -0.66 &lt; or
  (A:NAV GLIDE SLOPE ERROR:1,degrees) 0.66 &gt; or
  (L:B737_AP_GlideSlopeAmber_Light, enum) and
  if{ 0 (>L:B737_AP_GlideSlopeGreen_Light, enum) 0 (>L:B737_AP_GlideSlopeAmber_Light, enum) }
  }
 
Hi Bill,

the new script works as per your spec.

I noticed that the Green light came on a bit before Glideslope capture.

I think I will make use of a version your code, if you don't mind, to help me on the way in to airports using ILS.

I noticed on some DVDs that I have of the B737, that the PNF calls out 'Glideslope Alive' when the Glideslope Deviation Indicator begins to show, I presume.

Your Amber light seems to reflect that.

Last night I put in a sound ('Glideslope Alive'), to play when the Amber light came on and it seemed quite realistic.

I will pay more attention to the threads in future to pick up some more snippets.

Its a lonely ol' station when you are playing both PF and PNF - it is nice to have some automated noises coming from the right seat!

Thanks

Walter
 
Hi Bill,

the new script works as per your spec.

I noticed that the Green light came on a bit before Glideslope capture.

I think I will make use of a version your code, if you don't mind, to help me on the way in to airports using ILS.
I'm glad to hear it worked for you this time around... I haven't really taken the time required to 'tweak' the actual 'cone values' yet. I was mostly concerned with getting the logic worked out first. ;)

Of course you may use the script however you wish, else I wouldn't have posted it in the first place. There's really little point in even trying to make any 'exclusive claim' to any particular XML script's logic. After all, what one has 'invented' may be duplicated anyway!

The best way to keep any one individual from trying to market something "exclusive" is to make certain that it is made available to anyone who cares to do a bit of research! :teacher:
 
Back
Top