From: david Date: Fri, 28 Jun 2002 18:38:28 +0000 (+0000) Subject: Update from JSBSim - fix bugs reported by Gonzalo Peralta with CHT and X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a26ea45c4344a8baa13867ce2648266ca5ab1cdc;p=flightgear.git Update from JSBSim - fix bugs reported by Gonzalo Peralta with CHT and oil pressure. --- 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;