开发者

What are the iphone's accelerometer values when it is thrown in the air (airborne)

I want to do something with an app that if you throw the iphone into the air, or you are airborne with it, then some pattern changes.

I thought it was 0, but lately, I've been getting some doubts.

Or, maybe, if there isn't a fixed accelerometer value w开发者_开发知识库hen the iphone is airborne, what is the accelerometer values when the home button is on the bottom part of the iphone (like when you normally would hold it)?


Write a Logger App. Run it. Throw your phone into the air. Read logs when you catch it.


This is the link to the code that will show you Accelerometer values.

Just implement in your iPhone/iPod and throw the device in the air and you will get the X, Y and Z value.

there on you can perform the task you need,.


EDIT: My guess: The raw accelerometer values won't be 0 because you always have gravity effects in combination with rotation of the device in the air. You will rarely get a motion without spin and thus the rotation might influence even userAceleration values i.e. the acceleration delivered by core motion fusion algorithm.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜