From 3d3922cd46b176dede59f5c5d06df953030e93f1 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 20 Oct 2004 14:27:29 +0000 Subject: [PATCH] Accelerations should be added to the velocity, not multiplied --- src/FDM/SP/ACMS.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FDM/SP/ACMS.cxx b/src/FDM/SP/ACMS.cxx index cab51af07..c5b7eefdd 100644 --- a/src/FDM/SP/ACMS.cxx +++ b/src/FDM/SP/ACMS.cxx @@ -78,7 +78,7 @@ 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_KT_TO_MPS) * accel * dt; + double velocity = (_speed->getDoubleValue() * SG_KT_TO_MPS) + accel * dt; double dist = cos (pitch) * velocity * dt; double kts = velocity * SG_MPS_TO_KT; _set_V_equiv_kts( kts );