I think that there are some issues with the earth Gravity, so I wonder if there are any examples where the accelerometers work by subtracting these.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(It’s too bad you can’t file a bug with planet Earth to fix its Gravity issue!)
There are several examples listed under “Related sample code” in the UIAcceleration Class Reference.
As that doc states, a value of 1.0 represents roughly +1g. So if you point the iPhone straight up in portrait orientation, you should see roughly <0, -1, 0>. As you rotate the phone around, the magnitude of the acceleration vector
sqrt(x*x+y*y+z*z)should stay around 1.