2

我注意到 Coree Motion 存在一个问题。当我使用

   [_mMotionManager startDeviceMotionUpdatesUsingReferenceFrame: CMAttitudeReferenceFrameXTrueNorthZVertical
                       toQueue: [[[NSOperationQueue alloc] init] autorelease]
                   withHandler:
         ^(CMDeviceMotion* motion, NSError* error) {
//my code here
    }];

要获得设备运动,它会给我错误的设备标题。我的意思是,如果我开始处理朝北的运动更新手持设备,则航向是可以的。但是,如果我不向北开始,则偏差非常大。

有没有办法获得正确的航向值?

4

1 回答 1

0

你读过文档吗?

它说这些值可能不正确,用户必须移动设备来校准磁力计。

所以我猜你不能依赖那个参考框架。

于 2013-02-20T17:06:50.130 回答