Answers for "Android Gyroscope inaccuracy problems."
http://answers.unity.com/questions/919250/android-gyroscope-inaccuracy-problems.html
The latest answers for the question "Android Gyroscope inaccuracy problems."Answer by Pendantic
http://answers.unity.com/answers/920460/view.html
I would recommend sticking with gyro.attitude but possibly adding a lerp to smooth out those jumps you have. Also if you dealing with angles you may not want to convert to euler as there can be some weird issues with that. It looks like you want the z rotation of the device to set the Y rotation which is a little tricky but can be done. This is how you could convert it
//this returns the direction use Vector3.right if Vector3.up doesn't work
Vector3 direction = Input.gyro * Vector3.up;
//this just will take away any up or down rotation
direction.y = 0;
Quaternion rot = Quaternion.LookRotation(direction,Vector3.up);
transform.rotation = Quaternion.Lerp(transform.rotation,rot,5f*Time.deltaTime);Tue, 10 Mar 2015 16:20:31 GMTPendantic