Gyroscope and accelerometer sensing and filter