]> git.mxchange.org Git - flightgear.git/commitdiff
Update from JSBSim - fix bugs reported by Gonzalo Peralta with CHT and
authordavid <david>
Fri, 28 Jun 2002 18:38:28 +0000 (18:38 +0000)
committerdavid <david>
Fri, 28 Jun 2002 18:38:28 +0000 (18:38 +0000)
oil pressure.

src/FDM/JSBSim/FGPiston.cpp

index 46eaaccf10892e9bafca2650d78dc87406d04183..9b0e5070cd49e69baa5ec3ecb996861e128bcdab 100644 (file)
@@ -459,7 +459,7 @@ void FGPiston::doCHT(void)
     
   double HeatCapacityCylinderHead = CpCylinderHead * MassCylinderHead;
     
-  CylinderHeadTemp_degK = dqdt_cylinder_head / HeatCapacityCylinderHead;
+  CylinderHeadTemp_degK += dqdt_cylinder_head / HeatCapacityCylinderHead;
 }
 
 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -507,8 +507,7 @@ void FGPiston::doOilPressure(void)
 {
   double Oil_Press_Relief_Valve = 60; // FIXME: may vary by engine
   double Oil_Press_RPM_Max = 1800;    // FIXME: may vary by engine
-  double Design_Oil_Temp = 85;        // FIXME: may vary by engine
-             // FIXME: WRONG!!! (85 degK???)
+  double Design_Oil_Temp = 358;              // degK; FIXME: may vary by engine
   double Oil_Viscosity_Index = 0.25;
 
   OilPressure_psi = (Oil_Press_Relief_Valve / Oil_Press_RPM_Max) * RPM;