]> git.mxchange.org Git - flightgear.git/commitdiff
Add proper conversion factor
authorErik Hofman <erik@ehofman.com>
Mon, 29 Aug 2011 16:34:57 +0000 (18:34 +0200)
committerErik Hofman <erik@ehofman.com>
Mon, 29 Aug 2011 16:34:57 +0000 (18:34 +0200)
src/AIModel/AIBallistic.cxx

index 4336fa14c88b977af10994273cc973604b3a38ea..80778f84cbb441d2a4fb5e0cace426ecd037719a 100644 (file)
@@ -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)