Use SGMisc wrapper for _isnan makes "other" OSes happy
This commit is contained in:
parent
2c8aad12ba
commit
169b0f59e5
2 changed files with 3 additions and 3 deletions
|
@ -608,7 +608,7 @@ void HighPassFilterImplementation::initialize( double initvalue )
|
|||
|
||||
double HighPassFilterImplementation::compute(double dt, double input)
|
||||
{
|
||||
if (_isnan(input))
|
||||
if (SGMiscd::isNaN(input))
|
||||
SG_LOG(SG_AUTOPILOT, SG_ALERT, "High pass filter output is NaN.");
|
||||
|
||||
input = GainFilterImplementation::compute(dt, input);
|
||||
|
@ -830,7 +830,7 @@ void DigitalFilter::update( bool firstTime, double dt)
|
|||
}
|
||||
|
||||
double input = _valueInput.get_value() - _referenceInput.get_value();
|
||||
if (_isnan(input))
|
||||
if (SGMiscd::isNaN(input))
|
||||
input = _valueInput.get_value() - _referenceInput.get_value();
|
||||
double output = _implementation->compute( dt, input );
|
||||
|
||||
|
|
|
@ -205,7 +205,7 @@ double InputValue::get_value() const
|
|||
if( _periodical ) {
|
||||
value = _periodical->normalize( value );
|
||||
}
|
||||
if (_isnan(value))
|
||||
if (SGMiscd::isNaN(value))
|
||||
SG_LOG(SG_AUTOPILOT, SG_ALERT, "input is NaN." );
|
||||
return _abs ? fabs(value) : value;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue