incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (CB-418) Docs for Accelerometer needs updating
Date Fri, 06 Apr 2012 18:55:26 GMT


Shazron Abdullah resolved CB-418.

    Resolution: Fixed

Fix commit:;a=commit;h=0afe03468a23bea7421adac5b90892197ca3848b
> Docs for Accelerometer needs updating
> -------------------------------------
>                 Key: CB-418
>                 URL:
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: BlackBerry, Docs, iOS
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Filip Maj
>            Assignee: Shazron Abdullah
>             Fix For: 1.6.0
> 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:!default.jspa
For more information on JIRA, see:


View raw message