{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/10772","labels_url":"https://api.github.com/repos/golang/go/issues/10772/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10772/comments","events_url":"https://api.github.com/repos/golang/go/issues/10772/events","html_url":"https://github.com/golang/go/issues/10772","id":75032379,"number":10772,"title":"x/mobile/sensor: add APIs to return sensor max values","user":{"login":"rakyll","id":108380,"avatar_url":"https://avatars.githubusercontent.com/u/108380?v=3","gravatar_id":"","url":"https://api.github.com/users/rakyll","html_url":"https://github.com/rakyll","followers_url":"https://api.github.com/users/rakyll/followers","following_url":"https://api.github.com/users/rakyll/following{/other_user}","gists_url":"https://api.github.com/users/rakyll/gists{/gist_id}","starred_url":"https://api.github.com/users/rakyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakyll/subscriptions","organizations_url":"https://api.github.com/users/rakyll/orgs","repos_url":"https://api.github.com/users/rakyll/repos","events_url":"https://api.github.com/users/rakyll/events{/privacy}","received_events_url":"https://api.github.com/users/rakyll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rakyll","id":108380,"avatar_url":"https://avatars.githubusercontent.com/u/108380?v=3","gravatar_id":"","url":"https://api.github.com/users/rakyll","html_url":"https://github.com/rakyll","followers_url":"https://api.github.com/users/rakyll/followers","following_url":"https://api.github.com/users/rakyll/following{/other_user}","gists_url":"https://api.github.com/users/rakyll/gists{/gist_id}","starred_url":"https://api.github.com/users/rakyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakyll/subscriptions","organizations_url":"https://api.github.com/users/rakyll/orgs","repos_url":"https://api.github.com/users/rakyll/repos","events_url":"https://api.github.com/users/rakyll/events{/privacy}","received_events_url":"https://api.github.com/users/rakyll/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-11T00:11:51Z","updated_at":"2015-05-11T20:33:38Z","closed_at":"2015-05-11T20:33:38Z","body":"@hyangah was suggesting that we should return a max value for each sensor type to determine what the range of outputs could be.\r\n\r\nAndroid devices are being shipped with various accelerometer chips, and most of them can be dynamically configured to work in different ranges. Similarly, iDevice accelerometer sensors both support +/-2g and +/-8g, but their platform seem to be supporting the 2g range only. (Means their sensor is always working in the 2g mode?)\r\n\r\nSome Android devices are found to report this value inaccurately. A peak-to-peak value is reported whereas zero-to-peak should be reported. https://code.google.com/p/android/issues/detail?id=63828\r\n\r\n@hyangah, I am not quite sure why you needed the know the range. Could you give me a use case where it's critical?"}}