1
0
Fork 0

hla: Fix velocity units.

This commit is contained in:
Mathias Froehlich 2012-10-07 22:21:20 +02:00
parent ccb890447a
commit fd23f5dee5

View 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) {