【发布时间】:2011-10-23 10:27:03
【问题描述】:
我注意到 Coree Motion 存在一个问题。当我使用
[_mMotionManager startDeviceMotionUpdatesUsingReferenceFrame: CMAttitudeReferenceFrameXTrueNorthZVertical
toQueue: [[[NSOperationQueue alloc] init] autorelease]
withHandler:
^(CMDeviceMotion* motion, NSError* error) {
//my code here
}];
为了获得设备运动,它给了我错误的设备标题。我的意思是,如果我开始处理朝北的运动更新手持设备,则航向是可以的。但是,如果我开始时不向北,则偏差非常大。
有什么方法可以得到正确的航向值吗?
【问题讨论】:
标签: iphone core-location gyroscope core-motion