mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
HID:correct mag axis config for External viewer
External viewer mag axis is different from ACCEL and Gyro, we need change it to Android coordinate system. Change-Id: I90b8427b3cbd176f5daea30e5ff01991ca146ae3 Signed-off-by: Kedi Xu <kedix@codeaurora.org>
This commit is contained in:
parent
2c6da39016
commit
842de575e1
1 changed files with 2 additions and 2 deletions
|
|
@ -282,8 +282,8 @@ static int qvr_send_package_wrap(u8 *message, int msize, struct hid_device *hid)
|
|||
data->gx = -imuData.gx0;
|
||||
data->gy = imuData.gy0;
|
||||
data->gz = -imuData.gz0;
|
||||
data->mx = -imuData.mx0;
|
||||
data->my = imuData.my0;
|
||||
data->mx = -imuData.my0;
|
||||
data->my = -imuData.mx0;
|
||||
data->mz = -imuData.mz0;
|
||||
|
||||
index_buf->most_recent_index = buf_index;
|
||||
|
|
|
|||
Loading…
Reference in a new issue