From 7b3c6c0ff76db9326a020ccdddbfb3361dd5dc95 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 14 Apr 2004 17:05:33 +0000 Subject: [PATCH] Units bug. --- src/FDM/YASim/FGFDM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FDM/YASim/FGFDM.cpp b/src/FDM/YASim/FGFDM.cpp index 03d23eb87..4524c35b4 100644 --- a/src/FDM/YASim/FGFDM.cpp +++ b/src/FDM/YASim/FGFDM.cpp @@ -91,7 +91,7 @@ void FGFDM::iterate(float dt) t->setFuelState(!fgGetBool(buf)); sprintf(buf, "/engines/engine[%d]/fuel-consumed-lbs", i); - double consumed = fgGetDouble(buf) + dt * t->getFuelFlow(); + double consumed = fgGetDouble(buf) + dt * KG2LBS * t->getFuelFlow(); fgSetDouble(buf, consumed); } for(int i=0; i<_airplane.numTanks(); i++) {