I don't quite follow what is being done. Jon
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Hof Markus > Sent: Saturday, January 10, 2004 1:37 PM > To: FlightGear developers discussions > Subject: RE: [Flightgear-devel] fdm: fcs components > > > Hi, enjoy your kids birthday. I got one Version running, but > don't know if you > like this way of implementaion, You maybe want to create an extra > Node for this > property. > > I took the keyword: RESET and any other input than 0 resets and holds the > integrator to 0. > > Here is the patch: > [EMAIL PROTECTED]:~/dl/fltgear/FlightGear-0.9.3/src/FDM/JSBSim/filtersjb > $ diff -2 -u > FGFilter.cpp FGFilter.cpp.orig > --- FGFilter.cpp 2004-01-10 20:04:25.000000000 +0100 > +++ FGFilter.cpp.orig 2004-01-10 19:44:09.000000000 +0100 > @@ -94,10 +94,4 @@ > OutputNode = PropertyManager->GetNode( sOutputIdx ); > } > - else if (token == "RESET") > - { > - // Set the RESET as INPUT[1] > - *AC_cfg >> token; > - InputNodes.push_back( resolveSymbol(token) ); > - } > else cerr << "Unknown filter type: " << token << endl; > } > @@ -177,13 +171,5 @@ > break; > case eIntegrator: > - if( InputNodes.size() == 2 ) > - { > - if ( ( InputNodes[1]->getDoubleValue() ) == 0 ) > - Output = Input * ca + PreviousInput1 * ca + > PreviousOutput1; > - else > - Output = 0; > - } > - else > - Output = Input * ca + PreviousInput1 * ca + > PreviousOutput1; > + Output = Input * ca + PreviousInput1 * ca + PreviousOutput1; > break; > case eUnknown: > > > > Quoting Jon Berndt <[EMAIL PROTECTED]>: > > > This is a programming issue I'll tryu and get to ASAP. Today, > though, is my > > twin boys' second birthday. > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Behalf Of > Hof Markus > > > Sent: Saturday, January 10, 2004 8:10 AM > > > To: [EMAIL PROTECTED] > > > Subject: [Flightgear-devel] fdm: fcs components > > > > > > > > > I have a pitch hold function modelled for the A320, activeted if > > > Input = 0. > > > If the A/C is in pitch-rate command, the Integrator for pitch > > > hold is becoming > > > more and more. > > > > > > How do I reset an Integrator component based on a switch like > > > elevator-cmd-norm=0? > > > > > > thx > > > markus > > > > > > PS: I hope you know what I mean, this seems to be not my day for > > > explainations > > > :)) > > > > > > > > > _______________________________________________ > > > Flightgear-devel mailing list > > > [EMAIL PROTECTED] > > > http://mail.flightgear.org/mailman/listinfo/flightgear-devel > > > > > > _______________________________________________ > > Flightgear-devel mailing list > > [EMAIL PROTECTED] > > http://mail.flightgear.org/mailman/listinfo/flightgear-devel > > > > > _______________________________________________ > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
