All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Kosina <jkosina@suse.cz>
To: Antonio Ospite <ospite@studenti.unina.it>
Cc: linux-input@vger.kernel.org, Simon Wood <simon@mungewell.org>,
	Marcin Tolysz <tolysz@gmail.com>,
	Michael Bauer <michael@m-bauer.org>
Subject: Re: [PATCH v5 2/2] hid-sony: fix endiannes of Sixaxis accel/gyro values
Date: Mon, 13 Jun 2011 13:22:24 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.1106131322150.22872@pobox.suse.cz> (raw)
In-Reply-To: <1307700027-10657-2-git-send-email-ospite@studenti.unina.it>

On Fri, 10 Jun 2011, Antonio Ospite wrote:

> From: Simon Wood <simon@mungewell.org>
> 
> The accelerometers/gyro on the Sixaxis are reported in the wrong
> endianness (ie. not compatible with HID), so this patch intercepts
> the report and swaps the appropriate bytes over.
> 
> Accelerometers are scaled with a nominal value of +/-4000 = 1G,
> maximum value would be around +/-32768 = 8G.
> 
> Gyro on my device always reports -32768, might need some calibration
> set within the controller.
> 
> Fix extracted from previous patch submission:
> https://patchwork.kernel.org/patch/95212/
> 
> Signed-off-by: Marcin Tolysz <tolysz@gmail.com>
> Signed-off-by: Simon Wood <simon@mungewell.org>
> Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>

Applied, thanks guys.

-- 
Jiri Kosina
SUSE Labs

  reply	other threads:[~2011-06-13 11:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-04  9:32 [PATCHv4 1/3] sony_ff_hid_descriptor Simon Wood
2011-06-04  9:32 ` [PATCHv4 2/3] sony_ff_byteswap_accelerometer Simon Wood
2011-06-04  9:32 ` [PATCHv4 3/3] sony_ff_bluetooth Simon Wood
2011-06-08  7:47   ` Antonio Ospite
2011-06-08 23:57     ` simon
2011-06-10 10:00       ` [PATCH v5 1/2] hid-sony: amend Sixaxis descriptor to enable accelerometers Antonio Ospite
2011-06-10 18:48         ` simon
2011-06-13 11:22         ` Jiri Kosina
2011-06-10 10:00       ` [PATCH v5 2/2] hid-sony: fix endiannes of Sixaxis accel/gyro values Antonio Ospite
2011-06-13 11:22         ` Jiri Kosina [this message]
2011-06-08  7:45 ` [PATCHv4 1/3] sony_ff_hid_descriptor Antonio Ospite

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=alpine.LNX.2.00.1106131322150.22872@pobox.suse.cz \
    --to=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=michael@m-bauer.org \
    --cc=ospite@studenti.unina.it \
    --cc=simon@mungewell.org \
    --cc=tolysz@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.