From abdb5abb6a239ff159a3bf3540435999f6d1cf82 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 14 May 2002 14:21:27 +0000 Subject: [PATCH] Fixed handling of delta time (just a kludge for now): VSI behaves reasonably again, and DG doesn't drift too fast any more. --- src/Cockpit/steam.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cockpit/steam.cxx b/src/Cockpit/steam.cxx index 22ed726b3..623e1414a 100644 --- a/src/Cockpit/steam.cxx +++ b/src/Cockpit/steam.cxx @@ -100,7 +100,7 @@ int FGSteam::_UpdatesPending = 1000000; /* Forces filter to reset */ void FGSteam::update (double dt) { - int timesteps = int(dt * 1000); + int timesteps = int(dt * fgGetInt("/sim/model-hz")); // FIXME if (!isTied) { isTied = true; fgTie("/steam/airspeed-kt", FGSteam::get_ASI_kias); -- 2.39.5