Reduce rotation oscillation by using moving average