diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2021-01-29 15:35:52 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-18 03:32:43 +0000 |
commit | 77ea2c29a7661539307934f61aecb9650deba270 (patch) | |
tree | 6dab4ddb8cd867290170f1bfdd7d64f37dd238e1 /board/boten/board.h | |
parent | 3d8ff353dd31bfc3bc3dd60ae1bb676d28729019 (diff) | |
download | chrome-ec-77ea2c29a7661539307934f61aecb9650deba270.tar.gz |
dooly: update als lux equation and coefficient
Implement als sensor TCS3400 lux equation and coefficient:
Lux = DGFn * ((C * Ccoefn) + (R * Rcoefn) + (G * Gcoefn) +
(B * Bcoefn)) / (Atime*Again)
If (G+B)/C < 0.514, n=1
If (G+B)/C >= 0.514 and < 0.66, n=2
If (G+B)/C >= 0.66 and < 1.012, n=3
Else n=4:
Coeffs n=1 (Lo) n=2 (LM) n=3 (MH) n=4 (Hi)
Ccoef 3.8 -17.436 0.08 -0.686
Rcoef 3.956 14.535 -0.89 1.224
GCoef -20.915 32.07 7.096 4.043
BCoef 3.281 2.43 -5.603 -4.584
DGF 993 993 993 993
BUG=b:176671564
BRANCH=puff
TEST=make BOARD=dooly
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Iaee45f670487d00179607192f2d97ca86415f077
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657909
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'board/boten/board.h')
0 files changed, 0 insertions, 0 deletions