简体   繁体   English

在iPhone上跟踪横向移动

[英]Tracking sideways movement on the iPhone

I am working with the accelerometer and gyroscope of the iPhone, but I am a bit confused. 我正在使用iPhone的加速度计和陀螺仪,但我有些困惑。

I want to get values of straight movement on the three axis, not the rotation on them. 我想获得三个轴上直线运动的值,而不是它们上的旋转值。 I seem to only get values of the latter... 我似乎只能得到后者的价值...

How do I get usable values of the sideways and down/upwards motion of the device? 如何获得设备的横向和向下/向上运动的可用值?

In short, you cannot get such usable values. 简而言之,您无法获得这样的可用值。 I answered basicly the same question (Distance moved by Accelerometer) here . 在这里基本上回答了相同的问题(加速度计移动的距离)。

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

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