Timeline for Why am I getting wrong compass heading using magnetometer readings?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 13, 2023 at 3:17 | history | edited | Sayantan Das | CC BY-SA 4.0 |
Added readings after calculating hard iron offset.
|
Sep 13, 2023 at 3:15 | vote | accept | Sayantan Das | ||
Sep 10, 2023 at 19:23 | history | became hot network question | |||
Sep 10, 2023 at 15:27 | comment | added | Edgar Bonet | 1. I mean the norm of the vector. You can plot it: it should not depend on the orientation of the sensor. 2. Re "just calling the methods": can you post the complete code? | |
Sep 10, 2023 at 14:35 | comment | added | Sayantan Das | @EdgarBonet, hi can you elaborate a bit on your statement " the modulus of the magnetic field changes as you turn the device", sorry if that's a newb question. I used this library for mpu9250 github.com/bolderflight/invensense-imu and just calling the methods for getting the data. | |
Sep 10, 2023 at 14:10 | answer | added | st2000 | timeline score: 3 | |
Sep 10, 2023 at 12:54 | comment | added | Edgar Bonet |
The displayed heading seems consistent with the measured mx and my . These values, however, seem wrong: The modulus of the magnetic field changes as you turn the device. It should not. Either you are doing something wrong while getting the readings, or there is something magnetic next to (or on) your device that affects the local field.
|
|
S Sep 10, 2023 at 11:22 | review | First questions | |||
Sep 10, 2023 at 13:44 | |||||
S Sep 10, 2023 at 11:22 | history | asked | Sayantan Das | CC BY-SA 4.0 |