我注意到 Coree Motion 存在一个问题。当我使用
[_mMotionManager startDeviceMotionUpdatesUsingReferenceFrame: CMAttitudeReferenceFrameXTrueNorthZVertical
toQueue: [[[NSOperationQueue alloc] init] autorelease]
withHandler:
^(CMDeviceMotion* motion, NSError* error) {
//my code here
}];
为了获得设备运动,它给了我错误的设备标题。我的意思是,如果我开始处理运动更新,将设备保持在北方,航向就可以了。但如果我不向北开始,偏差就会很大。
有什么方法可以得到正确的航向值吗?
最佳答案
你读过文档了吗?
它表示这些值可能不正确,用户必须移动设备才能校准磁力计。
所以我猜你不能依赖那个引用系。
https://stackoverflow.com/questions/7865583/