KalmanFilter icon indicating copy to clipboard operation
KalmanFilter copied to clipboard

roll angle computed in inverse direction by this MPU6050 lib?

Open dsyleixa opened this issue 7 years ago • 2 comments

hi, As I just observed, your roll angle is computed in the inverse direction by this MPU6050 lib. I compared your values with the values I get from my CMPS11 IMU, and also compared it by this chart: https://i.stack.imgur.com/ge9sN.png according to both references, rolling counter-clockwise (to the left) it's negative, whilst rolling clockwise (to the right) it's positive there.

By your MPU6050 example it's other way round as far as I see.

dsyleixa avatar Sep 21 '18 09:09 dsyleixa

@dsyleixa you're welcome to open up a PR with the fix.

Lauszus avatar Oct 02 '18 21:10 Lauszus

I have no idea how a PR works, I just use github to download files and libs. But eventually it's not already verified about this issue or failure, I just came upon that by comparing 3 different code references: so who is right or wrong?

dsyleixa avatar Oct 03 '18 08:10 dsyleixa