diff options
author | Caveh Jalali <caveh@chromium.org> | 2018-08-17 23:22:04 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-22 00:10:40 -0700 |
commit | b8489de98f1cf3e32fbcbe4b6f6163dff4a55c78 (patch) | |
tree | f5048b046e722a1ec4f30b98b0e339b8a43030c7 | |
parent | 08f3d2d701b8c78ecbb51c8e48aabf5ad56d4be9 (diff) | |
download | chrome-ec-b8489de98f1cf3e32fbcbe4b6f6163dff4a55c78.tar.gz |
atlas: update ALS scale factor
this fixes the ALS reading scale factor so we actually get a decent
range of values based on ambient light intensity. this scale factor
still needs to be calibrated, but is a good guess based on nocturne.
BUG=b:112784910,b:112863863
BRANCH=none
TEST="accelinfo on" on EC console now reports sensible readings from
the ALS
Change-Id: I540b1557523a725786013155e276eafd5993e036
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1180613
Commit-Ready: Caveh Jalali <caveh@google.com>
Tested-by: Caveh Jalali <caveh@google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | board/atlas/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c index 6ed8237850..ca76d3566a 100644 --- a/board/atlas/board.c +++ b/board/atlas/board.c @@ -570,7 +570,7 @@ static struct opt3001_drv_data_t g_opt3001_data = { .offset = 0, }; -/* Matrix to rotate accelrator into standard reference frame */ +/* Matrix to rotate accelerometer into standard reference frame */ const matrix_3x3_t base_standard_ref = { { FLOAT_TO_FP(-1), 0, 0}, { 0, FLOAT_TO_FP(1), 0}, @@ -630,7 +630,7 @@ struct motion_sensor_t motion_sensors[] = { .port = I2C_PORT_SENSOR, .addr = OPT3001_I2C_ADDR, .rot_standard_ref = NULL, - .default_range = 0x10000, /* scale = 1; uscale = 0 */ + .default_range = 0x2b11a1, /* from nocturne */ .min_frequency = OPT3001_LIGHT_MIN_FREQ, .max_frequency = OPT3001_LIGHT_MAX_FREQ, .config = { |