double FGPiston::Calculate(double PowerRequired)
{
- // FIXME: calculate from actual fuel flow
ConsumeFuel();
Throttle = FCS->GetThrottlePos(EngineNumber);
void FGPiston::doEngineStartup(void)
{
- // TODO: check magnetos, spark, starter, etc. and decide whether
- // engine is running
-
// Check parameters that may alter the operating state of the engine.
// (spark, fuel, starter motor etc)
bool spark;
if (Magnetos > 1) Magneto_Right = true;
// Assume we have fuel for now
- fuel = true;
+ fuel = !Starved;
// Check if we are turning the starter motor
if (Cranking != Starter) {
double
FGPiston::CalcFuelNeed(void)
{
- // FIXME: is this right?
- return FuelFlow_gph * State->Getdt() * Propulsion->GetRate();
+ return FuelFlow_gph / 3600 * State->Getdt() * Propulsion->GetRate();
}