1
0
Fork 0

Add the abillity to attach a propeller thruster to a turbine engine

This commit is contained in:
ehofman 2003-07-26 09:12:54 +00:00
parent 860545bfa9
commit 0ff5f409c0
3 changed files with 10 additions and 0 deletions

View file

@ -155,6 +155,14 @@ double FGSimTurbine::CalcFuelNeed(void)
return FuelFlow_pph /3600 * State->Getdt() * Propulsion->GetRate();
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
double FGSimTurbine::GetPowerAvailable(void) {
if( throttle <= 0.77 )
return 64.94*throttle;
else
return 217.38*throttle - 117.38;
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View file

@ -63,6 +63,7 @@ public:
double Calculate(double);
double CalcFuelNeed(void);
double GetPowerAvailable(void);
private:

View file

@ -62,6 +62,7 @@ public:
~FGTurbine();
double Calculate(double);
double GetPowerAvailable(void) { return PowerCommand; }
private:
typedef vector<FGCoefficient*> CoeffArray;