问题描述
虽然我将陀螺仪更新速率设置为100Hz,但我正在使用iPhone 4上的陀螺仪
I am playing with the gyro on iPhone 4, although I am setting the gyro update rate to 100Hz
motionManager.gyroUpdateInterval = 0.01;
尽管我似乎只能以50Hz进行更新.
Despite that I seem to be getting the updates only with 50Hz.
有人有经验吗,可以确认这个数字,或者可以告诉我官方更新的频率是什么?
Does anyone have experience with that and can either confirm that number or maybe tell me what the official update frequency is?
欢呼埃斯登
推荐答案
自iOS 4.2起,您就可以100 Hz的频率运行陀螺仪-我非常确定,因为我从采样的输入数据中对其进行了检查.
Since iOS 4.2 you can run the gyroscope with 100 Hz - I am pretty sure as I checked it from my sampled input data.
前段时间,我提交了一个与以前的iOS版本(4.0x或4.1x?)相关的错误,阻止了时间戳的更新.但是现在,此问题已解决,数据可以正确传输.
Some time ago I filed a bug related to previous iOS version (4.0x or 4.1x?) preventing the timestamp from being updated. But now this was fixed and data is delivered correctly.
我错了(测量时的小错误). Core Motion的最大频率为76Hz,我不知道为什么.虽然这对我来说足够了,但有点烦人.
I was wrong (little bug when measuring). 76Hz is maximum on Core Motion and I don't kno why. While this seems to be enough for me, it is a little bit annoying.
EDIT(2):使用原始陀螺仪数据,我得到58 Hz,有时在加速度计和陀螺仪数据之间存在明显的延迟(> 1/f):-(
EDIT(2): Using raw gyro data I get 58 Hz and sometimes a notable delay (> 1/f) between accelerometer and gyroscope data :-(
这篇关于官方iPhone 4最高陀螺仪数据更新频率是多少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!