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:
Kedi Xu 2019-01-18 19:18:18 +08:00 • committed by Gerrit - the friendly Code Review server
commit 842de575e1

View file

@ -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;