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

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

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 May 2017 12:45:08 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-300777720-1494506707-sysbot+gh@w3.org>
I would propose to keep Magnetometer as it is now and add separate interface for UncalibratedMagnetometer. Later, we can add CompassSensor that would provide heading.
[Windows](https://docs.microsoft.com/en-us/uwp/api/windows.devices.sensors.magnetometer)
[Android](https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_MAGNETIC_FIELD)
[Linux](https://github.com/torvalds/linux/tree/master/drivers/iio/magnetometer)

Also, if we rename UncalibratedMagnetometer to Magnetometer, it will break naming consistency between Accelerometer, Magnetometer and Gyro.

Calibrated sensor interface name | Uncalibrated sensor interface name
------------ | -------------
GeomagneticSensor(xyz) | Magnetometer(x,y,z, bias_x, bias_y, bias_z)
CalibratedGyroscope(xyz) :grinning: | Gyroscope(x, y, z, drift_x, drift_y, drift_z)
:scream: | Accelerometer(x,y,z)

   
    
                         

-- 
GitHub Notification of comment by alexshalamov
Please view or discuss this issue at https://github.com/w3c/magnetometer/pull/21#issuecomment-300777720 using your GitHub account
Received on Thursday, 11 May 2017 12:45:15 UTC

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