简体   繁体   English

如何获得iPhone设备活动

[英]How to get iPhone Device Activity

I want to get whether iPhone device is stationary, walking, In car etc. 我想知道iPhone设备是否固定,行走,在车内等。

Can I get it through Core Motion Framework? 我可以通过Core Motion框架获得它吗?

CMAcceleration only gives x, y and z values. CMAcceleration仅给出x,y和z值。

How to use this value to calcluate iPhone Device Activity 如何使用此值来计算iPhone设备活动

An accelerometer measures acceleration (change in velocity). 加速度计测量加速度 (速度变化)。

Those values are acceleration in the X, Y, and Z directions. 这些值是在X,Y和Z方向上的加速度。 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? 如何仅使用加速度计找到速度?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM