Gyro.Attitude and Device Orientation issues?

Hi, I am making a gyro controller, it is working fine except that when the device changes orientation all the axis get messed up like so:78029-unityanswersgraphic.png

The rotation I get back from Input.gyro.attitude switches the x-axis and the y-axis around (or make them negative if you hold device upside down), even though I locked the Screen Orientation in player settings. As an extra nuisance, the device orientation on startup will also influence the way the axis are orientated. Is there an easy way to keep the axis fixed?

I’m experiencing the same issue. @Mubanga, did you find a solution?

Thank you!

Don’t use that variable to set the orientation of anything in your game then, instead use it to know if you need to correct and in what way you need to correct the output of the gyro to match the orientation you want.

Guarantee you someone has done it and put it out there. Sounds like a good exercise for a roll-your-own though.