tockn / MPU6050_tockn

Arduino library for easy communication with MPU6050
218 stars 84 forks source link

Roll value of GY-521 #40

Open ehsan3amp opened 4 years ago

ehsan3amp commented 4 years ago

Hi I edit the library for my project since I have 2 mpu6050 but the roll value after 180 decrease quickly till get to -180. I'm using this for calculation of link angle and this can cause some problems for me. I've found some other libraries that after 180, it just shows -180 and you can easily map it between 0 to 360. I couldn't fix that in your library

liesenbergk commented 4 years ago

I am facing problems in my application because of this "unsharpened" transition between +/-180 degrees on roll. Is there any chance or way to fix it?

Thanks