use moving average to smooth compass