Actually generate the planned flights from the flight planner.

This commit is contained in:
Khopa
2019-10-16 23:20:11 +02:00
parent fee959940a
commit de96552f78
5 changed files with 79 additions and 159 deletions

View File

@@ -169,6 +169,7 @@ class FlightPlanner:
flight.scheduled_in = offset + i*random.randint(CAS_EVERY_X_MINUTES-5, CAS_EVERY_X_MINUTES+5)
location = random.choice(cas_location)
flight.targets.append(cas_location)
flight.points.append([location[0], location[1], 1000]) # TODO : Egress / Ingress points
self.cas_flights.append(flight)

View File

@@ -34,6 +34,7 @@ class Flight:
type = ""
count = 0
client_count = 0
targets = []
# How long before this flight should take off
scheduled_in = 0