From a2b71872addb7f83c4d58cc89acf9b30815dabb6 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 24 Jul 2003 14:43:11 +0000 Subject: [PATCH] This fixes the K to F conversion for the EGT output --- src/FDM/YASim/FGFDM.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FDM/YASim/FGFDM.cpp b/src/FDM/YASim/FGFDM.cpp index 073568f74..09dcad718 100644 --- a/src/FDM/YASim/FGFDM.cpp +++ b/src/FDM/YASim/FGFDM.cpp @@ -26,6 +26,7 @@ static const float CM2GALS = 264.172037284; static const float HP2W = 745.700; static const float INHG2PA = 3386.389; static const float K2DEGF = 1.8; +static const float K2DEGFOFFSET = -459.4; static const float CIN2CM = 1.6387064e-5; // Stubs, so that this can be compiled without the FlightGear @@ -371,7 +372,7 @@ void FGFDM::setOutputProperties() fgSetFloat(buf, p->getMP() * (1/INHG2PA)); sprintf(buf, "%s/egt-degf", er->prefix); - fgSetFloat(buf, p->getEGT() * K2DEGF + 459.4); + fgSetFloat(buf, p->getEGT() * K2DEGF + K2DEGFOFFSET); } if(t->getJet()) { @@ -387,7 +388,7 @@ void FGFDM::setOutputProperties() fgSetFloat(buf, j->getEPR()); sprintf(buf, "%s/egt-degf", er->prefix); - fgSetFloat(buf, j->getEGT() * K2DEGF + 459.4); + fgSetFloat(buf, j->getEGT() * K2DEGF + K2DEGFOFFSET); } } }