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: I92caba5efe862099d2ca3e9a10d1580ae877e4c1 Signed-off-by: Kedi Xu <kedix@codeaurora.org>
This commit is contained in:
parent
584ac1fdd9
commit
8e9290327b
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
|
@ -139,8 +139,8 @@ 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;
|
||||
|
||||
trace_qvr_recv_sensor("gyro", data->gts, data->gx, data->gy, data->gz);
|
||||
|
|
|
|||
Loading…
Reference in a new issue