There are lots of reasons sensors, especially digital compasses fall out of calibration. It's just part of the behavior we have to deal with. What I would like to know is how the Google dev team for Sky Map handles these conditions.
Cheers, Richard On Jul 23, 7:55 am, Rud <[email protected]> wrote: > I was working on an application I've dubbed Calibrator. The main point > of it is to turn the vibrator on when the sensor accuracy is not > SENSOR_STATUS_ACCURACY_HIGH. That was easy to do. > > I'm adding some graphics so it can be used as "yet another compass" > but with a totally different display than a compass. > > When I started working on it a couple hours ago my first download > started the G1 vibrating. I juggled it until it stopped. Hurray! That > part worked. > > But just a few minutes ago I downloaded a new version and it starts > vibrating again. I wasn't even handling it. It was just propped up > against a book so I could see the display. Very strange. > > Rudhttp://mysticlakesoftware.blogspot.com/ > > On Jul 22, 3:00 pm, Richard Schilling <[email protected]> > wrote: > > > 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/threa... > > > 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 -~----------~----~----~----~------~----~------~--~---

