From: Erik Hofman Date: Mon, 29 Aug 2011 16:34:57 +0000 (+0200) Subject: Add proper conversion factor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e9120a8ace519816674c82831db1f787ee0161a;p=flightgear.git Add proper conversion factor --- diff --git a/src/AIModel/AIBallistic.cxx b/src/AIModel/AIBallistic.cxx index 4336fa14c..80778f84c 100644 --- a/src/AIModel/AIBallistic.cxx +++ b/src/AIModel/AIBallistic.cxx @@ -859,7 +859,7 @@ void FGAIBallistic::Run(double dt) { hs = 0; // adjust vertical speed for acceleration of gravity, buoyancy, and vertical force - double gravity = Environment::Gravity::instance()->getGravity(pos); + double gravity = SG_METER_TO_FEET * (Environment::Gravity::instance()->getGravity(pos)); vs -= (gravity - _buoyancy - v_force_acc_fpss - normal_force_fpss) * dt; if (vs <= 0.00001 && vs >= -0.00001)