Project

General

Profile

GalaxySI9000CompassCalibration » History » Version 2

Paul Kocialkowski, 07/01/2015 01:34 PM

1 2 Paul Kocialkowski
h1. Galaxy S (I9000) compass calibration
2 1 Paul Kocialkowski
3
The compass sensor is calculated from both the accelerometer and magnetic field sensors, which needs calibration to be accurate.
4
If the values reported by the compass sensor are not right, you can recalibrate the magnetic field sensor with the following steps:
5
6 2 Paul Kocialkowski
Connect to the device via [[ADB]] with sufficient permissions and run:
7
<pre>
8 1 Paul Kocialkowski
# adb shell stop geomagneticd
9
# adb shell rm /data/system/yas529.cfg
10
# adb shell start geomagneticd
11 2 Paul Kocialkowski
</pre>
12 1 Paul Kocialkowski
13
Then start an application using the compass sensor and move the device in every direction, with a rotation around each axis: the device should now be calibrated.