NexusSI902xCompassCalibration » History » Version 3
Paul Kocialkowski, 06/30/2015 10:03 PM
| 1 | 3 | Paul Kocialkowski | h1. Nexus S (I902x) 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 | adb shell stop zygote |
||
| 9 | adb shell rm /data/misc/akmd_set.txt |
||
| 10 | adb shell start zygote |
||
| 11 | </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. |