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

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

From: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Fri, 07 Apr 2017 09:46:10 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-292492004-1491558368-sysbot+gh@w3.org>
@tobie thanks for comments.

> 2. The term raw is sort of weird as the data is partially calibrated.

Agree, I also feel that 'Raw' term is confusing, unfortunately don't have proposal for a better name.

> 3. We'd need a term for this dynamic calibration...

I think we should 'pull-up' terms as soon as there is more that 1 place where it is defined (applicable). If this is a generic term, absolutely. If it is only for magnetometer, maybe we can keep it in magnetometer spec, wdyt?

> 4. As an option, we need something like keep HardIronBias or avoidHardIronCorrection

This makes magnetometer interface calibrated and (almost)uncalibrated at the same time, introduces side-effects. If developer constructs magnetometer with 'avoidHardIronCorrection = true' what would happen at start()?

- Throw 'NotFoundError', wrong, since magnetometer is present.
- Silently fallback to Magnetometer, bad.
- Throw 'CannotAvoidError' :D ?
- Something else?

GitHub Notification of comment by alexshalamov
Please view or discuss this issue at https://github.com/w3c/magnetometer/pull/21#issuecomment-292492004 using your GitHub account
Received on Friday, 7 April 2017 09:46:16 UTC

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