iphone Programming Glossary: drifting
Drifting yaw angle after moving fast http://stackoverflow.com/questions/13613239/drifting-yaw-angle-after-moving-fast measurements it seems clear that only yaw is affected. Pitch and roll show deviations within tolerance 1° while yaw is drifting regardless of the starting position. CMDeviceMotion.gravity appears to be clean too. EDIT 2 I could reproduce the problem.. reproduce the problem with the MotionGraphs sample attached to recent XCode versions. The yaw graph is reproducibly drifting away from origin. iphone ios6 gyroscope core motion share improve this question Not the definitive solution but at..
Getting displacement from accelerometer data with Core Motion http://stackoverflow.com/questions/4449565/getting-displacement-from-accelerometer-data-with-core-motion and within a short period of time. But than after a few seconds you will run into trouble because your object is drifting away. Now you will enter the difficult part of the solution which I failed to handle eventually within the given time scope..
iPhone - understanding iPhone rotation http://stackoverflow.com/questions/5170010/iphone-understanding-iphone-rotation displacment of the cube when you put the phone back in starting position. EDIT Forgot some part To get rid of the drifting effect you only need a way to express your last object's real position q1 as a quaternion i.e. coordinates in your app as..
|