You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Bryce Curtis (Created) (JIRA)" <ji...@apache.org> on 2012/01/04 19:45:39 UTC

[jira] [Created] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Normalize Acceleration object x,y,z to return same range for all devices.
-------------------------------------------------------------------------

                 Key: CB-152
                 URL: https://issues.apache.org/jira/browse/CB-152
             Project: Apache Callback
          Issue Type: Bug
          Components: Android, BlackBerry, iOS, WP7
            Reporter: Bryce Curtis
            Assignee: Shazron Abdullah


Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

--
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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Drew Walters (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Drew Walters updated CB-152:
----------------------------

    Component/s:     (was: BlackBerry)

Removed BlackBerry as it has been modified.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, webOS, WP7
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.6.0, 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420810#comment-13420810 ] 

Filip Maj commented on CB-152:
------------------------------

Hey Markus, not sure what the default return values are for acceleration coming from the webOS services, but essentially we want the values returned to be the force (in meters per second squared) acting upon the device. iOS and WP7, for example, returned values in the range of -1 to +1, so we multiplied by -9.81 to get the proper m/s^2 values.

Hope that makes sense.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Markus Leutwyler
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Assigned] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Bryce Curtis (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryce Curtis reassigned CB-152:
-------------------------------

    Assignee:     (was: Shazron Abdullah)
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>            Reporter: Bryce Curtis
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

--
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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

          Component/s:     (was: Android)
                           (was: iOS)
                       Docs
          Description: 
Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81

Android uses the above by default. iOS: I have a commit coming (merge into master tomorrow).

Documentation needs updates for this.

  was:Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

    Affects Version/s: 1.5.0
        Fix Version/s: 1.6.0

Removed Android and iOS tags, added Docs.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: BlackBerry, Docs, WP7
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.6.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android uses the above by default. iOS: I have a commit coming (merge into master tomorrow).
> Documentation needs updates for this.

--
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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

    Fix Version/s:     (was: 1.9.0)
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Herm Wong
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

      Component/s:     (was: Bada)
    Fix Version/s:     (was: 1.7.0)
                   1.8.0

Set for 1.8, webOS is all that's left.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Herm Wong
>             Fix For: 1.8.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Jesse MacFadyen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen updated CB-152:
-------------------------------

    Component/s:     (was: WP7)
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.6.0, 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201971#comment-13201971 ] 

Shazron Abdullah commented on CB-152:
-------------------------------------

So - what have we decided? :)
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>            Reporter: Bryce Curtis
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

--
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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247615#comment-13247615 ] 

Filip Maj commented on CB-152:
------------------------------

WP7 returns in g's (-1 to +1) so, just like the iOS native implementation, drop a constant in that plugin and multiply on native side.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Bada, BlackBerry, webOS, WP7
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.6.0, 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Assigned] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj reassigned CB-152:
----------------------------

    Assignee: Anis Kadri  (was: Filip Maj)

Assigning to you, Anis, to get it done for Bada. Once you are finished toss it over to Herm so he can finish it off for webOS.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Anis Kadri
>             Fix For: 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Markus Leutwyler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419088#comment-13419088 ] 

Markus Leutwyler commented on CB-152:
-------------------------------------

replacing this.x=x with this.x=x*10 in the Acceleration(x,y,z) function should be enough? (Acceleration.js)
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Markus Leutwyler
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

    Fix Version/s:     (was: 1.8.0)
                   1.9.0

Moving to 1.9..
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Herm Wong
>             Fix For: 1.9.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

    Parent Issue: CB-556  (was: CB-179)
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Herm Wong
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181759#comment-13181759 ] 

Filip Maj commented on CB-152:
------------------------------

Shouldn't the documentation state a negative-to-positive range instead of 0 to 1? i.e. wouldn't -1 to 1 make more sense?
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>            Reporter: Bryce Curtis
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

--
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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Jesse MacFadyen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251192#comment-13251192 ] 

Jesse MacFadyen commented on CB-152:
------------------------------------

Removing WP7, thanks Fil!
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, webOS, WP7
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.6.0, 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

      Component/s:     (was: Docs)
                   webOS
                   Bada
      Description: 
Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81

Android and iOS are using values returned as m/s^2.

  was:
Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81

Android uses the above by default. iOS: I have a commit coming (merge into master tomorrow).

Documentation needs updates for this.

    Fix Version/s: 1.7.0

tagged all platforms that still need to return proper accelerometer values.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Bada, BlackBerry, webOS, WP7
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.6.0, 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

    Issue Type: Sub-task  (was: Bug)
        Parent: CB-179
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, BlackBerry, webOS, WP7
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.6.0, 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Assigned] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Joe Bowser (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser reassigned CB-152:
-----------------------------

    Assignee: Filip Maj
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

--
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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Bryce Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181798#comment-13181798 ] 

Bryce Curtis commented on CB-152:
---------------------------------

The spec (http://dev.w3.org/geo/api/spec-source-orientation.html) seems to suggest a range of -10 to 10, but it's not stated anywhere.  I'm fine with either - as long as it's documented and consistent for all platforms.
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>            Reporter: Bryce Curtis
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

--
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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Anis Kadri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264169#comment-13264169 ] 

Anis Kadri commented on CB-152:
-------------------------------

Bada has always had it this way (-10, 10)
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Anis Kadri
>             Fix For: 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Assigned] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Markus Leutwyler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Markus Leutwyler reassigned CB-152:
-----------------------------------

    Assignee: Markus Leutwyler  (was: Herm Wong)
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Markus Leutwyler
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Updated] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj updated CB-152:
-------------------------

    Fix Version/s:     (was: 1.6.0)
    
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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

        

[jira] [Commented] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Jesse MacFadyen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198142#comment-13198142 ] 

Jesse MacFadyen commented on CB-152:
------------------------------------

The spec is measuring acceleration in g's. Where 9.81 is 1g, which is 9.81 m/s/s

                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>            Reporter: Bryce Curtis
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 

--
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

        

[jira] [Assigned] (CB-152) Normalize Acceleration object x,y,z to return same range for all devices.

Posted by "Anis Kadri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anis Kadri reassigned CB-152:
-----------------------------

    Assignee: Herm Wong  (was: Anis Kadri)

make sure it works this way on webOS
                
> Normalize Acceleration object x,y,z to return same range for all devices.
> -------------------------------------------------------------------------
>
>                 Key: CB-152
>                 URL: https://issues.apache.org/jira/browse/CB-152
>             Project: Apache Callback
>          Issue Type: Sub-task
>          Components: Bada, webOS
>    Affects Versions: 1.5.0
>            Reporter: Bryce Curtis
>            Assignee: Herm Wong
>             Fix For: 1.7.0
>
>
> Acceleration object should be consistent across platforms.  Documentation mentions range of x,y,z to be 0-1, but Android returns ranges in -10 to +10.  This needs to be made consistent so the same code works on all platforms. 
> Let's work towards using the DeviceMotion specification: returning values in m/s^2. At rest, with the screen pointing upwards, values should be x=0, y=0, z=9.81
> Android and iOS are using values returned as 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