#NEWLINE# def update( self , elapsed = 0.0 ) : #NEWLINE# #INDENT# "update the statistic delta's according to the elapsed period of time" #NEWLINE# if ( self . _lastV and elapsed ) : #NEWLINE# #INDENT# newDeltaV = ( ( self . _v - self . _lastV ) / elapsed ) #NEWLINE# if self . _deltaV : #NEWLINE# #INDENT# self . _deltaV = gamma_filter ( self . _deltaV , newDeltaV , self . _g ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _deltaV = newDeltaV #NEWLINE# #UNINDENT# #UNINDENT# self . _lastV = self . _v