I trace the code and I found out that "atan" return "ovf" for values above than 0.43
For X axis MPU6050_6Axis_MotionApps20.h use this code to calculate roll:
data[2] = atan(gravity -> y / sqrt(gravity -> x*gravity -> x + gravity -> z*gravity -> z));
everything work when I remove "atan" and use this code:
data[2] =gravity -> y / sqrt(gravity -> x*gravity -> x + gravity -> z*gravity -> z);
Then I calculate "atan" with a calculator and there is no problem.
So "atan" and maybe "atan2" cause this problem.
Any solution?