cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon MacDonald <>
Subject Re: Normalization of acceleration values
Date Tue, 07 Feb 2012 15:48:05 GMT
It seems to be on Android that it is returning the value in m/s*s. When my
device is resting on the desk the x and y values are close to 0 while the z
is close to 9.8. Depending on what Android device you have your
accelerometer may be more accurate or able to go up to a higher level of g.
So, it looks like if we want to standardize on g as the unit to be returned
for the accelerometer I'll need to divide by 9.81.

Also, can someone else run the MobileSpec code and go into Accelerometer
and do a Start Watch while leaving your phone flat on the desk? I want to
make sure that other devices don't correct for gravity as I only have
Samsung devices here.

Simon Mac Donald

On Tue, Feb 7, 2012 at 3:36 AM, Filip Maj <> wrote:

> Let's decide, please. A vote thread?
> My vote is using what the W3C spec [1] suggests, which, as Jesse points
> out in the JIRA issue, seems to be m/s^2.
> My problem looking at this a few weeks ago was figuring out what the
> reference point/units on the various native platforms was (I.e. What is
> -10 / +10 on Android? What is -1000 / +1000 on Blackberry? What are those
> units?). It's not very well documented :s
> On 12-02-07 3:00 AM, "" <> wrote:
> >Also to note that I think the values on BlackBerry are -1000 to +1000.
> >
> >Dan was noticing this last week while working on an app
> >------Original Message------
> >From: Shazron
> >To:
> >ReplyTo:
> >Subject: Normalization of acceleration values
> >Sent: Feb 6, 2012 8:57 PM
> >
> >
> >
> >Should we decide?
> >
> >Sent on the TELUS Mobility network with BlackBerry

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message