[TIMOB-3077] Android: compass true heading is sometimes returned as greater than 360 degrees
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-13T18:14:57.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Sprint 2011-24 |
Components | Android |
Labels | api, module_geolocation, qe-testadded |
Reporter | Drew Dara-Abrams |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:36:13.000+0000 |
Updated | 2017-06-13T18:15:01.000+0000 |
Description
Ti.Geolocation sometimes produces true headings that are greater than 360 degrees. I'm assuming that titanium_mobile/android/modules/geolocation/src/ti/modules/titanium/geolocation/TiCompass.java on line 129 just needs a bit of modular arithmetic (% 360). I'd post a patch myself, but I haven't entirely figured out how to build the Titanium mobile code myself. Thanks!
pull request: https://github.com/appcelerator/titanium_mobile/pull/80">https://github.com/appcelerator/titanium_mobile/pull/80
Reviewed.
Tested on Ti Studio 1.0.7.201112080131 Ti Mob SDK 1.8.0.1.v20111209102124 v8/rhino OSX Lion Nexus S OS 2.3.6 Expected behavior of true heading not being greater than or equal to 360 degrees is shown
Reopening/closing to add labels
Android giving compass true heading as undefined.Tested it on android 2.0.2 , 3.2 and 4.0.2. SDK build - 2.0.2.v20120522180515 Not a regression, the behavior exists as far back as 1.8.2 at least. Studio build - 2.0.2.201205212423 Below is the logged info: 05-24 13:51:59.401: D/TiAPI(3572): True heading should be less than 360 and is:undefined
Android returns undefined for trueHeading under certain circumstances. See TIMOB-9434.
Closing ticket due to the time passed and lack of progress. Any problems, please file a new ticket.