From 133a7d42711c1a9d66cc4e94d85171d59608fb84 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 20 Oct 2004 09:47:37 +0000 Subject: [PATCH] Use the right conversion factor and multiply the accelrations by dt. --- src/FDM/SP/ACMS.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/SP/ACMS.cxx b/src/FDM/SP/ACMS.cxx index 346329f1d..cab51af07 100644 --- a/src/FDM/SP/ACMS.cxx +++ b/src/FDM/SP/ACMS.cxx @@ -78,9 +78,9 @@ void FGACMS::update( double dt ) { sgSetVec3(accel_ned, acc_lon, acc_lat, acc_down); double accel = sgLengthVec3 (accel_ned) * SG_FEET_TO_METER; - double velocity = (_speed->getDoubleValue() * SG_FEET_TO_METER) * accel; + double velocity = (_speed->getDoubleValue() * SG_KT_TO_MPS) * accel * dt; double dist = cos (pitch) * velocity * dt; - double kts = velocity * SG_MPS_TO_KMH * SG_KMH_TO_MPS * SG_MPS_TO_KT; + double kts = velocity * SG_MPS_TO_KT; _set_V_equiv_kts( kts ); _set_V_calibrated_kts( kts ); _set_V_ground_speed( kts ); -- 2.39.5