Added moving average filter on deviceorientation data