]> git.mxchange.org Git - flightgear.git/commitdiff
hla: Fix velocity units.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 7 Oct 2012 20:21:20 +0000 (22:21 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 7 Oct 2012 20:23:04 +0000 (22:23 +0200)
src/Network/HLA/hla.cxx

index b9dfc62aad1b724c4655234056342e42737d34b2..b3923a75cb6a6e76d7262e6b02399a2b6e27c186 100644 (file)
@@ -662,9 +662,9 @@ public:
         _attributeData._location->setAngularBodyVelocity(SGVec3d(p, q, r));
         // The body uvw velocities in the interface are wrt the wind instead
         // of wrt the ec frame
-        double n = _ifce.get_V_north();
-        double e = _ifce.get_V_east();
-        double d = _ifce.get_V_down();
+        double n = _ifce.get_V_north()*SG_FEET_TO_METER;
+        double e = _ifce.get_V_east()*SG_FEET_TO_METER;
+        double d = _ifce.get_V_down()*SG_FEET_TO_METER;
         _attributeData._location->setLinearBodyVelocity(hlOr.transform(SGVec3d(n, e, d)));
 
         if (_attributeData._mpProperties.valid() && _attributeData._mpProperties->getNumElements() == 0) {