开发者

Using iphone accelerometer to count the number of spins when tossed in the air

I would like to have a program that build a program that uses the开发者_如何学JAVA accelerometer to count the number of time an iphone spins (either on a table top or when tossed in the air ) any suggestions?


The iPhone 4 may be able to do this, as it has gyroscopes that are not affected by acceleration, but when you spin a device with an accelerometer the accelerometer will just report that it seems like there's a large acceleration pointing on a vector from the center of rotation straight out.


You throw your iPhone in the air?

Just a heads up if you're planning on putting this on the App Store - Apple rejected/removed an app that measured the speed an iPhone fell at while being dropped. The reason they gave was because it would encourage users to do things with their iPhone that would potentially damage it. Your app would likely befall the same fate.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜