Hi,
I am currently working on a project involving the use of gyro and acceleration, this action is still a work in progress, so play with this and see if it does what you want.
check the attitude properties, they are the raw angles of the device, that's your indication of the orientation of the device using the internal compass of the device.
Bye,
Jean