From cea52736bf9fff1794b32fc9f7aaf7f8495f8fb4 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Wed, 13 Oct 2021 18:12:16 +0200 Subject: [PATCH] fix some IAS selection bugs --- aman/types/PerformanceData.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aman/types/PerformanceData.py b/aman/types/PerformanceData.py index a1b8fd7..0b58502 100644 --- a/aman/types/PerformanceData.py +++ b/aman/types/PerformanceData.py @@ -12,16 +12,16 @@ class PerformanceData: self.RodBelowFL100 = 2000.0 def ias(self, altitude, distance): - if 24000 >= altitude: + if 24000 < altitude: return self.SpeedAboveFL240 - elif 10000 >= altitude: + elif 10000 < altitude: return self.SpeedAboveFL100 - elif 10000 < altitude and 5 < distance: + elif 10000 >= altitude and 5 < distance: return self.SpeedBelowFL100 elif 5 >= distance: return self.SpeedApproach else: - return 220 + return self.SpeedBelowFL100 def __str__(self): return 'ICAO: ' + self.icao + ', FL240: ' + str(self.RodAboveFL240) + '@' + str(self.SpeedAboveFL240) + \