From 8199ece7dcca6b45237fab8647205effa6e38bcf Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Thu, 20 Jun 2002 04:11:19 +0000
Subject: [PATCH] Hack in an /accelerations/pilot-g property, for testing a new
 panel instrument.  This needs to move somewhere permanent.

Also, remove a bogus fuel consumption setting that (1) was off by a factor
of 3600 (hours, not seconds) and (2) collided with identical code in FGFDM.
---
 src/FDM/YASim/YASim.cxx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx
index efa824838..c5352f6b9 100644
--- a/src/FDM/YASim/YASim.cxx
+++ b/src/FDM/YASim/YASim.cxx
@@ -388,6 +388,11 @@ void YASim::copyFromYASim()
     _fdm->getAirplane()->getPilotAccel(v);
     _set_Accels_Pilot_Body(M2FT*v[0], M2FT*v[1], -M2FT*v[2]);
 
+    // There is no property for pilot G's, but I need it for a panel
+    // instrument.  Hack this in here, and REMOVE IT WHEN IT FINDS A
+    // REAL HOME!
+    fgSetFloat("/accelerations/pilot-g", -v[2]/9.8);
+
     // The one appears (!) to want inverted pilot acceleration
     // numbers, in G's...
     Math::mul3(1.0/9.8, v, v);
@@ -430,10 +435,6 @@ void YASim::copyFromYASim()
 	node->setBoolValue("running", t->isRunning());
 	node->setBoolValue("cranking", t->isCranking());
 
-        // Note: assumes all tanks have the same fuel density!
-	node->setDoubleValue("fuel-flow-gph", CM2GALS * t->getFuelFlow()
-			     / airplane->getFuelDensity(0));
-
         float tmp[3];
         t->getThrust(tmp);
 	node->setDoubleValue("prop-thrust", Math::mag3(tmp) * KG2LBS / 9.8);