Fixed handling of delta time (just a kludge for now): VSI behaves
reasonably again, and DG doesn't drift too fast any more.
This commit is contained in:
parent
487a14d05b
commit
abdb5abb6a
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ int FGSteam::_UpdatesPending = 1000000; /* Forces filter to reset */
|
||||||
|
|
||||||
void FGSteam::update (double dt)
|
void FGSteam::update (double dt)
|
||||||
{
|
{
|
||||||
int timesteps = int(dt * 1000);
|
int timesteps = int(dt * fgGetInt("/sim/model-hz")); // FIXME
|
||||||
if (!isTied) {
|
if (!isTied) {
|
||||||
isTied = true;
|
isTied = true;
|
||||||
fgTie("/steam/airspeed-kt", FGSteam::get_ASI_kias);
|
fgTie("/steam/airspeed-kt", FGSteam::get_ASI_kias);
|
||||||
|
|
Loading…
Add table
Reference in a new issue