[Flightgear-devel] Starter spin time patch
I write patch for changes of JSB turbine starter spin time. diff -u FGTurbine.cpp.orig FGTurbine.cpp --- FGTurbine.cpp.orig 2009-03-24 00:46:08.0 +0300 +++ FGTurbine.cpp 2009-03-24 12:32:25.0 +0300 @@ -68,6 +68,7 @@ Augmented = AugMethod = Injected = 0; BypassRatio = BleedDemand = 0.0; IdleThrustLookup = MilThrustLookup = MaxThrustLookup = InjectionLookup = 0; + SpinCoeff = 1.0; ResetToIC(); @@ -255,8 +256,8 @@ { Running = false; FuelFlow_pph = 0.0; - N2 = Seek(N2, 25.18, 3.0, N2/2.0); - N1 = Seek(N1, 5.21, 1.0, N1/2.0); + N2 = Seek(N2, 25.18, 3.0*SpinCoeff, N2/2.0); + N1 = Seek(N1, 5.21, 1.0*SpinCoeff, N1/2.0); EGT_degC = Seek(EGT_degC, TAT, 11.7, 7.3); OilPressure_psi = N2 * 0.62; OilTemp_degK = Seek(OilTemp_degK, TAT + 273.0, 0.2, 0.2); @@ -427,6 +428,11 @@ Injected = (int)el-FindElementValueAsNumber(injected); if (el-FindElement(injection-time)) InjectionTime = el-FindElementValueAsNumber(injection-time); + if (el-FindElement(spin-coeff)) + { +SpinCoeff = el-FindElementValueAsNumber(spin-coeff); +cout Spin Coeff: SpinCoeff endl; + } Element *function_element; string name; @@ -462,6 +468,7 @@ return true; } + //%% string FGTurbine::GetEngineLabels(string delimeter) @@ -557,6 +564,7 @@ coutAugMethod: AugMethod endl; coutInjected: Injected endl; coutMinThrottle: MinThrottle endl; + cout SpinCoeff: SpinCoeff endl; cout endl; } diff -u FGTurbine.cpp.orig FGTurbine.cpp patch1.diff --- FGTurbine.h.orig2009-03-24 12:35:34.0 +0300 +++ FGTurbine.h 2009-03-24 12:34:19.0 +0300 @@ -99,6 +99,7 @@ augmethod {0 | 1 | 2} /augmethod injected {0 | 1} /injected injection-time {number} /injection-time + spin-coeff{number}/spin-coeff /turbine_engine @endcode @@ -234,6 +235,7 @@ double ThrottlePos; /// FCS-supplied throttle position double AugmentCmd; /// modulated afterburner command (0.0 to 1.0) double TAT; /// total air temperature (deg C) + double SpinCoeff; /// starter spin coefficient (decrease it for increase spin) bool Stalled;/// true if engine is compressor-stalled bool Seized; /// true if inner spool is seized bool Overtemp; /// true if EGT exceeds limits -- Best regard!!! Yaroslav Zavarzin Registered Linux user #419120 -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Starter spin time patch
Specter wrote: I write patch for changes of JSB turbine starter spin time. Dave just recently committed this patch to JSBSim and I am preparing a new sync between them soon so it'll end op in FlightGear that way. Erik -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Starter spin time patch
On Tue, Mar 24, 2009 at 12:47 PM, Erik Hofman e...@ehofman.com wrote: Specter wrote: I write patch for changes of JSB turbine starter spin time. Dave just recently committed this patch to JSBSim and I am preparing a new sync between them soon so it'll end op in FlightGear that way. I hope he left out the cout Spin Coeff: SpinCoeff endl; part from the Load function. -- Csaba/Jester -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Starter spin time patch
On mardi 24 mars 2009, Erik Hofman wrote: Specter wrote: I write patch for changes of JSB turbine starter spin time. Dave just recently committed this patch to JSBSim and I am preparing a new sync between them soon so it'll end op in FlightGear that way. Erik Does that will modify the original Jon's recommendation to start an engine ? Get the external Air compressor resources The engine will spin up to a maximum of about %25 N2 (%5.2 N1) This simulates the action of a pneumatic starter.- After reaching %15 N2, Cutoff to False Thanks -- Gérard http://pagesperso-orange.fr/GRTux/ J'ai décidé d'être heureux parce que c'est bon pour la santé. Voltaire -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Starter spin time patch
On Tue, 2009-03-24 at 14:06 +0100, gerard robin wrote: On mardi 24 mars 2009, Erik Hofman wrote: Specter wrote: I write patch for changes of JSB turbine starter spin time. Dave just recently committed this patch to JSBSim and I am preparing a new sync between them soon so it'll end op in FlightGear that way. Erik Does that will modify the original Jon's recommendation to start an engine ? Get the external Air compressor resources The engine will spin up to a maximum of about %25 N2 (%5.2 N1) This simulates the action of a pneumatic starter.- After reaching %15 N2, Cutoff to False Thanks It should just adjust the time required to reach 25% N2. Ron -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Starter spin time patch
Csaba Halász wrote: On Tue, Mar 24, 2009 at 12:47 PM, Erik Hofman e...@ehofman.com wrote: Specter wrote: I write patch for changes of JSB turbine starter spin time. Dave just recently committed this patch to JSBSim and I am preparing a new sync between them soon so it'll end op in FlightGear that way. I hope he left out the cout Spin Coeff: SpinCoeff endl; part from the Load function. Yes he did :) Erik -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Starter spin time patch
Ron Jensen wrote: On Tue, 2009-03-24 at 14:06 +0100, gerard robin wrote: Does that will modify the original Jon's recommendation to start an engine ? Get the external Air compressor resources The engine will spin up to a maximum of about %25 N2 (%5.2 N1) This simulates the action of a pneumatic starter.- After reaching %15 N2, Cutoff to False Thanks It should just adjust the time required to reach 25% N2. And only if defined, otherwise it will not affect precious behavior. Erik -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel