You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
I am using the HMC5883L class to read from a HMC5883L device. To achieve that task, I am calling readGyro() followed by access to the raw values from X, Y and Z. What I am finding is that the X value is correct but Y and Z are incorrect. It almost appears that the data being read from I2C has had two bytes skipped. Here is a log from my HMC5883L device from an app written in C and using WiringPi -
I am using the HMC5883L class to read from a HMC5883L device. To achieve that task, I am calling readGyro() followed by access to the raw values from X, Y and Z. What I am finding is that the X value is correct but Y and Z are incorrect. It almost appears that the data being read from I2C has had two bytes skipped. Here is a log from my HMC5883L device from an app written in C and using WiringPi -
x=-133, y=192, z=-477 - angle=304.710668
x=-130, y=188, z=-476 - angle=304.663446
x=-135, y=189, z=-475 - angle=305.537678
x=-133, y=190, z=-478 - angle=304.992020
x=-136, y=187, z=-474 - angle=306.027374
x=-132, y=187, z=-479 - angle=305.217593
Here is the log from my Pi4J application:
X=-132 ,Y=-480, Z=8378
X=-135 ,Y=-475, Z=9662
X=-131 ,Y=-477, Z=9149
X=-131 ,Y=-477, Z=9146
X=-132 ,Y=-476, Z=9403
See how the X values match ... but the Java Y seems to be Z and the Z value from Java is somewhere else.
Attached is my Java app for recreation ...
sample.txt
The text was updated successfully, but these errors were encountered: