diff options
author | xiong.huang <xiong.huang@bitland.corp-partner.google.com> | 2020-04-20 21:23:06 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-22 05:52:29 +0000 |
commit | 84de4f189d17ae302e2a1ef55bfd8b23c30947fe (patch) | |
tree | fb64ebccdfd2e3652e12e76a237521c906ae2160 /board/malefor | |
parent | 466fcc628fad1771e6720e4b9d75676f30f6d12a (diff) | |
download | chrome-ec-84de4f189d17ae302e2a1ef55bfd8b23c30947fe.tar.gz |
malefor: fix rotation matrix of lid sensor
Adjust the rotation matrix of base and lid sensor to get expected XYZ
data.
BUG=b:152434719
BRANCH=none
TEST=Base & lid accel sensor XYZ data are expected with command 'ectool
motionsense'in VT2.
Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com>
Change-Id: Ia234e0df7150543133afef15e21877dc87bb70e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2156687
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/malefor')
-rw-r--r-- | board/malefor/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/malefor/board.c b/board/malefor/board.c index e332a6352f..d6299edc0a 100644 --- a/board/malefor/board.c +++ b/board/malefor/board.c @@ -76,14 +76,14 @@ static struct lsm6dsm_data lsm6dsm_data = LSM6DSM_DATA; /* Matrix to rotate lid and base sensor into standard reference frame */ static const mat33_fp_t lid_standard_ref = { - { 0, FLOAT_TO_FP(-1), 0}, - { FLOAT_TO_FP(-1), 0, 0}, + { 0, FLOAT_TO_FP(1), 0}, + { FLOAT_TO_FP(1), 0, 0}, { 0, 0, FLOAT_TO_FP(-1)} }; static const mat33_fp_t base_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0}, - { 0, FLOAT_TO_FP(1), 0}, + { FLOAT_TO_FP(1), 0, 0}, + { 0, FLOAT_TO_FP(-1), 0}, { 0, 0, FLOAT_TO_FP(-1)} }; |