mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 04:43:50 +00:00
board: rainier: fix accel orientation
Rainier has landscape orientation, therefore needs its accelerometer base values adjusted. BUG=b:71753415 TEST=Rotate rainier and make sure screen orientation is not off by 90 degrees. BRANCH=None Signed-off-by: Ege Mihmanli <egemih@google.com> Change-Id: I60b49e717c691e34a39e817d2c064ea45b8d53d7 Reviewed-on: https://chromium-review.googlesource.com/862733 Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
@@ -352,8 +352,8 @@ static struct bmi160_drv_data_t g_bmi160_data;
|
||||
|
||||
/* Matrix to rotate accelerometer into standard reference frame */
|
||||
const matrix_3x3_t base_standard_ref = {
|
||||
{ FLOAT_TO_FP(-1), 0, 0},
|
||||
{ 0, FLOAT_TO_FP(-1), 0},
|
||||
{ 0, FLOAT_TO_FP(-1), 0},
|
||||
{ FLOAT_TO_FP(1), 0, 0},
|
||||
{ 0, 0, FLOAT_TO_FP(1)}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user