From fd23f5dee583288e1b5f5deb0f82c700fe99169b Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sun, 7 Oct 2012 22:21:20 +0200 Subject: [PATCH] hla: Fix velocity units. --- src/Network/HLA/hla.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Network/HLA/hla.cxx b/src/Network/HLA/hla.cxx index b9dfc62aa..b3923a75c 100644 --- a/src/Network/HLA/hla.cxx +++ b/src/Network/HLA/hla.cxx @@ -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) { -- 2.39.5