On Tuesday, July 15, 2014 7:53:52 PM UTC-7, Adam Ratana wrote:
>
> 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). 
>
> And I imagine you do something special for wraparound cases? For example, 
359 and 1 would average out to 180 instead of 0. 

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 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.

Reply via email to