Quoting Jon Berndt <[EMAIL PROTECTED]>:
> > Markus:
> > If there was a RESET capability for the filters, it would be driven by
> > non-zero value in the Reset attribute (which would need to be added to the
> > FGFilter class).
maybe you are right, it was a quickfix (10 mins) w/ first contact of jsb
classes. :-) maybe I built in to wrong ones.
I bound a second Input Property Node to use it as reset, an I think it should
work as it is now.

> > I think your proposed change to FGFilter might be very close to what is
> > needed.
 
> I am thinking that if the value of the Reset parameter is negative then all
> inputs and outputs are initialized to 0.0, if positive the outputs are reset
> to 0.0.  If equal to 0 (an integer) then nothing is done. How does that
> sound?

this sounds fine... I only used !=0 to hold the integrator output to 0, so maybe
the reset has to be != 0 for 2 cycles, to completly reset, but that didn't
matter for my application.

Yours sounds nice, to use also input resets. But be sure to hold this feature
documented ;-) ... otherwise some people won't get what they expect the filter
to do.

markus

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to