【问题标题】:Core Location and Core Motion device heading核心位置和核心运动设备航向
【发布时间】: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


    【解决方案1】:

    您阅读过文档吗?

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

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

    【讨论】:

    • 是的,但这无济于事
    猜你喜欢
    • 2011-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-30
    相关资源
    最近更新 更多