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

Azimuth #484

Open
valon51 opened this issue Oct 22, 2022 · 10 comments
Open

Azimuth #484

valon51 opened this issue Oct 22, 2022 · 10 comments

Comments

@valon51
Copy link

valon51 commented Oct 22, 2022

Hi Kris, I would like advice on the correct formula for calculating Azimuth.. I have Euler Angels output from the dmp and when I tilt to the sides (- roll) the Azimuth fluctuates quite a bit, on the other hand it is not the case.. Otherwise, I have a hmc588l magnetometer.. Magnetometer I have them calibrated well.. Thank you in advance..

@kriswiner
Copy link
Owner

kriswiner commented Oct 22, 2022 via email

@valon51
Copy link
Author

valon51 commented Oct 22, 2022

no, I use mpu6050 together with hmc588l.. Pith and Roll are completely accurate and the Heading in the plane, and unfortunately I can't find the right formula anywhere that will cover me in all directions inclined heading. If the Roll goes into the minus, then the Heading fluctuates even by 20 degrees.. That's my problem, I'd rather help with the formula, because I'm 100% sure that the problem is only that.

@kriswiner
Copy link
Owner

kriswiner commented Oct 22, 2022 via email

@valon51
Copy link
Author

valon51 commented Oct 22, 2022

As I said, I'm using data from dmp and the values ​​I measured really fit... I just think that I don't have the correct formula for calculating the virtual plane for the compass

@valon51
Copy link
Author

valon51 commented Oct 22, 2022

Screenshot_20221022-111754_Chrome

i still have a question i give this formula roll from 0 to 90 degree please..

@kriswiner
Copy link
Owner

kriswiner commented Oct 22, 2022 via email

@valon51
Copy link
Author

valon51 commented Oct 22, 2022

I get data from dmp in the form of a matrix..

@valon51
Copy link
Author

valon51 commented Oct 22, 2022

Uploading received_464663602154494.mp4…

@kriswiner
Copy link
Owner

kriswiner commented Oct 22, 2022 via email

@valon51
Copy link
Author

valon51 commented Oct 23, 2022

20221023_154543
The problem was in the compass calibration, it was too slow and long, I used your calibration for the AK... It works with the HMC588L too, I just realized that it should take 15 seconds.
Well, since Matrix DMP is calculating me, I don't even have a way to see the values ​​or where to get them from.. I already have the output values ​​q1, q2, q3, q4.. At first I used Acc values ​​only without DMP, it had quite a lot of noise.. So used DMP here and the noise stopped, but I could see how I had problems with the compass itself. Here I give a photo of what my device looks like. Thanks..

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

No branches or pull requests

2 participants