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 10:58:47 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-300755657-1494500325-sysbot+gh@w3.org>
My reasoning (after thinking a lot)

1. GeomagneticFieldSensor can be constructed from Magnetometer, not the other way around - so low vs higher level
2. Options do mostly go ignored... don't show up in auto completion etc
3. GeomagneticFieldSensor is a specialized (but probably common) use case - ie finding the direction of magnetic north - hence is why hard iron compensation is needed
4. Sensors postfixed by *Sensor are what is commonly used for specific use-cases, so fits with the above. When using a [raw] Accelerometer, Gyroscope, you need to know what you are doing - same with Magnetometer. All of these are calibrated a bit, even Magnetometer (soft iron calibration) which is fine - you wouldn't want otherwise (I dont know the use case)

NB: We really need to rename that AmbientLightSensor ! (Many other sensors are Ambient! and Sensor now indicates that it is build up by other low level sensors, or at least derived from one)

GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/magnetometer/pull/21#issuecomment-300755657 using your GitHub account
Received on Thursday, 11 May 2017 10:58:53 UTC

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