Orientation - Pitch and Roll - Alpha Gamma Beta

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.

In my experience the accelerometer event is plenty noisy and very sensitive.  You should get plenty of data and be able to determine the device position no problem.

The event has instant, gravity (orientation), as well as other values.

You’ll be able to tell how the device is oriented in three-dimensions  ( x, y, z ) no prob:

https://docs.coronalabs.com/daily/api/event/accelerometer/index.html

That said, you can’t query the state.  It is an event only.

In my experience the accelerometer event is plenty noisy and very sensitive.  You should get plenty of data and be able to determine the device position no problem.

The event has instant, gravity (orientation), as well as other values.

You’ll be able to tell how the device is oriented in three-dimensions  ( x, y, z ) no prob:

https://docs.coronalabs.com/daily/api/event/accelerometer/index.html

That said, you can’t query the state.  It is an event only.