Am researching a problem with compass and sensor values returned by the phone. I found this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/cba46eeb09b1765a/17ec150c99427b31?lnk=gst&q=compass+stuck#17ec150c99427b31 Which seems related, but it's old so I'm starting a new one. I'm getting stuck values from both the compass and orientation sensors. It was fine yesterday, but today, I'm only getting values in a limited range (e.g. compass headings from 240 - 290), no matter how I orient the device. What's even more odd is that the radians returned from the call to SensorManager.getOrientation(), which returns radians, is giving consistently out of range values. Anyone see this same behavior, and if so, any fixes? Here's some sample sensor data. Format is heading, pitch, roll. The first set contains raw values, the second set contains values after I've applied the orientation matrix generated by the Sensor Manager. The third set contains values after I've smoothed the data with my own algorithm. 07-22 12:50:00.655: INFO/MainActivity.Sensor(367): 284.0, -21.0, 62.0 --> -7.545175, 17.423908, 21.598564 --> -7.545175, 17.423908, 21.598564 07-22 12:50:00.795: INFO/MainActivity.Sensor(367): 284.0, -21.0, 63.0 --> -7.3785577, 17.477526, 22.036232 --> -7.3785577, 17.477526, 22.036232 07-22 12:50:00.965: INFO/MainActivity.Sensor(367): 284.0, -20.0, 63.0 --> -7.628744, 17.423908, 21.598564 --> -7.628744, 17.423908, 21.598564 07-22 12:50:01.075: INFO/MainActivity.Sensor(367): 283.0, -20.0, 63.0 --> -7.596131, 17.311737, 21.458878 --> -7.596131, 17.311737, 21.458878 07-22 12:50:01.255: INFO/MainActivity.Sensor(367): 284.0, -20.0, 63.0 --> -7.4315057, 17.527277, 21.33686 --> -7.4315057, 17.527277, 21.33686 07-22 12:50:01.395: INFO/MainActivity.Sensor(367): 283.0, -20.0, 63.0 --> -7.847195, 17.804707, 20.847076 --> -7.847195, 17.804707, 20.847076 07-22 12:50:01.495: INFO/MainActivity.Sensor(367): 283.0, -20.0, 63.0 --> -8.424827, 17.770178, 21.15628 --> -8.424827, 17.770178, 21.15628 07-22 12:50:01.705: INFO/MainActivity.Sensor(367): 282.0, -20.0, 63.0 --> -27.349527, -63.69813, 21.50518 --> -7.901176, 17.70072, 21.50518 07-22 12:50:01.765: INFO/MainActivity.Sensor(367): 282.0, -20.0, 63.0 --> -28.0857, -63.69813, 21.50518 --> -7.901176, 17.70072, 21.50518 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

