W3C home > Mailing lists > Public > public-device-apis-log@w3.org > May 2017

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

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 May 2017 12:54:19 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-300780012-1494507257-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:53 UTC