- Acceleration is tracked (X,Y,Z) in m/s^2 relative to the phone.
- Orientation is tracked in Euler angles relative to "earth".
Can I use orientation to calculate acceleration relative to "earth"?
If yes, could you explain how to do it?
I've created a plunkr: http://plnkr.co/edit/JOeqcFqagiI5z4YKNU65?p=preview (you can run it on your phone: http://run.plnkr.co/MOVkJip5LSMklY4O/)
Preferred answer is in Javascript, but I can port.