mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
board: Set BM160 Accel and Gyro to identical matrix.
Accel and Gyro is in the same chip, so the .rot_standard_ref field of their sensor structure should be the same. BUG=b:70042791 TEST=Compile BRANCH=oak Change-Id: I24b5971912b0cd5afc073d1e150cb3186803be04 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/804948 Commit-Ready: Alexandru M Stan <amstan@chromium.org> Tested-by: Alexandru M Stan <amstan@chromium.org> Reviewed-by: Alexandru M Stan <amstan@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
3bb08ed694
commit
3e5db62724
@@ -448,7 +448,7 @@ struct motion_sensor_t motion_sensors[] = {
|
||||
.port = CONFIG_SPI_ACCEL_PORT,
|
||||
.addr = BMI160_SET_SPI_ADDRESS(CONFIG_SPI_ACCEL_PORT),
|
||||
.default_range = 1000, /* dps */
|
||||
.rot_standard_ref = NULL, /* Identity matrix. */
|
||||
.rot_standard_ref = &base_standard_ref,
|
||||
.config = {
|
||||
/* AP: by default shutdown all sensors */
|
||||
[SENSOR_CONFIG_AP] = {
|
||||
|
||||
@@ -672,7 +672,7 @@ struct motion_sensor_t motion_sensors[] = {
|
||||
.port = I2C_PORT_ACCEL,
|
||||
.addr = 1,
|
||||
.default_range = 1000, /* dps */
|
||||
.rot_standard_ref = NULL, /* Identity Matrix. */
|
||||
.rot_standard_ref = &base_standard_ref,
|
||||
.min_frequency = BMI160_GYRO_MIN_FREQ,
|
||||
.max_frequency = BMI160_GYRO_MAX_FREQ,
|
||||
.config = {
|
||||
|
||||
@@ -421,7 +421,7 @@ struct motion_sensor_t motion_sensors[] = {
|
||||
.port = CONFIG_SPI_ACCEL_PORT,
|
||||
.addr = BMI160_SET_SPI_ADDRESS(CONFIG_SPI_ACCEL_PORT),
|
||||
.default_range = 1000, /* dps */
|
||||
.rot_standard_ref = NULL, /* Identity matrix. */
|
||||
.rot_standard_ref = &base_standard_ref,
|
||||
.min_frequency = BMI160_GYRO_MIN_FREQ,
|
||||
.max_frequency = BMI160_GYRO_MAX_FREQ,
|
||||
.config = {
|
||||
|
||||
@@ -415,7 +415,7 @@ struct motion_sensor_t motion_sensors[] = {
|
||||
.port = CONFIG_SPI_ACCEL_PORT,
|
||||
.addr = BMI160_SET_SPI_ADDRESS(CONFIG_SPI_ACCEL_PORT),
|
||||
.default_range = 1000, /* dps */
|
||||
.rot_standard_ref = NULL, /* Identity matrix. */
|
||||
.rot_standard_ref = &base_standard_ref,
|
||||
.min_frequency = BMI160_GYRO_MIN_FREQ,
|
||||
.max_frequency = BMI160_GYRO_MAX_FREQ,
|
||||
.config = {
|
||||
|
||||
Reference in New Issue
Block a user