Sony Tab Xperia Z2 and gyro.attitude [4.3.4 Android Pro]

Hello,

perhaps my understanding of the gyro.attitude is wrong, but I assumed that this is the orientation in space of the tablet. So, basically, I can fetch the attitude and apply it to the camera.

I’m currently working with a Sony Tab Xperia Z2 and the attitude values change when I rotate the tablet, but seem to slerp back to y = 0 when I stop moving. I directly output these gyro.attitude values in the GUI and clearly can see that behavior.

Has anyone seen this and is there a solution to this?

Tested the code with another Android device (Acer A700), and it works as expected…

Problem solved… the tablet had a faulty gyroscope… (hardware problem)