From a26ea45c4344a8baa13867ce2648266ca5ab1cdc Mon Sep 17 00:00:00 2001 From: david Date: Fri, 28 Jun 2002 18:38:28 +0000 Subject: [PATCH] Update from JSBSim - fix bugs reported by Gonzalo Peralta with CHT and oil pressure. --- src/FDM/JSBSim/FGPiston.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/FDM/JSBSim/FGPiston.cpp b/src/FDM/JSBSim/FGPiston.cpp index 46eaaccf1..9b0e5070c 100644 --- a/src/FDM/JSBSim/FGPiston.cpp +++ b/src/FDM/JSBSim/FGPiston.cpp @@ -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;