]> git.mxchange.org Git - flightgear.git/commitdiff
Wrong units when interpreting <weight> tags.
authorandy <andy>
Mon, 24 Jun 2002 04:18:53 +0000 (04:18 +0000)
committerandy <andy>
Mon, 24 Jun 2002 04:18:53 +0000 (04:18 +0000)
src/FDM/YASim/FGFDM.cpp

index 56d6136798a96957fb08c0de5f7599a940dc569f..c0aa05684916ae7a93730f76d6d462e6952ef3c7 100644 (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();