fix #416: reciprocal filter broken
This commit is contained in:
parent
59883995be
commit
4599893fa9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue