On Monday, April 23, 2012 10:35:31 AM UTC-7, Lukáš Sztefek wrote:
>
> I'm creating 3D Compass application.
>
> I'm using 
> getOrientation<http://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation%28float%5B%5D,%20float%5B%5D%29>
>  method 
> to get orientation (almost same implementation like 
> here<http://stackoverflow.com/questions/2963705/using-getrotationmatrix-and-getorientation-in-android-2-1>).
>  
> If I place phone on the table it works well, but when top of the phone 
> points to the sky, getOrientation starts giving really bad results. It 
> gives values for Z axis between 0 to 180 degrees in a few real degrees. Is 
> there any way how to suppress this behavior? I created a little 
> video<http://youtu.be/U1o5TsCKOd0> what 
> describes problem (sorry for bad quality). You can download app 
> here<http://lukassztefek.cz/android/3DCompass.apk>. 
> No permissions needed.
>
> Thanks in advance.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to