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

Is the orientation output using magnetic north or true north? #5

Open
teknoman117 opened this issue Sep 20, 2024 · 3 comments
Open

Comments

@teknoman117
Copy link

I will fully admit, I don't have a great way of testing the accuracy of the resulting heading at the moment. Still working on integrating the USFSMAX (MMC) into my robot where I can check against an RTK GPS.

I updated the magnetic field strength and declination constants for my location in the config. After calibrating the 3D DHI corrector (a few different times), I noticed that the resulting heading seems to mostly correspond with the magnetic heading reported by my phone (I understand that phone compasses are also in general not great).

If I change the declination in the host tool after calibration and restart the USFSMAX, I notice that the reported heading doesn't seem to be affected.

Does the resulting quaternion use magnetic north or "true" north (as defined by declination)? Or does this value only matter during calibration?

@kriswiner
Copy link

kriswiner commented Sep 20, 2024 via email

@gregtomasch
Copy link
Owner

gregtomasch commented Sep 23, 2024 via email

@teknoman117
Copy link
Author

teknoman117 commented Oct 1, 2024

Also apologies for my late response - I replied with the wrong sending email so GitHub silently bounced my response 😆

I was changing the declination in the host tool code, recompiling, flashing the new image to my Arduino, and power cycling the whole setup (leaving power disconnected for like 10 seconds).

I did not re-run calibration after this ... my arms were getting tired tumbling my robot around.

Using the ESP32 example as a base, I modified it to run on the Arduino Uno R3 (the pokey 8-bit one, mostly just wrapped strings in F() so that they are in flash and not RAM): https://github.com/teknoman117/USFSMAX_MMC_Module/tree/uno/MMC_USFS_MAX_Module_Uno_Simple_Host_Utility_v0.0

I suppose I should upgrade my uC to something more modern but there are other more pressing issues!

(if it matters it reports firmware 0x4)

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

3 participants