Nathan, I would suggest just using a simple low pass filter (in this case an EWMA - http://en.m.wikipedia.org/wiki/Exponential_smoothing) and tuning the weighting to taste. The more samples usually the smoother you'll get. I use the GAME rate, but I believe you can specify a rate past a certain api level (would need to look at code, it's been a while).
Also, if you use the rotation vector sensor it seems to have smoothing built in and generally I really like that over the other options. Though not all devices support it. On Jul 15, 2014 7:12 PM, "Nathan Mellor" <[email protected]> wrote: > For those of you who have smoothed the jitter. > > > On Wed, Jul 9, 2014 at 11:55 PM, gjs <[email protected]> wrote: > >> >> One way to smooth the jitter is to compute an average value from a small >> array of recently stored recent values. >> > > For those who have filtered to get a smooth value, what is a good buffer > size and Sensor delay? > > I notice that SENSOR_DELAY_NORMAL gives me lower frequency jitter than a > higher frequency, but I’m not counting on the fact that it does any > smoothing. > > Nathan > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-developers/yJHng6shP_w/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

