iPhone Accelerometer Values

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2014-05-30T03:23:20Z Indexed on 2014/05/30 3:24 UTC
Read the original article Hit count: 177

Filed under:
|
|
|

My question is about the iPhone accelerometer. Does the accelerometer measure acceleration or movement of the iPhone? What I mean is if I hold the iPhone and go from 0mph to 60mph, I would expect the measure of acceleration to increase in value from 0 to 60, but once I reach 60, I expect the value to return to 0 since I am "no longer accelerating" but am moving at a constant speed. Now if the accelerometer measure motion, I would expect it to register 0 to 60 and continue to provide a change in value as I move forward at 60mph. Sorry, I looked at a few books, programmed some code (values seemed to small to give a recognizable result over short distances or speeds), and a lot of web searches, and I am trying to get an answer to this question.

Thanx!

© Stack Overflow or respective owner

Related posts about ios

Related posts about iphone