scamexdotexe
scamexdotexe

Reputation: 159

Smooth Compass for Android 2.2

I've been creating Compass for Android and I found several codes online but none of them provide example for smooth animation for the compass.

The url provided me the starting point in creating the compass..

http://android-er.blogspot.com/2010/08/simple-compass-sensormanager-and.html

Upvotes: 3

Views: 1663

Answers (1)

Jason
Jason

Reputation: 160

You need to apply a low pass filter to smooth the raw data. A low pass filter only allows through (to "pass") the low frequencies, and gets rid of the high frequencies, which are probably mostly noise (which will cause your compass to be jittery). This answer would probably be suitable for what you want.

Upvotes: 3

Related Questions