You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2024. It is now read-only.
Starting from Fix NIK in Belgium: added Fix LAM in Great Britain via airway L610
Did not get the whole route but just a few fixes up until BULAM, which is on the airway L610 to LAM
Maybe because LAM is a sub string of BULAM?
The text was updated successfully, but these errors were encountered:
I would not be surprised if this is a nav database issue because one of our other members working on the G1000 was having a hard time with approach fixes that were related to LAM. The database doesn't list them correctly. For some reason, the in-game database for Europe seems funky and erroneous at times.
lastWaypointIdent is the exit fix, LAM in my case airway.icaos are all the fixes on the airway
It checks, whether the the text "LAM" occurs in any of the airway fix names, and returns the first one found.
So if BULAM occurs before LAM in the airway icao list, it returns the index of BULAM.
Edit: The question is: Why did the author choose indexOf over an equality check. I suspect, there is a reason for that.
ooof. good find! :D
Actually i suspected you hit another bug, where when you already have an approach selected the temporary flight plan will ommit the last waypoint of an airway. But then show it after EXEC (asobo!)
But this also makes sense.
Much of the code you'll find is modified Asobo code, as i mostly tend to stay as close as possible to their implementation (even though they suck at time ^^)
This function actually comes from Asobo, but they "forgot" to add the for loop to add all waypoints along an airway not just one 🤦 Thats why no plane in the game can add proper airways.
So I took it and modified it to produce the intended result.
I didn't catch that checking for indexOf could of course cause problems.
Starting from Fix NIK in Belgium: added Fix LAM in Great Britain via airway L610
Did not get the whole route but just a few fixes up until BULAM, which is on the airway L610 to LAM
Maybe because LAM is a sub string of BULAM?
The text was updated successfully, but these errors were encountered: