I need to captures values of a device’s position/heading/tilt along with the accelerometer data being captured at about 50Hz.
I understand the accelerometer returns values in motion, but I require also to get the static values of the devices position.
Is there an API available in Corona which would allow me to capture the orientation data similar to the JavaScript browser API: https://developer.mozilla.org/en-US/docs/Web/API/Detecting_device_orientation - So rather than capture the movement of x,y,z - I can capture the tilts.