1
0
Fork 0

Merge branch 'next' of git://gitorious.org/fg/flightgear into next

This commit is contained in:
Thorsten Brehm 2010-10-05 22:11:33 +02:00
commit c8ab25d4e9

View file

@ -343,8 +343,10 @@ void DigitalFilter::update( bool firstTime, double dt)
{
if( _implementation == NULL ) return;
if( firstTime )
_implementation->initialize( get_output_value() );
if( firstTime ) {
SG_LOG(SG_AUTOPILOT,SG_DEBUG, "First time initialization of " << get_name() << " to " << _valueInput.get_value() );
_implementation->initialize( _valueInput.get_value() );
}
double input = _valueInput.get_value() - _referenceInput.get_value();
double output = _implementation->compute( dt, input );