[ 
https://issues.apache.org/jira/browse/CB-9339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625368#comment-14625368
 ] 

ASF GitHub Bot commented on CB-9339:
------------------------------------

GitHub user muratsu opened a pull request:

    https://github.com/apache/cordova-plugin-device-motion/pull/32

    CB-9339 Increase the default sensor accuracy

    The current default SENSOR_STATUS_UNRELIABLE is having problems on sensors 
which fail to report accuracy. 
    
    One such example is Nexus 7 (2013). 
    
    On Android 5.1.1 (api 22) onAccuracyChanged() method is not getting fired 
for sensor accuracy. As a result the default accuracy is unchanged 
(SENSOR_STATUS_UNRELIABLE). Since we don't report sensor data if accuracy is 
lower than medium, we don't report on this hw/sw combination.
    
    Stangely same code on same hw, works on earlier OS (Android 4.3 (api 18)). 
    
    It seems like there's a regression on OS sensor drivers but that's outside 
of our scope. 
    
    With this change we will now report values for sensors which fail to report 
any accuracy but some sensor data. In case a sensor fails to report any 
accuracy and reports bad sensor data, I'm passing the responsibility to the end 
user to detect and ignore such data (since I'm not able to detect it).
    
    Note that correctly working sensors will get filtered if they report 
SENSOR_STATUS_UNRELIABLE. This fix will only affect sensors that fail to report 
any accuracy data at all.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-device-motion 
CB-9339

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-device-motion/pull/32.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #32
    
----
commit b0f8e436efd7d0db586bc2165733ebe5467b8498
Author: Murat Sutunc <[email protected]>
Date:   2015-07-13T21:05:37Z

    CB-9339 Increase the default sensor accuracy

----


> Sensor status is unavailable in Nexus 7 devices
> -----------------------------------------------
>
>                 Key: CB-9339
>                 URL: https://issues.apache.org/jira/browse/CB-9339
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Device Motion
>            Reporter: Murat Sutunc
>            Assignee: Murat Sutunc
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to