> > > I think we need a special case for engine off here.
> >
> > Good catch.
>
> I have changed some things in FGPiston (fixed) based on my limited
> understanding).
>
> void FGPiston::doManifoldPressure(void)
> {
> // DAVE: CHECK THIS
> if (Running ) {
> ManifoldPressure_inHg = MinManifoldPressure_inHg +
> (Throttle * (MaxManifoldPressure_inHg -
> MinManifoldPressure_inHg));
> } else if (Cranking) {
> ManifoldPressure_inHg += (dt/2.0)*(MinManifoldPressure_inHg / 6.0 -
> ManifoldPressure_inHg);
> } else {
> ManifoldPressure_inHg -= (dt/2.0)*ManifoldPressure_inHg; // fade
> }
> }
>
> void FGPiston::doEGT(void)
> {
> ...
> ...
> // DAVE: CHECK THIS
> if (heat_capacity_exhaust <= 0.0000001)
> delta_T_exhaust = enthalpy_exhaust / heat_capacity_exhaust;
> else
> delta_T_exhaust -= (dt/2.0)*delta_T_exhaust;
>
Compilers complains : delta_T_exhaust used without having been initialized
Why the '-=' in the else case of calculation of delta_T_exhaust ? What is
its previous value ?
-Fred
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel