#NEWLINE# def __init__( self , getSpindleAngleFunction ) : #NEWLINE# #INDENT# self . lastSpindleAngle = 0 #NEWLINE# self . lastStateTime = 0 #NEWLINE# self . spindleSpinRateAverager = MovingAverageComputer ( ) #NEWLINE# self . spindleSpinRateAverager . timeWindow = 0.5 #NEWLINE# self . _getSpindleAngleFunction = self