use the correct reference time
This commit is contained in:
		| @@ -121,7 +121,7 @@ class Node: | |||||||
|                 nextWaypointIndex += 1 |                 nextWaypointIndex += 1 | ||||||
|  |  | ||||||
|                 arrivalRoute[-1].FlightTime = timedelta(seconds = flightTimeSeconds) |                 arrivalRoute[-1].FlightTime = timedelta(seconds = flightTimeSeconds) | ||||||
|                 arrivalRoute[-1].ETA = self.Inbound.ReportTime + arrivalRoute[-1].FlightTime |                 arrivalRoute[-1].ETA = self.PredictionTime + arrivalRoute[-1].FlightTime | ||||||
|                 arrivalRoute[-1].PTA = arrivalRoute[-1].ETA |                 arrivalRoute[-1].PTA = arrivalRoute[-1].ETA | ||||||
|                 arrivalRoute[-1].Altitude = currentPosition[0] |                 arrivalRoute[-1].Altitude = currentPosition[0] | ||||||
|                 arrivalRoute[-1].IndicatedAirspeed = currentIAS |                 arrivalRoute[-1].IndicatedAirspeed = currentIAS | ||||||
| @@ -145,6 +145,7 @@ class Node: | |||||||
|                  navData : SctEseFormat, sequencingConfig : AirportSequencing): |                  navData : SctEseFormat, sequencingConfig : AirportSequencing): | ||||||
|         self.PredictedDistanceToIAF = inbound.Report.distanceToIAF |         self.PredictedDistanceToIAF = inbound.Report.distanceToIAF | ||||||
|         self.PredictedCoordinate = [ inbound.CurrentPosition.latitude, inbound.CurrentPosition.longitude ] |         self.PredictedCoordinate = [ inbound.CurrentPosition.latitude, inbound.CurrentPosition.longitude ] | ||||||
|  |         self.PredictionTime = referenceTime | ||||||
|         self.ArrivalCandidates = {} |         self.ArrivalCandidates = {} | ||||||
|         self.Inbound = inbound |         self.Inbound = inbound | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user