Improve speed estimations.

Reasonable ground speed depends a lot on altitude, so plumb that
information through to the speed estimator.

Also adds calculations for ground speed based on desired mach. I don't
know if DCS is using the same formulas, but we should at least be
pretty close.
This commit is contained in:
Dan Albert
2020-10-15 23:48:42 -07:00
parent 5a027c552e
commit 2fa3b26119
5 changed files with 111 additions and 39 deletions

View File

@@ -122,6 +122,8 @@ class QTopPanel(QFrame):
def negative_start_packages(self) -> List[Package]:
packages = []
for package in self.game_model.ato_model.ato.packages:
if not package.flights:
continue
estimator = TotEstimator(package)
for flight in package.flights:
if estimator.mission_start_time(flight) < 0: