This page (revision-1) was last changed on 20-Apr-2024 11:53 by Hiroaki Tateshita

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
20-Apr-2024 11:53 731 bytes Hiroaki Tateshita

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 added 17 lines
[{PageViewPlugin}]
[Android Programming Tips]
!!!Abstract
方位センサ、重力センサでノイズをひろってARの時にブレブレになる。何とか解決したいが。
!!!Topic
*Delay?
|sensorManager.registerListener()で、ディレイを指定するところがある。[1]によるとSENSOR_DERAY_GAMEが一番よさげだが、[2]によると、遅延時間はNomalが0.2秒で一番大きい。見た目もNormalの方が揺れがおとなしい気がする。
*ローパスフィルタを考えるか。
|[3]の生データを処理するという部分にローパスフィルタの例が載っています。これは効果てきめん。動きがすごく滑らかになります。αの値を0.9くらい。
!!!Reference
#[#1][yasuoki|http://diylabo.sakura.ne.jp/], 2014年6月13日, 加速度センサーの使い方 - 測定値の平滑化, [http://diylabo.sakura.ne.jp/tips/2014/06/accelero2.html]
#[#2]2021年7月2日アクセス、センサーの概要, [https://developer.android.com/guide/topics/sensors/sensors_overview?hl=ja]
#[#3]2021年7月3日アクセス、モーションセンサー, [https://developer.android.com/guide/topics/sensors/sensors_motion?hl=ja]