Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e929032 authored by Kedi Xu's avatar Kedi Xu
Browse files

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: default avatarKedi Xu <kedix@codeaurora.org>
parent 584ac1fd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/*
 * 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);