From ef8bac3b2fe1e91d896ffbfd8a2d030a3ea2181e Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 28 Feb 2006 19:27:33 +0000 Subject: [PATCH] Oops, forgot the hooks to the configuration. --- src/FDM/YASim/FGFDM.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FDM/YASim/FGFDM.cpp b/src/FDM/YASim/FGFDM.cpp index 1d4a6d033..cea9fc59f 100644 --- a/src/FDM/YASim/FGFDM.cpp +++ b/src/FDM/YASim/FGFDM.cpp @@ -699,6 +699,7 @@ void FGFDM::parsePistonEngine(XMLAttributes* a) float mul = attrf(a, "turbo-mul"); float mp = attrf(a, "wastegate-mp", 1e6) * INHG2PA; eng->setTurboParams(mul, mp); + eng->setTurboLag(attrf(a, "turbo-lag", 2)); } if(a->hasAttribute("supercharger")) @@ -852,6 +853,7 @@ int FGFDM::parseOutput(const char* name) if(eq(name, "CYCLICELE")) return ControlMap::CYCLICELE; if(eq(name, "ROTORENGINEON")) return ControlMap::ROTORENGINEON; if(eq(name, "REVERSE_THRUST")) return ControlMap::REVERSE_THRUST; + if(eq(name, "WASTEGATE")) return ControlMap::WASTEGATE; SG_LOG(SG_FLIGHT,SG_ALERT,"Unrecognized control type '" << name << "' in YASim aircraft description."); exit(1);