Re: [PATCH 1/2] drivers: hid: adjust gyro calibration data

From: Roderick Colenbrander
Date: Thu Oct 06 2022 - 10:04:16 EST


On Thu, Oct 6, 2022 at 6:36 AM Henry Castro <hcvcastro@xxxxxxxxx> wrote:
>
> For some reason my DualShock 4 get the calibration
> data values equal:
>
> gyro_pitch_plus == gyro_pitch_minus
>
> Probably due to some defect in the DS4 hardware, and cause
> a CPU division exception to crash the linux kernel.
>
> At least with the patch, I can continue play Retroarch
> without using the Gyroscope :)
>
> Signed-off-by: Henry Castro <hcvcastro@xxxxxxxxx>
> ---
>
> >> Hm, I'm not the biggest fan. Is this an official DS4 or a clone
> >> device? It sounds like it is some type of clone (some look real).
>
> Sorry it happens in my DS4 clone:
>
> I have the log values:
>
> gyro_pitch_plus = 8704
> giro_pitch_minus = 8704
>
> Then the division exception:
>
> mult_frac(x, y, 0)
>

Are it only these which are equal or are there are other funky ones?
Are all constants in general the same? I'm just trying to figure out
if some of this device would even need calibration.

Thanks,
Roderick