1
0
Fork 0

fix #416: reciprocal filter broken

This commit is contained in:
Torsten Dreyer 2011-08-25 22:25:20 +02:00
parent 59883995be
commit 4599893fa9

View file

@ -136,7 +136,7 @@ bool GainFilterImplementation::configure( const std::string & nodeName, SGProper
double ReciprocalFilterImplementation::compute( double dt, double input )
{
if( input >= -SGLimitsd::min() || input <= SGLimitsd::min() )
if( input >= -SGLimitsd::min() && input <= SGLimitsd::min() )
return SGLimitsd::max();
return _gainInput.get_value() / input;