Search code examples
iphonecameraaccelerometeranglepitch

Is there a ready-made formula to get Pitch/Roll values from iPhone 3GS's Accelerometer's X/Y/Z?


Just started to realize an augmented reality based project, got GPS location, heading, and the two missing variable to manipulate virtual camera is Pitch/Roll.

I'm wondering if there is a ready-made formula I can merge into the project. Could spare me a lot of time. Thanks in advance.


Solution

  • I've got into the problem since, so a realy detailed post about the solution can be read here:

    Get pitch and roll angles from the iPhone's accelerometer vector at gotoandplay.freeblog.hu