[英]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? 如何获得设备的横向和向下/向上运动的可用值?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.