1
0
Fork 0

Wrong units when interpreting <weight> tags.

This commit is contained in:
andy 2002-06-24 04:18:53 +00:00
parent 8199ece7dc
commit b162cf8707

View file

@ -301,7 +301,7 @@ void FGFDM::getExternalInput(float dt)
// Weights
for(i=0; i<_weights.size(); i++) {
WeightRec* wr = (WeightRec*)_weights.get(i);
_airplane.setWeight(wr->handle, fgGetFloat(wr->prop));
_airplane.setWeight(wr->handle, LBS2KG * fgGetFloat(wr->prop));
}
}
@ -338,7 +338,7 @@ void FGFDM::setOutputProperties()
Thruster* t = er->eng;
sprintf(buf, "%s/fuel-flow-gph", er->prefix);
fgSetFloat(buf, (t->getFuelFlow()/fuelDensity) * 3600 * CM2GALS);
fgSetFloat(buf, (t->getFuelFlow()/fuelDensity) * 3600 * CM2GALS);
if(t->getPropEngine()) {
PropEngine* p = t->getPropEngine();