Thursday, December 22, 2011

[android-developers] Re: The accelerometer reading looks odd

Could anyone help on this ? Thanks

在 2011-12-22 下午5:02,"Yang Bo" <yangbo.app@gmail.com>写道:

Hi,
    I am trying to read the device accelerometer when the phone is placed on a desk with screen up,I expect 0 on the x-axis and y-axis,-9.8 at z-axis.  But I get
x:11,y:-37,z:-24(decimal part ignore)....  What is this?  I read the doc of accelerometer,  does not make it clear.  Could you please help :
1. Why x and y are non-zero?
2. Why the value is so large?

Thanks !

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate