]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed handling of delta time (just a kludge for now): VSI behaves
authordavid <david>
Tue, 14 May 2002 14:21:27 +0000 (14:21 +0000)
committerdavid <david>
Tue, 14 May 2002 14:21:27 +0000 (14:21 +0000)
reasonably again, and DG doesn't drift too fast any more.

src/Cockpit/steam.cxx

index 22ed726b3bec2fd60dff6e3976ff2fda5dcc840d..623e1414af6841b30d4e0b620efd37668d3d09ec 100644 (file)
@@ -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);