W3C home > Mailing lists > Public > public-device-apis-log@w3.org > September 2021

Re: [ambient-light] Consider making granularity of the data normative (#63)

From: Raphael Kubo da Costa via GitHub <sysbot+gh@w3.org>
Date: Wed, 15 Sep 2021 11:56:27 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-919953166-1631706986-sysbot+gh@w3.org>
> @cynthia are you able to explain a little further the granularity changes Chrome makes, I don't see much in the minutes or non normative in the spec text.

This was discussed in #13 and the first Chromium commit is https://chromium-review.googlesource.com/c/chromium/src/+/1834346 (see also https://bugs.chromium.org/p/chromium/issues/detail?id=642731).

The idea is to:
* Round off the values we expose to the nearest 50 Lux (e.g. 0, 50, 100, 150 etc).
* Only fire a new reading event if the previous and current raw values differ significantly (we currently check if they differ by more than half the 50 Lux threshold).

-- 
GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/ambient-light/issues/63#issuecomment-919953166 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 15 September 2021 11:56:29 UTC

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