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 Nov 13, 2021. It is now read-only.
First of all thanks for all the hard work and effort to provide all these drivers.
In in the following setup:
raspberry pi 3
android things
lsm9ds1
The accelerometer values in the device reference that I'm reading are -0.45, -0.02, 9.48 on the x, y, z axes. These look to be barely off.
However the magnetic field is way off. I'm getting 0.26, 0.19, -0.14 in the callback listener for Sensor.TYPE_MAGNETIC_FIELD. Inspecting the readRawMagnetometerData method shows in the result array 185, 1329, -994.
To make things even more confusing for me the Android documentation specifies that the values returned for the magnetic field are in uT https://developer.android.com/reference/android/hardware/SensorEvent.html#values
Did I end up with a bad LSM9D1 or I'm doing some wrong assumption on the expected values?
The text was updated successfully, but these errors were encountered:
stefanvladvoinea
changed the title
Bad lsm9d1... are these values is this normal?
Bad lsm9ds1... are these values is this normal?
Jun 5, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First of all thanks for all the hard work and effort to provide all these drivers.
In in the following setup:
The accelerometer values in the device reference that I'm reading are -0.45, -0.02, 9.48 on the x, y, z axes. These look to be barely off.
However the magnetic field is way off. I'm getting 0.26, 0.19, -0.14 in the callback listener for Sensor.TYPE_MAGNETIC_FIELD. Inspecting the readRawMagnetometerData method shows in the result array 185, 1329, -994.
To make things even more confusing for me the Android documentation specifies that the values returned for the magnetic field are in uT https://developer.android.com/reference/android/hardware/SensorEvent.html#values
Did I end up with a bad LSM9D1 or I'm doing some wrong assumption on the expected values?
The text was updated successfully, but these errors were encountered: