mmp / vice

Virtual air traffic control simulator
https://pharr.org/vice
GNU General Public License v3.0
18 stars 25 forks source link

WIP: Improve Flight Plan Processing #211

Open checkandmate1 opened 1 month ago

checkandmate1 commented 1 month ago

This will be the PR for the improved flight plan processing. The plan is to improve how flight plans are associated with aircraft. Instead of having NewFlightPlan() associate the flight plans, STARS will look at the BCN codes and flight plans to see if any of them match, and if they do, associate the track with the flight plan (Which will show the callsign, arrival airport, etc.)

Another plan for the PR is to build up the STARS-ERAM infrastructure. In the World struct, there is a map[string]EramComputer. Each EramComputer struct will contain all stored flight plans, and map[string]STARSComputer. Each STARSComputer will receive messages and flight plans from the ERAM computer, and local flight plans.

More will be added as the PR progresses.