mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
rainier: final fix for accel orientation.
Rainier has landscape orientation and last patch was 90 degrees off in its base rotation value. BUG=b:71753415 TEST=Flash ec on rainier and tilt device. BRANCH=None Signed-off-by: Ege Mihmanli <egemih@google.com> Change-Id: I1d0837b2391ec4d0051c6c9af984d801264fe64c Reviewed-on: https://chromium-review.googlesource.com/865803 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 = {
|
||||
{ 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)}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user