public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Enrico Mattea <ocirne94@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: HID device calibration - how to override mapping?
Date: Fri, 13 Jan 2012 16:46:18 +0100	[thread overview]
Message-ID: <4F1051CA.4090007@gmail.com> (raw)

Hello all,

I have a HID device (racing pedals) and a problem with it.

In short, one of the three axes of the device (the clutch pedal) sends 
raw values differently from the other two; in the sense that gas and 
brake pedal return +32767 to 0 to -32767 (from released to halfway to 
fully pressed), while the clutch pedal sends 0 to -32767 to +32767 to 0 
(from released (0) to halfway (-32767), then the value jumps to +32767, 
then decreases again to 0 when fully pressed).

This obviously makes it impossible to properly calibrate the axis for 
anything, because of the "jump" at halfway and of the equality of min 
and max returned values.

As nobody seems to be complaining about this anywhere, I think that the 
(windows only) pedals' driver acts on the clutch value in some way at 
kernel level, "interpreting" it correctly.

So please, is there a way to do something similar - what I'm thinking 
about is remapping the values (at HID kernel driver level) - so that the 
values are interpreted correctly by the kernel?

Thank you very much in advance,
Ocirne

             reply	other threads:[~2012-01-13 15:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13 15:46 Enrico Mattea [this message]
2012-01-13 17:09 ` HID device calibration - how to override mapping? el es
2012-01-13 22:19   ` Enrico Mattea
2012-08-08 11:45     ` Tigran

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=4F1051CA.4090007@gmail.com \
    --to=ocirne94@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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