incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-418) Docs for Accelerometer needs updating
Date Sun, 01 Apr 2012 00:04:28 GMT
Docs for Accelerometer needs updating
-------------------------------------

                 Key: CB-418
                 URL: https://issues.apache.org/jira/browse/CB-418
             Project: Apache Callback
          Issue Type: Improvement
          Components: Docs
    Affects Versions: 1.5.0, 1.6.0
            Reporter: Filip Maj
            Assignee: Michael Brooks


With the introduction of Cordova-JS, the Acceleration object now returns values in meters
per second squared. So at rest with the screen facing up, all devices should be returning:
x=0, y=0, z=9.81. The docs currently report that Acceleration values for x, y and z range
from 0 to 1.

How the Acceleration method has changed over the past few versions:

* Android has always adhered to the above: reporting values as m/s^2.
* In 1.6.0rc1, iOS now adheres to the proper return values as well. Before then, iOS x/y/z
values were reported between -1 and 1.
* BlackBerry does not return values in m/s^2 and until cordova-js gets in there it will not
change. Currently the values (as documented in BlackBerry documentation): "For example, if
the handheld is lying flat on a table, the X and Y values are equal to 0, while Z is equal
to 1000"
* Windows Phone 7 returns units in m/s^2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message