add more information to the arrival waypoints

This commit is contained in:
Sven Czarnian
2021-11-13 09:46:43 +01:00
parent 8c703c13a1
commit 75224a1952
2 changed files with 12 additions and 0 deletions

View File

@@ -191,6 +191,9 @@ class Inbound:
arrivalRoute[-1].FlightTime = timedelta(seconds = flightTimeSeconds)
arrivalRoute[-1].ETA = self.ReportTime + arrivalRoute[-1].FlightTime
arrivalRoute[-1].PTA = arrivalRoute[-1].ETA
arrivalRoute[-1].Altitude = currentPosition[0]
arrivalRoute[-1].IndicatedAirspeed = currentIAS
arrivalRoute[-1].GroundSpeed = currentPosition[1]
# check if a skip from base to final turn waypoints is needed
if -1 != turnIndices[0] and nextWaypointIndex > turnIndices[0] and nextWaypointIndex < turnIndices[1]: