summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2019-05-10 11:29:33 -0600
committerJett Rink <jettrink@chromium.org>2019-05-22 20:39:40 +0000
commit1b1a8a52d5c2541695e4b9db1460c0abeac3028e (patch)
treee39111219fd79443f6d78e98cef8a054a1e6c7b8
parent802e184e4f240c9984c4cd2e916e09d1f8b2a17e (diff)
downloadchrome-ec-1b1a8a52d5c2541695e4b9db1460c0abeac3028e.tar.gz
board: arcada: Fix magnetometer axis rotation
Fix the rotation of the magnetometer measurements. BRANCH=None BUG=b:128619310 TEST=Compare raw magnetometer data with pixel 3 Change-Id: I3fa407dd4dcc825cc521c8e49a63a635e45f9081 Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1612256 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1625783 Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--board/arcada_ish/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/arcada_ish/board.c b/board/arcada_ish/board.c
index 025006b5a0..2bba8bd0da 100644
--- a/board/arcada_ish/board.c
+++ b/board/arcada_ish/board.c
@@ -136,7 +136,7 @@ struct motion_sensor_t motion_sensors[] = {
.port = I2C_PORT_SENSOR,
.addr = LIS2MDL_ADDR,
.default_range = 1 << 11, /* 16LSB / uT, fixed */
- .rot_standard_ref = NULL, /* TODO rotate correctly */
+ .rot_standard_ref = &lid_rot_ref,
.min_frequency = LIS2MDL_ODR_MIN_VAL,
.max_frequency = LIS2MDL_ODR_MAX_VAL,
},