Accelerometer Low Pass Filtering
accelX = (acceleration.x * kFilteringFactor) + (accelX * (1.0 – kFilteringFactor)); Whats happening in this code you are multiplying the acceleration at the moment by the Filtering factor 0.1 and then adding it to the filtered acceleration of the last time an update was called by 0.9. This is pretty much getting the new value … Read more