mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
HID: Filtering mag data depending on timestamp
Need this fix to filter updated mag data. Change-Id: Idaa4f18c6473182c3ac6b81f4f15bcde5526834c Signed-off-by: rbandi <rohitbandi@codeaurora.org>
This commit is contained in:
parent
3d43fd3787
commit
64108d4ba0
1 changed files with 4 additions and 1 deletions
|
|
@ -112,8 +112,11 @@ int qvr_send_package_wrap(u8 *message, int msize, struct hid_device *hid)
|
|||
data->ats = ts_base + ((ts_offset - imuData.gts0) * 100);
|
||||
else
|
||||
data->ats = ts_base + ((imuData.gts0 - ts_offset) * 100);
|
||||
if (imuData.mts0 == 0)
|
||||
data->mts = 0;
|
||||
else
|
||||
data->mts = data->ats;
|
||||
data->gts = data->ats;
|
||||
data->mts = data->ats;
|
||||
data->ax = -imuData.ax0;
|
||||
data->ay = imuData.ay0;
|
||||
data->az = -imuData.az0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue