Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yaw value is oscillating and by full rotation don't show 360 degree #200

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

ahmadsajjad656
Copy link

@ahmadsajjad656 ahmadsajjad656 commented Nov 7, 2017

Hi every one! i am using this library for MPU9250. but my yaw value is oscillating about 3 to 4 degree while the sensor is at rest. and by one complete revolution of the sensor i am getting less than 360 degree. what is the problem. please help me. thanks in advance.

@kriswiner
Copy link
Owner

kriswiner commented Nov 7, 2017 via email

@ahmadsajjad656
Copy link
Author

thanks kriswiner for quick response, Actually I am using Sparkfun library having link https://github.com/sparkfun/SparkFun_MPU-9250_Breakout_Arduino_Library because your library's gives me the error "mbed.h No such file" while using example "MPU9250BasicAHRS" and other examples are not for MCU (Arduin Nano, Mega) . Sparkfun library is almost similar to your's. In this library they are using Mahony/medwick filter. the value of magnetometer is too much oscillating, I think this the reason behind yaw value oscillation. By the way I am new to IMU, so kindly help me either with your's library or with sparkfun to sort out this problem. thanks in advance

- Changed magnetometer WAI register to 0x00 as per datasheet and pull request
- Removed preprocessor logic to set up the defined MPU9250_ADDRESS, instead allowing the user to define that value as one of the two options MPU9250_ADDRESS_AD0 or MPU9250_ADDRESS_AD1
Hi everyone - apologies for the slow response. You are indeed correct about the register number. I have also made some additional improvements to the library. Thank you very much for bringing this problem to our attention!
Correct use of FS parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants