]> git.mxchange.org Git - flightgear.git/commitdiff
Add cht (cylinder head temp) and tit (turbine inlet temp) to net_fdm.hxx
authorcurt <curt>
Wed, 5 Jan 2005 03:43:05 +0000 (03:43 +0000)
committercurt <curt>
Wed, 5 Jan 2005 03:43:05 +0000 (03:43 +0000)
src/Network/native_fdm.cxx
src/Network/net_fdm.hxx
src/Replay/replay.cxx

index 6c1e027b669ac69535507c99a3b6ffdfa7b5a350..50c3c995894c328a7434f901ef4bf87772cad19c 100644 (file)
@@ -173,7 +173,9 @@ void FGProps2NetFDM( FGNetFDM *net, bool net_byte_order ) {
         net->fuel_flow[i] = node->getDoubleValue( "fuel-flow-gph" );
         net->egt[i] = node->getDoubleValue( "egt-degf" );
         // cout << "egt = " << aero->EGT << endl;
+        net->cht[i] = node->getDoubleValue( "cht-degf" );
         net->mp_osi[i] = node->getDoubleValue( "mp-osi" );
+        net->tit[i] = node->getDoubleValue( "tit" );
         net->oil_temp[i] = node->getDoubleValue( "oil-temperature-degf" );
         net->oil_px[i] = node->getDoubleValue( "oil-pressure-psi" );
     }
@@ -253,7 +255,9 @@ void FGProps2NetFDM( FGNetFDM *net, bool net_byte_order ) {
             htonf(net->rpm[i]);
             htonf(net->fuel_flow[i]);
             htonf(net->egt[i]);
+            htonf(net->cht[i]);
             htonf(net->mp_osi[i]);
+            htonf(net->tit[i]);
             htonf(net->oil_temp[i]);
             htonf(net->oil_px[i]);
         }
@@ -332,7 +336,9 @@ void FGNetFDM2Props( FGNetFDM *net, bool net_byte_order ) {
             htonf(net->rpm[i]);
             htonf(net->fuel_flow[i]);
             htonf(net->egt[i]);
+            htonf(net->cht[i]);
             htonf(net->mp_osi[i]);
+            htonf(net->tit[i]);
             htonf(net->oil_temp[i]);
             htonf(net->oil_px[i]);
         }
@@ -428,7 +434,9 @@ void FGNetFDM2Props( FGNetFDM *net, bool net_byte_order ) {
            node->setDoubleValue( "rpm", net->rpm[i] );
            node->setDoubleValue( "fuel-flow-gph", net->fuel_flow[i] );
            node->setDoubleValue( "egt-degf", net->egt[i] );
+           node->setDoubleValue( "cht-degf", net->cht[i] );
            node->setDoubleValue( "mp-osi", net->mp_osi[i] );
+           node->setDoubleValue( "tit", net->tit[i] );
            node->setDoubleValue( "oil-temperature-degf", net->oil_temp[i] );
            node->setDoubleValue( "oil-pressure-psi", net->oil_px[i] );         
        }
index e25b9b1ed1d0b5680625a7bd2a2fe079f6d409a0..29c82062ec345745d98820bfeb5c1540f7778342 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <time.h> // time_t
 
-const int FG_NET_FDM_VERSION = 19;
+const int FG_NET_FDM_VERSION = 20;
 
 
 // Define a structure containing the top level flight dynamics model
@@ -84,7 +84,9 @@ public:
     float rpm[FG_MAX_ENGINES];      // Engine RPM rev/min
     float fuel_flow[FG_MAX_ENGINES]; // Fuel flow gallons/hr
     float egt[FG_MAX_ENGINES];      // Exhuast gas temp deg F
+    float cht[FG_MAX_ENGINES];      // Cylinder head temp deg F
     float mp_osi[FG_MAX_ENGINES];    // Manifold pressure
+    float tit[FG_MAX_ENGINES];      // Turbine Inlet Temperature
     float oil_temp[FG_MAX_ENGINES];  // Oil temp deg F
     float oil_px[FG_MAX_ENGINES];    // Oil pressure psi
 
index 17cda3b711148eac967885f1c4391e21012dbd32..5bc1fd257e9e64fe70408e88095c0520d48ef3ca 100644 (file)
@@ -268,7 +268,9 @@ static FGReplayData interpolate( double time, FGReplayData f1, FGReplayData f2 )
         result.fdm.fuel_flow[i]
             = weight( fdm1.fuel_flow[i], fdm2.fuel_flow[i], ratio );
         result.fdm.egt[i] = weight( fdm1.egt[i], fdm2.egt[i], ratio );
+        result.fdm.cht[i] = weight( fdm1.cht[i], fdm2.cht[i], ratio );
         result.fdm.mp_osi[i] = weight( fdm1.mp_osi[i], fdm2.mp_osi[i], ratio );
+        result.fdm.tit[i] = weight( fdm1.tit[i], fdm2.tit[i], ratio );
         result.fdm.oil_temp[i]
             = weight( fdm1.oil_temp[i], fdm2.oil_temp[i], ratio );
         result.fdm.oil_px[i] = weight( fdm1.oil_px[i], fdm2.oil_px[i], ratio );