Skip to content
This repository was archived by the owner on Oct 25, 2019. It is now read-only.

Incorrect reading of magnetometer #2

Closed
seerichard opened this issue Jun 29, 2016 · 0 comments
Closed

Incorrect reading of magnetometer #2

seerichard opened this issue Jun 29, 2016 · 0 comments

Comments

@seerichard
Copy link

According to the datasheet, the line:

mag_x, mag_y, mag_z = mag

should be:

mag_x, mag_z, mag_y = mag

Unlike the accelerometer which is read x,y,z, the magnetometer is read as x,z,y. I have tested this and it seems to check out. It also aligns with the Arduino code Adafruit has provided for this board.

@tdicola tdicola closed this as completed in 03b344d Jul 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant