From f8c1e8dc9846959cfce133c2f4fcc7cec442c194 Mon Sep 17 00:00:00 2001 From: tony Date: Thu, 29 Aug 2002 13:39:29 +0000 Subject: [PATCH] Fixed an oops. --- src/FDM/JSBSim/FGPropulsion.cpp | 12 ++++++------ src/FDM/JSBSim/FGPropulsion.h | 4 +--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/FDM/JSBSim/FGPropulsion.cpp b/src/FDM/JSBSim/FGPropulsion.cpp index 4b467a495..1c4082bf3 100644 --- a/src/FDM/JSBSim/FGPropulsion.cpp +++ b/src/FDM/JSBSim/FGPropulsion.cpp @@ -233,12 +233,8 @@ bool FGPropulsion::Load(FGConfigFile* AC_cfg) Engines.push_back(new FGRocket(FDMExec, &Eng_cfg)); } else if (engType == "FG_PISTON") { Engines.push_back(new FGPiston(FDMExec, &Eng_cfg)); - } else if (engType == "FG_TURBOJET") { - Engines.push_back(new FGTurboJet(FDMExec, &Eng_cfg)); - } else if (engType == "FG_TURBOSHAFT") { - Engines.push_back(new FGTurboShaft(FDMExec, &Eng_cfg)); - } else if (engType == "FG_TURBOPROP") { - Engines.push_back(new FGTurboProp(FDMExec, &Eng_cfg)); + } else if (engType == "FG_TURBINE") { + Engines.push_back(new FGTurbine(FDMExec, &Eng_cfg)); } else { cerr << fgred << " Unrecognized engine type: " << underon << engType << underoff << " found in config file." << fgdef << endl; @@ -377,6 +373,8 @@ string FGPropulsion::GetPropulsionStrings(void) case FGEngine::etRocket: PropulsionStrings += (Engines[i]->GetName() + "_ChamberPress[" + buffer + "]"); break; + case FGEngine::etTurbine: + break; default: PropulsionStrings += "INVALID ENGINE TYPE"; break; @@ -429,6 +427,8 @@ string FGPropulsion::GetPropulsionValues(void) case FGEngine::etRocket: PropulsionValues += (string(gcvt(((FGRocket*)Engines[i])->GetChamberPressure(), 10, buff))); break; + case FGEngine::etTurbine: + break; } PropulsionValues += ", "; diff --git a/src/FDM/JSBSim/FGPropulsion.h b/src/FDM/JSBSim/FGPropulsion.h index 0faf114a4..56eecf4c3 100644 --- a/src/FDM/JSBSim/FGPropulsion.h +++ b/src/FDM/JSBSim/FGPropulsion.h @@ -56,9 +56,7 @@ INCLUDES #include "FGRocket.h" #include "FGPiston.h" -#include "FGTurboShaft.h" -#include "FGTurboJet.h" -#include "FGTurboProp.h" +#include "FGTurbine.h" #include "FGTank.h" #include "FGPropeller.h" #include "FGNozzle.h"