Smooth and Fast Low-Pass Filter

Discussion in 'iPhone/iPad Programming' started by Fuzzball27, Feb 21, 2012.

  1. macrumors newbie

    Joined:
    Aug 8, 2011
    #1
    I'm using a low-pass filter to smooth my accelerometer data/object movement on screen. It looks like this:
    Code:
    accelX = (accelX * someFactor) + (accelerometer.x * someOtherFactor);
    
    I'm looking for a good combination of factors that will provide smooth and fast movement for the object(s) on screen. Any suggestions?
    (the accelerometer refresh rate is 1/10)
     
  2. thread starter macrumors newbie

    Joined:
    Aug 8, 2011
    #2
    Never mind.
     

Share This Page