send the performance data as well

This commit is contained in:
Sven Czarnian
2021-11-14 09:35:51 +01:00
parent e1663d7742
commit f74ae4900c
2 changed files with 7 additions and 1 deletions

View File

@@ -147,6 +147,12 @@ class Euroscope:
entry.arrivalRoute = inbound.PlannedStar.Name
entry.arrivalRunway = inbound.PlannedRunway.Name
#performance = entry.performance.add()
entry.performance.iasAboveFL240 = int(round(inbound.PerformanceData.SpeedAboveFL240))
entry.performance.iasAboveFL100 = int(round(inbound.PerformanceData.SpeedAboveFL100))
entry.performance.iasBelowFL100 = int(round(inbound.PerformanceData.SpeedBelowFL100))
entry.performance.iasApproach = int(round(inbound.PerformanceData.SpeedApproach))
for waypoint in inbound.PlannedArrivalRoute:
wp = entry.waypoints.add()
wp.name = waypoint.Waypoint.Name