added kalman filter for compass