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

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

From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
Date: Mon, 03 Apr 2017 13:26:12 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-291141983-1491225970-sysbot+gh@w3.org>

>It would also be nice to understand and document the way external hard iron distorsion is normally compensated for (I imagine there's some sort of filtering going on?).

To get from uncalibrated to calibrated values, the implementation must apply a transformation matrix to uncalibrated values at point (x, y, z). This process happens in hardware usually.

To build the transformation matrix, the implementation asks you to manually do the [calibration][1].

@alexshalamov @kenchris to correct me if I'm wrong here.

[1]: http://www.iphonetricks.org/wp-content/uploads/2014/03/iphone-compass-calibration.jpg

GitHub Notification of comment by anssiko
Please view or discuss this issue at https://github.com/w3c/magnetometer/pull/21#issuecomment-291141983 using your GitHub account
Received on Monday, 3 April 2017 13:26:19 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:53 UTC