1
0
Fork 0

Oops, forgot the hooks to the configuration.

This commit is contained in:
andy 2006-02-28 19:27:33 +00:00
parent 55cde5f160
commit ef8bac3b2f

View file

@ -699,6 +699,7 @@ void FGFDM::parsePistonEngine(XMLAttributes* a)
float mul = attrf(a, "turbo-mul"); float mul = attrf(a, "turbo-mul");
float mp = attrf(a, "wastegate-mp", 1e6) * INHG2PA; float mp = attrf(a, "wastegate-mp", 1e6) * INHG2PA;
eng->setTurboParams(mul, mp); eng->setTurboParams(mul, mp);
eng->setTurboLag(attrf(a, "turbo-lag", 2));
} }
if(a->hasAttribute("supercharger")) if(a->hasAttribute("supercharger"))
@ -852,6 +853,7 @@ int FGFDM::parseOutput(const char* name)
if(eq(name, "CYCLICELE")) return ControlMap::CYCLICELE; if(eq(name, "CYCLICELE")) return ControlMap::CYCLICELE;
if(eq(name, "ROTORENGINEON")) return ControlMap::ROTORENGINEON; if(eq(name, "ROTORENGINEON")) return ControlMap::ROTORENGINEON;
if(eq(name, "REVERSE_THRUST")) return ControlMap::REVERSE_THRUST; 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 '" SG_LOG(SG_FLIGHT,SG_ALERT,"Unrecognized control type '"
<< name << "' in YASim aircraft description."); << name << "' in YASim aircraft description.");
exit(1); exit(1);