changed median filter for angVelFactor