From: curt Date: Wed, 5 Jan 2005 03:43:05 +0000 (+0000) Subject: Add cht (cylinder head temp) and tit (turbine inlet temp) to net_fdm.hxx X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8512984da5e8cd4378f4b707d9fbb95640e2348b;p=flightgear.git Add cht (cylinder head temp) and tit (turbine inlet temp) to net_fdm.hxx --- diff --git a/src/Network/native_fdm.cxx b/src/Network/native_fdm.cxx index 6c1e027b6..50c3c9958 100644 --- a/src/Network/native_fdm.cxx +++ b/src/Network/native_fdm.cxx @@ -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] ); } diff --git a/src/Network/net_fdm.hxx b/src/Network/net_fdm.hxx index e25b9b1ed..29c82062e 100644 --- a/src/Network/net_fdm.hxx +++ b/src/Network/net_fdm.hxx @@ -18,7 +18,7 @@ #include // 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 diff --git a/src/Replay/replay.cxx b/src/Replay/replay.cxx index 17cda3b71..5bc1fd257 100644 --- a/src/Replay/replay.cxx +++ b/src/Replay/replay.cxx @@ -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 );