使用Core Motion可以获得更准确或更快的加速计读数吗?

使用Core Motion可以获得更准确或更快的加速计读数吗?

问题描述:

我可以使用Core Motion框架的这种方法:

I can use this method of the Core Motion framework:

- (void)startAccelerometerUpdatesToQueue:(NSOperationQueue *)queue withHandler:(CMAccelerometerHandler)handler

作为

- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration

UIKit的UIAccelerationDelegate方法。在那里,我必须指定更新的频率。我希望尽可能快速准确地获得加速度数据。

UIAccelerationDelegate method of UIKit. There, I have to specify the frequency of updates. I want to get acceleration data as fast and accurate as possible.

Core Motion是我的朋友吗?我可以从Core Motion的这种方法中获得什么样的读数?文档没有谈论它。

Is Core Motion my friend here? What's the frequency of readings I can expect from that method of Core Motion? The documentation doesn't talk about it.

编辑!既然这个答案已经过了一年,那当然它只具有历史价值。在这个阶段,我想,每个人都应该只使用CoreMotion,就是这样。希望这个历史性的答案能帮助历史学生!

Edit! Now that this answer is OVER A YEAR OLD, certainly it is only of historic value. At this stage, I guess, everyone should only be using CoreMotion and that's that. Hope this historic answer it helps an history students!

我的印象是: CMAttitude和CMDeviceMotion 为您提供两者加速器和陀螺仪(如果陀螺仪存在)的好处。而CMAccelerometerData仅加速。 (与Core Motion之前的日子完全一样。)

My impression is that: CMAttitude and CMDeviceMotion give you the benefit of both the accel'r and the gyro (if the gyro is present). Whereas CMAccelerometerData is only the accel'r. (Exactly like in the old days before Core Motion.)

我的印象是CoreMotion的两个特定优势是:

My impression is that the two specific advantages of CoreMotion are:

(一)令人难以置信的方便在一个银盘上给你带来四元数和态度

(One) the mindboggling convenience of having Quaternions and attitude given to you on a silver platter

(二)显然,陀螺仪和accel'r都用在带陀螺仪的机器上,没有额外的工作 ......这是一个巨大的优势。

(Two) apparently, both gyro and accel'r are used on machines with a gyro, with no extra work from you ... a huge advantage.

我认为加速度计本身的使用质量没有实际的技术差异。

I believe there is no actual technical difference in the quality of usage of the accelerometer per se.

因此:如果(由于某种原因)你只需要accel'r,你可以做数学(如果与你手头的任务相关),你可以使用老派的accel'r代表。

Thus: if (for some reason) you want only the accel'r, and you can do the math (if relevant to your task at hand), you could use the old-school accel'r delegate.

似乎简而言之,我们都不会再使用老式加速度计代表了!

It seems that in short, none of us will ever again use the old-school accelerometer delegate!