-
Notifications
You must be signed in to change notification settings - Fork 151
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
Quaternion DMP calulation not working on Mega 2560 #22
Comments
I'm actually running into the same exact issue (same mcu, too). Still debugging, but my hunch is that it's the function that converts the quaternion values from integer math to floats. The raw values seem legit, but go to INF after the call to qToFloat() |
Yeah, confirmed. I'll try to get a PR open when I have a minute, but edit |
Good spot! It does return some values now... but the values are weird: Values should stay within [-1,1] and it's not just off by +2... Do you observe the same in your setup? |
I don't see that on mine.. not sure how it's different from yours |
Hello everyone. I am also facing the same issue. DId anyone get the solution |
Hey kolosy |
I'll close this issue as @kolosy found a solution for the NAN. |
@raomin I'd recommend keeping it open until it's actually fixed in the codebase... |
good point. |
I ran MPU9250_DMP_Quaternion.ino without any problem on an ESP8266.
Now I want to use it on a Arduino Mega 2560 and it returns the following:
MPU9250_DMP_Gyro_Cal.ino works correctly on the same Arduino Mega 2560.
I tried DMP_FEATURE_6X_LP_QUAT and DMP_FEATURE_LP_QUAT both gives the same.
Also, dmpBegin returns INV_SUCCESS.
I also tried with Wire.setClock(400000), no success...
Any idea what could cause this issue?
The text was updated successfully, but these errors were encountered: