Coree Motion に 1 つの問題があることに気付きました。私が使用しているとき
[_mMotionManager startDeviceMotionUpdatesUsingReferenceFrame: CMAttitudeReferenceFrameXTrueNorthZVertical
toQueue: [[[NSOperationQueue alloc] init] autorelease]
withHandler:
^(CMDeviceMotion* motion, NSError* error) {
//my code here
}];
デバイスの動きを取得すると、間違ったデバイスの見出しが表示されます。つまり、北に向かってデバイスを保持しているモーション更新の処理を開始すると、見出しは問題ありません。しかし、北に向かわずに始めると、偏りは非常に大きくなります。
見出しの正しい値を取得する方法はありますか?