Reputation: 4671
I want to get whether iPhone device is stationary, walking, In car etc.
Can I get it through Core Motion Framework?
CMAcceleration only gives x, y and z values.
How to use this value to calcluate iPhone Device Activity
Upvotes: 0
Views: 362
Reputation: 137398
An accelerometer measures acceleration (change in velocity).
Those values are acceleration in the X, Y, and Z directions. If the phone is stationary (or traveling at a constant velocity) then those values will be ~zero.
How can I find the velocity using accelerometers only?
Upvotes: 1