Re: [magnetometer] Add RawMagnetometer, for uncalibrated readings.

https://developer.android.com/reference/android/hardware/SensorEvent.html

Sensor.TYPE_ACCELEROMETER_UNCALIBRATED:
All values are in SI units (m/s^2) Similar to TYPE_ACCELEROMETER, Factory calibration and temperature compensation will still be applied to the "uncalibrated" measurement.
The values array is shown below:

values[0] = x_uncalib without bias compensation
values[1] = y_uncalib without bias compensation
values[2] = z_uncalib without bias compensation
values[3] = estimated x_bias
values[4] = estimated y_bias
values[5] = estimated z_bias
x_uncalib, y_uncalib, z_uncalib are the measured acceleration in X, Y, Z axes similar to the TYPE_ACCELEROMETER, without any bias correction (factory bias compensation and any temperature compensation is allowed). x_bias, y_bias, z_bias are the estimated biases.

See also:

GeomagneticField

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/magnetometer/pull/21#issuecomment-300780012 using your GitHub account

Received on Thursday, 11 May 2017 12:54:26 UTC