Add the abillity to attach a propeller thruster to a turbine engine
This commit is contained in:
parent
860545bfa9
commit
0ff5f409c0
3 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
|
|
@ -63,6 +63,7 @@ public:
|
|||
|
||||
double Calculate(double);
|
||||
double CalcFuelNeed(void);
|
||||
double GetPowerAvailable(void);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ public:
|
|||
~FGTurbine();
|
||||
|
||||
double Calculate(double);
|
||||
double GetPowerAvailable(void) { return PowerCommand; }
|
||||
|
||||
private:
|
||||
typedef vector<FGCoefficient*> CoeffArray;
|
||||
|
|
Loading…
Reference in a new issue