diff options
author | Keith Short <keithshort@chromium.org> | 2020-05-19 09:23:56 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-21 03:56:43 +0000 |
commit | c92f3d36f70a551e3df442cc7e015000f73f0578 (patch) | |
tree | 87ed924e91db9760cd68e65956ed297922af8420 /board | |
parent | f957f7fef2ae683d90840ccb89a922a5fd587082 (diff) | |
download | chrome-ec-c92f3d36f70a551e3df442cc7e015000f73f0578.tar.gz |
volteer: correct lid g-sensor orientation
Correc the lid g-sensor orientation to match the latest boards.
BUG=b:157001290, b:157018535
BRANCH=none
TEST=make buildall
TEST=Verify lid angle using "ectool motionsense lid_angle"
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I661e5aa7542371ba7d05944be965f22cb6fd4277
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2209025
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/volteer/sensors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/volteer/sensors.c b/board/volteer/sensors.c index 42d492269c..1d192d4289 100644 --- a/board/volteer/sensors.c +++ b/board/volteer/sensors.c @@ -85,9 +85,9 @@ static struct tcs3400_rgb_drv_data_t g_tcs3400_rgb_data = { /* Rotation matrix for the lid accelerometer */ static const mat33_fp_t lid_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, - { 0, 0, FLOAT_TO_FP(1)} + { FLOAT_TO_FP(1), 0, 0}, + { 0, FLOAT_TO_FP(-1), 0}, + { 0, 0, FLOAT_TO_FP(-1)} }; const mat33_fp_t base_standard_ref = { |