LOC issue on custom airport [SOLVED]

Hello,

I’ve built a fictional airport from scratch and I can’t get the LOC needle to work, except in GPS mode.
Magvar = 302.77° (-57.23)
Runway sim heading (in plane) = 352°
Runway SDK heading = 295°
ILS heading = 238°

The runway heading is correct and is consistent with what is actually shown in the sim. ILS beam is aligned with runway.

I’ve tried pretty much everything. ILS shows up with its correct IDENT on the PFD, glideslope is working, but the needle of the localizer is jammed on the left side and never moves. I don’t understand how it works and I’ve searched many forums and the documentation as well to try and sort this out, but no luck. Can you help me?

The ILS magnetic heading and ILS magvar together must give the runway true heading for them to be aligned. If 352° is the magnetic heading of your runway, it looks like either your ILS or airport magvar are inverted. You can directly put the magvar in +/- 180 notation with east negative in the XML to avoid confusion.

-57.23° is a larger magnetic variation than any magnetic referenced airports in the worldwide dataset, although that is not a problem for the sim to handle.

I’ll give an example with the localizer that has the highest eastward magvar in the whole world, and hopefully it helps to see how the numbers add up:

  <Airport ident="NZDN" lat="-45.928055555556" lon="170.19833333333" alt="1.06680003413760" magvar="-25.9" ...>
    <Ils lat="-45.935320633832426" lon="170.18437656966034" alt="0F" heading="210" frequency="109.9" magvar="-25.937836" ident="IDN" width="5.5" name="ILS RW21" lsCategory="CAT1">
      <GlideSlope lat="-45.92656944444444" lon="170.20539166666666" alt="2.083960793427661F" pitch="3" />
      <Dme lat="-45.92669444444444" lon="170.20552777777777" alt="4F" />
    </Ils>
    <Ils lat="-45.92340018765341" lon="170.20964382454278" alt="2F" heading="30" frequency="110.3" magvar="-25.937836" ident="IMN" width="5" name="ILS RW03" lsCategory="CAT1">
      <GlideSlope lat="-45.93324444444444" lon="170.19165" alt="-0.19665998076687644F" pitch="3" />
      <Dme lat="-45.93336111111111" lon="170.19180555555556" alt="3F" />
    </Ils>
    <Runway lat="-45.92905248641989" lon="170.19766572333876" alt="1.60126645544F" heading="235.93783569335938" number="21" designator="NONE" ...>
      <IlsReference ident="IDN" end="PRIMARY"/>
      <IlsReference ident="IMN" end="SECONDARY"/>
      <!-- snipped out lots of other stuff -->
    </Runway>
  </Airport>

Thanks. I tried to shape it like the example you give, but the SDK console returns some compilation errors because it does not expect “IlsReference” to be related as a child to the parent “Runway”. Do you have any clue as to how the IlsReference must be structured in the SDK?

Hello @SierraEcho451 ,

From the documentation, IlsReference is nested inside the runway tag like the example above.
You can use the scenery editor runway properties if you want :