Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-556 integrate cordova js with webos
  3. CB-152

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

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.5.0
    • None
    • None

    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.

      Attachments

        Activity

          People

            aptomcat Markus Leutwyler
            bcurtis Bryce Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: