2
我一直在为Android创建Compass,我在网上发现了几个代码,但没有一个提供了指南针平滑动画的示例。平滑指南针Android 2.2
的网址为我提供的起点创造指南针..
http://android-er.blogspot.com/2010/08/simple-compass-sensormanager-and.html
我一直在为Android创建Compass,我在网上发现了几个代码,但没有一个提供了指南针平滑动画的示例。平滑指南针Android 2.2
的网址为我提供的起点创造指南针..
http://android-er.blogspot.com/2010/08/simple-compass-sensormanager-and.html
您需要申请一个低通滤波器来平滑原始数据。低通滤波器只允许通过(“通过”)低频,并且可以消除高频,这可能主要是噪音(这会导致指南针不安)。 This answer可能适合你想要的东西。