]> git.mxchange.org Git - flightgear.git/commitdiff
Oops, forgot the hooks to the configuration.
authorandy <andy>
Tue, 28 Feb 2006 19:27:33 +0000 (19:27 +0000)
committerandy <andy>
Tue, 28 Feb 2006 19:27:33 +0000 (19:27 +0000)
src/FDM/YASim/FGFDM.cpp

index 1d4a6d03385496fd74e46c6f7b24e7fe7a00bce0..cea9fc59f3d73ac8a30c2556622d482b21287392 100644 (file)
@@ -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);