We will be closed on November 25, 2021 and November 26, 2021 in observance of the Thanksgiving holiday. We will resume normal operations on November 29, 2021. Wishing you a safe and happy holiday from all your friends at SparkFun!


Receive a free SparkFun USB Thumb Drive with every order this weekend. Details.

Member #357531

Member Since: September 2, 2012

Country: United States

  • Hi Jeff. I am wondering if you have figured out the reason for the pitch/roll values not going above +/-90 degrees. I ran into the same issue when I mounted the IMU vertically. Any help would be appreciated.

    EDIT (4/2/13): I think I found the issue in the code. It's in the MPU6050_6Axis_MotionApps20.h file. Where the yaw/pitch/roll is calculated (lines 644-653) it is impossible to get angles above +/-90 degrees because of trig function used (atan). Atan only provides values between -90 and +90 degrees hence why we can't get anything above that. Atan2 provides values between -180 and +180 degrees. I am working on changing it. I will post any updates.

No public wish lists :(