TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
99 stars 24 forks source link

Plane on ground not created due to exception when taxiway leg inserted between first two positions #173

Closed TwinFan closed 4 years ago

TwinFan commented 4 years ago

Describe the bug Plane on ground not even created due to exception. Exception is raised when while create the plane it is found that the first two position don't fullfill the condition "one in the past, one in the future".

This is due to the shortest-path algorithm inserting detailed legs along the taxiways. And then it can happen that such an inserted position also has a timestamp in the past when it is close to the first position. Shortest path insertion happens during "CalcNextPos", which will happen during aircraft create again, so all previous safeguard fail if betwenn that safeguard and actual create new information became available, that allowed to insert a shortest path.

To Reproduce Needs an airport with good detailed taxiway layout like KLAS, KATL or the like, and quite some ground traffic. Remove planes and have them create again and watch Log.txt.

Expected behavior Planes shall be created.

Technical Info:

Log

TwinFan commented 4 years ago

No longer an issue, might have gone away with other optimizations.