This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Description
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?