From: Alain Carlucci <alain.carlucci@gmail.com>
To: Roderick Colenbrander <thunderbird2k@gmail.com>
Cc: linux-input <linux-input@vger.kernel.org>,
Jiri Kosina <jikos@kernel.org>,
djogorchock@gmail.com
Subject: Re: [PATCH] HID: sony: Fix division by zero
Date: Thu, 5 Jan 2023 11:44:42 +0100 [thread overview]
Message-ID: <20230105104442.4zt4dm4mmgbtde63@ananas> (raw)
In-Reply-To: <CAEc3jaD78h1qbWg+QQ40_yv5xc-oGFHAEyEOx2Nh20C-pxwcJg@mail.gmail.com>
Hi Roderick,
sorry for the late response, I've been busy in these days. I'll reply
to both emails in this one.
>Thanks for testing. I added a similar patch to my hid-playstation tree
>this morning (hid-sony will go away soon).
Ok perfect! Does hid-sony will continue to support old Dualshock
controllers or they will be all merged into hid-playstation?
>I'm not entirely happy with the patches yet and need to do some
>thinking. The issue is the value range, which is not correct. For the
>accelerometer the numerator and denominator need to be 1 to match the
>proper range. (It just happens that the scaling factors are the way
>they are I think.)
>The uncalibrated gyroscope values are 16-bit signed, but the hardware
>limits are +/- 2000 degree per second. To have enough precision during
>calibration the value range is extended (resolution per axis is set to
>1024, so 1024 corresponds to 1 degree per second).
Can you tell me a bit more about what is the expected calibrated
output for both gyro and accelerometer?
Like unit of measurement (I hope deg/s and m/s^2) and data type?
Is "1024 -> 1dg/s" a mapping used only while calibrating or is the
expected conversion during normal usage?
>When I heavily shake a DS4 in evtest, I can easily reach values like
>15 million or more. However, the maximum value we have set on the
>evdev node to about 2M. In other words there is something wrong. I
>need to look closely at other internal code.
Definitely seems there is an issue.
Can you suggest me a tool to test the gyro/accel using linux?
Thanks,
Alain
next prev parent reply other threads:[~2023-01-05 10:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-26 0:07 [PATCH] HID: sony: Fix division by zero Alain Carlucci
2022-12-27 16:17 ` Roderick Colenbrander
2022-12-28 18:01 ` Alain Carlucci
[not found] ` <CAEc3jaD-Z4F8CQBHKrBV=H1JwO3LhQMxy1rv2k30rCYhkr1CmQ@mail.gmail.com>
2022-12-28 21:58 ` Alain Carlucci
2022-12-29 16:28 ` Roderick Colenbrander
2022-12-29 19:21 ` Alain Carlucci
2022-12-29 20:56 ` Roderick Colenbrander
2022-12-30 18:17 ` Alain
[not found] ` <CAME7zCKPjFbE6nSSoQOVK=BnFG0YAvMgHjAmHKTXcxk3Weuo+w@mail.gmail.com>
2022-12-30 21:53 ` Roderick Colenbrander
2023-01-04 20:47 ` Roderick Colenbrander
2023-01-05 10:44 ` Alain Carlucci [this message]
2023-01-05 18:23 ` Alain Carlucci
2023-01-05 23:29 ` Roderick Colenbrander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230105104442.4zt4dm4mmgbtde63@ananas \
--to=alain.carlucci@gmail.com \
--cc=djogorchock@gmail.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=thunderbird2k@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).