校准代码到iphone acellerometer和陀螺仪数据 [英] Calibrating code to iphone acellerometer and gyro data

查看:165
本文介绍了校准代码到iphone acellerometer和陀螺仪数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个iPhone应用程序的概念,需要精确校准iPhone的加速度计和陀螺仪数据。我将不得不模拟我最终想要执行代码的特定运动。 (想摇一摇,或撤消)。

I'm concepting an iPhone app that will require precise calibration to the iPhones accelerometer and gyro data. I will have to simulate specific movements that I would eventually like to execute code. (Think shake-to-shuffle, or undo).

有没有一个很好的方法做到这一点?或者你可以想出来的东西?

Is there a good way of doing this already? or something you can come up with? Perhaps some way to generate a time/value graph of the movement data as it is being captured?

推荐答案

正在捕获的运动数据 - 正在捕获的运动数据可能以某种方式生成运动数据的时间/请参阅加速度计图示例应用程序,该应用程序实时显示数据: http://developer.apple.com/library/ios/#samplecode/AccelerometerGraph/Introduction/Intro.html

Movement data being captured - see the accelerometer graph sample app, which shows the data in real time: http://developer.apple.com/library/ios/#samplecode/AccelerometerGraph/Introduction/Intro.html

数据非常嘈杂 - 例如,陀螺仪和加速度计不够好,现在能够跟踪电话在本地3d空间中的位置。然而,旋转是非常坚固的,并且可以相当精确地跟踪装置的定向。你可能有最好的结果,使手势摆脱旋转数据,而不是沿着轴的移动。或者,沿着一个轴的基本方向如同摇动将像Jacob Jennings所说的那样工作。

The data is pretty noisy - the gyro and accelerometer aren't good enough right now to be able to track where the phone is in local 3d space, for example. The rotation, however, is very solid, and the orientation of the device can be pretty accurately tracked. You may have the best results making gestures out of rotation data instead of movement along an axis. Or, basic direction like shakes along an axis will work as Jacob Jennings said.

这篇关于校准代码到iphone acellerometer和陀螺仪数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆