fix issues in the data transmission
This commit is contained in:
		| @@ -134,9 +134,9 @@ class Euroscope: | |||||||
|         if None != weather.Altitudes: |         if None != weather.Altitudes: | ||||||
|             for i in range(0, len(weather.Altitudes)): |             for i in range(0, len(weather.Altitudes)): | ||||||
|                 entry = sequence.windData.add() |                 entry = sequence.windData.add() | ||||||
|                 entry.altitude = weather.Altitudes[i] |                 entry.altitude = int(weather.Altitudes[i]) | ||||||
|                 entry.direction = weather.Directions[i] |                 entry.direction = int(weather.Directions[i]) | ||||||
|                 entry.speed = weather.Windspeeds[i] |                 entry.speed = int(weather.Windspeeds[i]) | ||||||
|  |  | ||||||
|         # convert the inbound sequence |         # convert the inbound sequence | ||||||
|         for inbound in inbounds: |         for inbound in inbounds: | ||||||
| @@ -149,9 +149,9 @@ class Euroscope: | |||||||
|             for waypoint in inbound.PlannedArrivalRoute: |             for waypoint in inbound.PlannedArrivalRoute: | ||||||
|                 wp = entry.waypoints.add() |                 wp = entry.waypoints.add() | ||||||
|                 wp.name = waypoint.Waypoint.Name |                 wp.name = waypoint.Waypoint.Name | ||||||
|                 wp.altitude = waypoint.Altitude |                 wp.altitude = int(round(waypoint.Altitude)) | ||||||
|                 wp.indicatedAirspeed = waypoint.IndicatedAirspeed |                 wp.indicatedAirspeed = int(round(waypoint.IndicatedAirspeed)) | ||||||
|                 wp.groundspeed = waypoint.GroundSpeed |                 wp.groundSpeed = int(round(waypoint.GroundSpeed)) | ||||||
|  |  | ||||||
|                 pta = str(waypoint.PTA) |                 pta = str(waypoint.PTA) | ||||||
|                 delimiter = pta.find('.') |                 delimiter = pta.find('.') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user