summaryrefslogtreecommitdiff
path: root/board/drawcia
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2021-01-25 14:35:55 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-26 08:20:15 +0000
commit774e4bfab7119909e04ecec6c34b6cc85d979c22 (patch)
tree773167ed57e20ecd298ff741bf9b4f93d2e05584 /board/drawcia
parent6bd8ba0808b90407d72d0b487624edb7d1701f01 (diff)
downloadchrome-ec-774e4bfab7119909e04ecec6c34b6cc85d979c22.tar.gz
drawcia: Set gyroscope translation matrix
CTS tests are failing because sensor values from axis 1 and 2 are negated. When the test expects 360 degrees, -360 degrees gets reported. Set the standard base translation matrix to resolve this. BUG=b:175996778 TEST=Try CTS BRANCH=None Signed-off-by: Evan Green <evgreen@chromium.org> Change-Id: I9ede658cef042caf72b81d08e4c47de4c7b5e820 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648730 Tested-by: Kazuhiro Inaba <kinaba@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Kazuhiro Inaba <kinaba@chromium.org> Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org>
Diffstat (limited to 'board/drawcia')
-rw-r--r--board/drawcia/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/drawcia/board.c b/board/drawcia/board.c
index 6728eb1183..f160335e53 100644
--- a/board/drawcia/board.c
+++ b/board/drawcia/board.c
@@ -346,7 +346,7 @@ struct motion_sensor_t motion_sensors[] = {
.port = I2C_PORT_SENSOR,
.i2c_spi_addr_flags = LSM6DSM_ADDR0_FLAGS,
.default_range = 1000 | ROUND_UP_FLAG, /* dps */
- .rot_standard_ref = NULL,
+ .rot_standard_ref = &base_standard_ref,
.min_frequency = LSM6DSM_ODR_MIN_VAL,
.max_frequency = LSM6DSM_ODR_MAX_VAL,
},